JPH04102959A - Exception processing system for information processor - Google Patents

Exception processing system for information processor

Info

Publication number
JPH04102959A
JPH04102959A JP2220246A JP22024690A JPH04102959A JP H04102959 A JPH04102959 A JP H04102959A JP 2220246 A JP2220246 A JP 2220246A JP 22024690 A JP22024690 A JP 22024690A JP H04102959 A JPH04102959 A JP H04102959A
Authority
JP
Japan
Prior art keywords
coprocessor
exception
instruction
master processor
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2220246A
Other languages
Japanese (ja)
Inventor
Hidekazu Shimizu
英一 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2220246A priority Critical patent/JPH04102959A/en
Publication of JPH04102959A publication Critical patent/JPH04102959A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To easily specify the address of a coprocessor instruction generating an exception by saving contents to be stored by a storage means in an exception processing saving area in a main storage at the time of informing exception detection from the coprocessor to the master processor. CONSTITUTION:This exception processing system is provided with a storage means 3 for storing the address of an instruction, the 1st control means 11 for storing the address including a coprocessor instruction extracted by the master processor 1 in the storage means 3 and the 2nd control means 12 for saving the contents of the means 3 to the exception processing saving area 41 of the main storage device 4 when exception detection is informed from the coprocessor 2 to the master processor 1. Even when exceptional operation is generated in the coprocessor instruction and the master processor 1 has already executed processing the coprocessor instruction to be the cause of the exception, the address including the coprocessor instruction can be known from the contents of the area 41.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置の例外処理方式に関し、特にマス
タプロセッサに従属するコプロセッサを有し並列処理を
行う情報処理装置の例外処理方式〔従来の技術〕 従来の情報処理装置の例外処理方式では、マスタプロセ
ッサはコプロセッサから例外を通知された時に、マスタ
プロセッサで実行中の命令の存在するアドレスを主記憶
内の例外処理用の退避エリアに退避していた。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an exception handling method for an information processing device, and particularly to an exception handling method for an information processing device that has a coprocessor subordinate to a master processor and performs parallel processing. [Technology] In conventional exception handling methods for information processing devices, when a master processor is notified of an exception from a coprocessor, it stores the address of the instruction being executed by the master processor in a save area for exception handling in main memory. He had evacuated.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の情報処理装置の例外処理方式において、
マスタプロセッサとコプロセッサか並列動作を行うシス
テムでは、マスタプロセッサがコプロセッサから例外を
通知されたとき、既に例外要因となったコプロセッサ命
令以降の処理を行っていることか多く、コプロセッサで
例外動作を起こした命令の存在するアドレスか主記憶装
置内の例外処理用の退避エリアの内容からは解らないと
いう欠点がある。
In the exception handling method of the conventional information processing device described above,
In a system where the master processor and coprocessor operate in parallel, when the master processor is notified of an exception by the coprocessor, it is likely already processing after the coprocessor instruction that caused the exception; The drawback is that the address of the instruction that caused the operation cannot be determined from the contents of the save area for exception handling in the main memory.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の情報処理装置の例外処理方式は、中央処理装置
のマスタプロセッサは順次命令を取り出して実行し従属
するコプロセッサに取り出したコプロセッサ命令の実行
を代行させ前記コプロセッサ命令以降の命令を取り出し
て並列処理を行う情報処理装置において、前記命令のア
ドレスを記憶する記憶手段と、前記マスタプロセッサが
前記コプロセッサ命令を取り出した際に前記命令が存在
するアドレスを前記記憶手段に記憶する第1の制御手段
と、前記マスタプロセッサが前記コプロセッサから例外
検出を通知されたとき主記憶装置の例外処理用の退避エ
リアに前記記憶手段の内容を退避させる第2の制御手段
とを有する。
In the exception handling method of the information processing device of the present invention, the master processor of the central processing unit sequentially fetches and executes instructions, has a subordinate coprocessor take over the execution of the fetched coprocessor instructions, and fetches instructions subsequent to the coprocessor instructions. In an information processing apparatus that performs parallel processing, the information processing apparatus includes a storage means for storing an address of the instruction, and a first storage means for storing an address at which the instruction exists when the master processor retrieves the coprocessor instruction. and a second control means for saving the contents of the storage means to a save area for exception handling in a main storage device when the master processor is notified of exception detection from the coprocessor.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
は本発明の一実施例のブロック図、第2図は本実施例の
動作を説明するためのフローチャートである。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation of this embodiment.

第1図において、マスタプロセッサ1と、マスタプロセ
ッサ1に従属するコプロセッサ2と、マスタプロセッサ
1かコプロセッサ命令を取り出した際にその命令のアド
レスを記憶するための記憶手段3と、主記憶装置4とを
有して構成される。
In FIG. 1, a master processor 1, a coprocessor 2 subordinate to the master processor 1, a storage means 3 for storing the address of a coprocessor instruction when the master processor 1 retrieves the instruction, and a main storage device. 4.

また、マスタプロセッサ1はコプロセッサ命令を実行す
る際に予め命令が存在するアドレスを記憶手段3に記憶
させる第1の制御手段11と、コプロセッサ2から例外
を通知された際に、主記憶装置4の例外処理用の例外退
避領域41内のコプロセッサカウンタセーブ領域411
に、記憶手段3の内容を退避させる第2の制御手段12
とを含んでいる。主記憶装置4は、例外発生時の例外処
理用の退避領域である例外退避領域41を含み、さらに
、例外退避領域41は、記憶手段3の内容を退避するた
めのコプロセッサカウンタセーブ領域411を含んでい
る。
The master processor 1 also has a first control means 11 that stores an address where the instruction exists in the storage means 3 in advance when executing a coprocessor instruction, and a main storage device that stores an address where the instruction exists in the storage means 3 when the master processor 1 is notified of an exception from the coprocessor 2. Coprocessor counter save area 411 in the exception save area 41 for exception handling in No. 4
The second control means 12 saves the contents of the storage means 3.
Contains. The main storage device 4 includes an exception save area 41 which is a save area for exception processing when an exception occurs, and the exception save area 41 further includes a coprocessor counter save area 411 for saving the contents of the storage means 3. Contains.

次に、第1図と第2図を参照して本実施例の動作を説明
する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1 and 2.

マスタプロセッサ1は、ステップ210で示すように命
令を実行する前にその命令にコプロセッサ命令か否かを
判断し、コプロセッサ命令で有れば、予め命令の存在す
るアドレスを記憶させる制御手段゛11により、ステッ
プ220で示すようにその命令のプログラムカウンタ(
命令アドレス)を記憶手段3に格納し、ステップ230
で示すように命令を実行する。この時、命令がコプロセ
ッサ命令で有れば、コプロセッサ2に実行させる。
As shown in step 210, the master processor 1 determines whether or not the instruction is a coprocessor instruction before executing the instruction, and if it is a coprocessor instruction, the master processor 1 uses a control means to store in advance the address where the instruction exists. 11, the program counter (
instruction address) in the storage means 3, and step 230
Execute the command as shown. At this time, if the instruction is a coprocessor instruction, it is executed by the coprocessor 2.

次に、ステップ240で示すように例外が発生しない限
り、以降の処理を続けて行き、もしマスタプロセッサ1
またはコプロセッサ2上で例外が発生したら、ステップ
250に示すように、マスタプロセッサ1はその際のマ
スタプロセッサ1またはコプロセッサ2のレジスタ情報
等(コンテキスト)を主記憶装置4内にある例外退避領
域41に格納する。
Next, as shown in step 240, the subsequent processing continues unless an exception occurs, and if the master processor 1
Alternatively, if an exception occurs on the coprocessor 2, as shown in step 250, the master processor 1 stores the register information (context) of the master processor 1 or coprocessor 2 at that time in the exception save area in the main memory 4. 41.

次に、ステップ260て示すようにマスタプロセッサ1
は制御手段12により、この例外がマスタプロセッサ1
で発生したのかコプロセッサ2で発生したのかを判断し
、コプロセッサ2で発生したので有れば、ステップ27
0で示すように記憶手段3の値を例外退避領域41内に
あるコプロセッサカウンタセーブ領域411に退避する
。この時、記憶手段3の内容はコプロセッサ命令の存在
するアドレスであるから、例外退避領域41内にコプロ
セッサ命令のアドレスが格納される。
Next, as shown in step 260, the master processor 1
The control means 12 causes this exception to be detected by the master processor 1.
It is determined whether the occurrence occurred in coprocessor 2 or coprocessor 2, and if it occurred in coprocessor 2, step 27
The value of the storage means 3 is saved to the coprocessor counter save area 411 in the exception save area 41 as indicated by 0. At this time, since the content of the storage means 3 is the address where the coprocessor instruction exists, the address of the coprocessor instruction is stored in the exception save area 41.

このようにすると、コプロセッサ命令で例外動作が発生
し、マスタプロセッサ1が既に例外要因となったコプロ
セッサ命令以降の処理を行っていた場合でも、コプロセ
ッサ命令の存在するアドレスを例外退避領域41の内容
がら知ることができる。
In this way, even if an exception occurs with a coprocessor instruction and the master processor 1 has already processed the coprocessor instruction that caused the exception, the address where the coprocessor instruction exists will be stored in the exception save area 4. You can learn about the contents.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、命令のアドレスを記憶す
るための記憶手段に、マスタプロセッサがコプロセッサ
命令を取り出した際に、命令が存在するアドレスを記憶
し、マスタプロセッサがコプロセッサから例外検出を通
知された際に、主記憶内の例外処理用の退避エリアに記
憶手段が記憶した内容を退避させることによって、退避
エリアの内容により例外を起こしたコブロセッザ命令の
アドレスを容易に特定できるので、障害調査を迅速に行
うことができるという効果がある。
As explained above, the present invention stores the address where the instruction exists when the master processor retrieves the coprocessor instruction in the storage means for storing the address of the instruction, and the master processor detects an exception from the coprocessor. By saving the contents stored by the storage means in the save area for exception handling in the main memory when notified, the address of the Cobroseza instruction that caused the exception can be easily identified from the contents of the save area. This has the effect of allowing prompt investigation of failures.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例のブロック図、第2図は本実
施例の動作を説明するためのフローヂャー1〜である。 ]・・マスタプロセッサ、2・・・コブロセッザ、3・
・記憶手段、4・・・主記憶装置。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a flowchart 1 to 1 for explaining the operation of this embodiment. ]... Master processor, 2... Cobroseza, 3...
- Storage means, 4... main storage device.

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置のマスタプロセッサは順次命令を取り出し
て実行し従属するコプロセッサに取り出したコプロセッ
サ命令の実行を代行させ前記コプロセッサ命令以降の命
令を取り出して並列処理を行う情報処理装置において、
前記命令のアドレスを記憶する記憶手段と、前記マスタ
プロセッサが前記コプロセッサ命令を取り出した際に前
記命令が存在するアドレスを前記記憶手段に記憶する第
1の制御手段と、前記マスタプロセッサが前記コプロセ
ッサから例外検出を通知されたとき主記憶装置の例外処
理用の退避エリアに前記記憶手段の内容を退避させる第
2の制御手段とを有することを特徴とする情報処理装置
の例外処理方式。
In an information processing device, a master processor of a central processing unit sequentially fetches and executes instructions, causes subordinate coprocessors to execute the fetched coprocessor instructions on behalf of the master processor, and fetches instructions subsequent to the coprocessor instructions to perform parallel processing,
storage means for storing the address of the instruction; first control means for storing in the storage means the address at which the instruction exists when the master processor retrieves the coprocessor instruction; An exception handling method for an information processing device, comprising: second control means for saving the contents of the storage means to a save area for exception processing in a main memory when notified of exception detection from a processor.
JP2220246A 1990-08-22 1990-08-22 Exception processing system for information processor Pending JPH04102959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2220246A JPH04102959A (en) 1990-08-22 1990-08-22 Exception processing system for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2220246A JPH04102959A (en) 1990-08-22 1990-08-22 Exception processing system for information processor

Publications (1)

Publication Number Publication Date
JPH04102959A true JPH04102959A (en) 1992-04-03

Family

ID=16748186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2220246A Pending JPH04102959A (en) 1990-08-22 1990-08-22 Exception processing system for information processor

Country Status (1)

Country Link
JP (1) JPH04102959A (en)

Similar Documents

Publication Publication Date Title
JPH04102959A (en) Exception processing system for information processor
JP2880658B2 (en) Runaway detection device for multitask program
JP2765831B2 (en) Data processing device
JPS61117635A (en) Virtual storage control system
JPH09160800A (en) emulator
JPH0241532A (en) Exception processing method for microprocessor
JPH0335323A (en) Control system for execution of instruction
JPH08249019A (en) Arithmetic device and programmable controller using the arithmetic device
JPH03109643A (en) Execution system for data exception procedure
JP2998299B2 (en) Processor control unit
JP3029355B2 (en) Single-step instruction execution method
JPH02244345A (en) Information processor
JPH0715662B2 (en) Information processing device for prefetching instructions
JPH01321523A (en) Data processor
JPH0772908A (en) Programmable controller
JPS63314649A (en) Data processor
JPH04131931A (en) Control system for real address load instruction
JPH0512005A (en) Information processor
JPS63301331A (en) Processing system for program interruption
JPH0772874B2 (en) Interrupt receiving device
JPH02226344A (en) Computer system
JPH01250143A (en) Program correction system
JPH08328900A (en) emulator
JPH01140239A (en) Instruction executing address preserving processing system
JPS6010337B2 (en) virtual memory controller