JPH03105529A - Psw type error control circuit - Google Patents

Psw type error control circuit

Info

Publication number
JPH03105529A
JPH03105529A JP1242313A JP24231389A JPH03105529A JP H03105529 A JPH03105529 A JP H03105529A JP 1242313 A JP1242313 A JP 1242313A JP 24231389 A JP24231389 A JP 24231389A JP H03105529 A JPH03105529 A JP H03105529A
Authority
JP
Japan
Prior art keywords
psw
program
state
virtual machine
control program
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
JP1242313A
Other languages
Japanese (ja)
Inventor
Tetsuya Hagiwara
哲也 萩原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1242313A priority Critical patent/JPH03105529A/en
Publication of JPH03105529A publication Critical patent/JPH03105529A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the abnormality of a control signal by providing a means which detects the end timing of a program interruption and holds a PSW type error if occurred and a means which is shifted to a running state of a control program for a virtual machine mechanism with the contents of the holding means kept at the prescribed value and at occurrence of an interruption. CONSTITUTION:The end timing of an interruption occurred in the running state of a virtual machine or the end timing of a program interruption occurred at detection of a PSW type error is detected by a means 3. Then the means 3 holds the PSW type error occurred. Meanwhile a means 4 is shifted to a virtual machine mechanism control program running state HPV with the contents of the means 3 kept at the prescribed value and at occurrence of a program interruption. As a result, the final flow works continuously up to a W cycle after the loading of the PSW and is shifted to a virtual machine mechanism control program. Thus an instruction fetch or operand access control signal never have the abnormality.

Description

【発明の詳細な説明】 [概  要コ 仮想計算機のPSW形式エラー発生時の制御に関し、 VMステートからHPVステートへの遷移に際する異常
状態の発生の防止を目的とし、実計算機を仮想計算機機
構制御プログラム(モニタ)により管理して複数の仮想
計算機として用いる如く構威され、仮想計算機として走
行中にPSW形式エラーが発生した場合に、前記仮想計
算機機構制御プログラムの走行状態に遷移して処理する
如く制御される仮想計算機システムにおいて、仮想計算
機の走行中の割込み終了タイミングまたはPSW形式エ
ラー未検出時に生起したプログラム割込みの終了タイミ
ングを検出し、PSW形式エラーが発生したとき、これ
を保持する手段と、上記保持手段の内容が所定の値で、
かつ、プログラム割込みの発生時に、仮想計算機機構制
御プログラム走行状態に遷移する手段とを設けることに
より構或する。
[Detailed Description of the Invention] [Summary Regarding control when a PSW format error occurs in a virtual machine, the real computer is transferred to a virtual machine mechanism for the purpose of preventing the occurrence of an abnormal state when transitioning from the VM state to the HPV state. It is managed by a control program (monitor) and configured to be used as multiple virtual computers, and if a PSW format error occurs while running as a virtual computer, it is processed by transitioning to the running state of the virtual computer mechanism control program. In a virtual computer system controlled as described above, means for detecting the end timing of an interrupt while a virtual machine is running or the end timing of a program interrupt that occurs when no PSW format error is detected, and for holding this when a PSW format error occurs. , the content of the holding means is a predetermined value,
In addition, means for transitioning to a virtual machine mechanism control program running state when a program interrupt occurs is provided.

[産業上の利用分野] 本発明は仮想計算機システムにおいてプログラム状態語
(以下PSWとも言う〉の形式エラーが発生した場合の
制御に関し、特に、Pswの形式エラー発生に際する仮
想計算機制御プログラム(モニタ)への遷移タイミング
の制御に係る。
[Industrial Field of Application] The present invention relates to control when a format error occurs in a program state word (hereinafter also referred to as PSW) in a virtual computer system, and in particular, the present invention relates to control of a virtual computer control program (monitor) when a format error occurs in a program state word (PSW) in a virtual computer system. ) related to control of transition timing.

[従来の技術] 電子計算機において、プロセッサが実行する命令はプロ
グラム状態語(PSW)に従って主記憶から読み出され
、また、該Pswに基づいて管理される。
[Background Art] In an electronic computer, instructions executed by a processor are read from main memory according to a program state word (PSW), and are managed based on the PSW.

PSWは、予め、主記憶上の特定領域に割込みの種類別
に、新PSW、旧Psw領域として用意され、割込みが
発生すると、その割込みの種類に応じて現PSWを旧P
Sw領域に書き込むことによって退避し、一方主記憶上
の新PSW領域に予め用意されている内容を現Pswと
してレジスタにロードし、該現Pswの内容に応じて読
み出されたプログラムがプロセッサによって実行される
The PSW is prepared in advance as a new PSW and old PSW area in a specific area on the main memory according to the type of interrupt, and when an interrupt occurs, the current PSW is replaced with the old PSW depending on the type of interrupt.
The program is saved by writing to the Sw area, and the contents prepared in advance in the new PSW area on the main memory are loaded into the register as the current Psw, and the program read according to the contents of the current Psw is executed by the processor. be done.

PSWの内容が不当なものであるとプロセッサによる処
理の保証ができなくなるから、新PSWをロードすると
き、その形式(フォーマット)に不都合があるか否かに
ついてのチェックが行なわれる。
If the contents of the PSW are invalid, processing by the processor cannot be guaranteed, so when loading a new PSW, a check is made to see if there is any problem with its format.

このとき、PSWに形式エラーがあった場合には、割込
み(プログラム割込)を発生して、PSW形式エラーに
対応する処理が行なわれる。
At this time, if there is a format error in the PSW, an interrupt (program interrupt) is generated and processing corresponding to the PSW format error is performed.

前述したように、割込み動作は旧PSWを主記憶の特定
番地に格納した後、主記憶の特定番地に格納されている
新PSWの内容をロードすることにより行なわれる。と
ころが、この新PSWの内容が不当であった場合には、
またPSW形式エラーのプログラム割込みを起こし、つ
まりはプログラム割込みの永久ループに陥る。
As described above, the interrupt operation is performed by storing the old PSW at a specific address in the main memory and then loading the contents of the new PSW stored at the specific address in the main memory. However, if the contents of this new PSW are inappropriate,
It also causes a program interrupt due to a PSW format error, which means an endless loop of program interrupts.

通常は、新PSWはOSによって用意されるためこのよ
うなことは起こらないが、新規開発のOSを仮想計算機
機構によりデバッグしている時等には充分起こり得るこ
とである。
Normally, this does not occur because the new PSW is prepared by the OS, but it is quite possible when a newly developed OS is being debugged using a virtual machine mechanism.

このため、仮想計算機上でプログラム割込みの新PSW
がPSW形式エラーとなった場合は、ハードで仮想計算
機制御プログラム(モニタ)に割り込むよう制御してい
る。
For this reason, a new PSW for program interrupts on the virtual machine is required.
If a PSW format error occurs, the hardware is controlled to interrupt the virtual machine control program (monitor).

モニタへの割込みとは、具体的にはVMステートからH
PVステートに状態遷移することを示す。VMステート
とは仮想計算機が走行するためのステートであり、HP
Vステートとはモニタが走行するためのステートである
Specifically, an interrupt to the monitor is an interrupt from the VM state to H
Indicates state transition to PV state. VM state is the state in which a virtual computer runs, and
The V state is a state in which the monitor runs.

仮想計i機システムでは、主記憶を複数の仮想計算機と
モニタで分割し、それぞれのプログラムの意識する絶対
アドレスにベースアドレスを下駄履かせする。つまり割
込みが起こってバイブラインクリア時にHPVステート
に遷移すると、モニタ用の下駄履かせが行なわれ、割り
当てられた主記憶の領域から新Pswを読み出すことに
よりモニタプログラムが開始される。
In the virtual computer i-machine system, the main memory is divided between multiple virtual computers and monitors, and the base address is assigned to the absolute address that each program is aware of. That is, when an interrupt occurs and a transition occurs to the HPV state when the vibe line is cleared, the monitor wears clogs, and the monitor program is started by reading a new Psw from the allocated main memory area.

従来、上記のPSW形式エラーが発生した時は、HPV
ステートへの遷移を、新PSWが口一ドされてプロセス
ステート(PROCESSSTATE)に状態遷移じた
時に直ちに行なうように制御していた。
Conventionally, when the above PSW format error occurred, HPV
Control is such that the transition to the state is performed immediately when the new PSW is pressed and the state transitions to the process state (PROCESS STATE).

[発明が解決しようとする課題] 第3図は従来のPSW形式エラー発生時の制御の例を示
すタイムチャートである。同図に示すように、プログラ
ム割込み処理マイクロプログラムのPSWロード後の最
終フローのDサイクルが始まると、NS I  REQ
  LCH (NEXT  STREAM  INST
RUCTION  REQUEST  LATCI{)
が○Nとなり、これをトリガとしてステートマシンはエ
ンド・ブoセス・7.テ } (END  PROCE
SS  STATE)からスタート・ステート(STA
RT  STΔTE)を経てプロセス・ステート (P
ROCESS  STATE)l.m遷移する。
[Problems to be Solved by the Invention] FIG. 3 is a time chart showing an example of conventional control when a PSW format error occurs. As shown in the figure, when the D cycle of the final flow after loading the PSW of the program interrupt processing microprogram starts, the NSI REQ
LCH (NEXT STREAM INST
RUCTION REQUEST LATCI{)
becomes ○N, and using this as a trigger, the state machine executes the end process 7. Te } (END PROCE
SS STATE) to start state (STA
RT STΔTE) to process state (P
ROCESS STATE)l. m transition.

ここで、プロセス・ステート・ラッチ(PR○CESS
  STATE  LCH)がOFFでPROCESS
  STATEでプログラム割込みを示すPGM  L
CHがONで、かつ、PSWFE(形式エラー)である
ことを条件にHPVステートに遷移する。PGM  L
CHはPROCESS  STATEによりリセットさ
れる。
Here, process state latch (PR○CESS
STATE LCH) is OFF and PROCESS
PGM L indicating program interrupt in STATE
Transition to HPV state on condition that CH is ON and PSWFE (format error). PGM L
CH is reset by PROCESS STATE.

従来の制御では、このようにPROCESSSTATE
で、直に状態遷移していたため、その結果、VM/HP
Vに影響される命令フェッチや、オペランドアクセスの
制御信号が異常を来す恐れがあった。
In conventional control, PROCESSSTATE is
As a result, the VM/HP
There was a risk that the instruction fetch and operand access control signals affected by V would become abnormal.

本発明は、このような従来の問題点に鑑み、PSW形式
エラーが発生して、仮想計算機の走行状態(VMステー
ト)から仮想計算機機構制御プログラム走行状態(HP
Vステート)に遷移したとき、これに関連して命令フェ
ッチやオペランドアクセスの制御信号が異常を生ずるこ
とのない制御方式を提供することを目的としている。
In view of these conventional problems, the present invention provides a solution for changing the running state of a virtual machine control program (HP) from the running state of a virtual machine (VM state) when a PSW format error occurs.
It is an object of the present invention to provide a control method that does not cause abnormalities in control signals for instruction fetch and operand access when a transition is made to the V state.

[課題を解決するための手段] 本発明によれば、上述の目的は、前記特許請求の範囲に
記載した手段により達成される。
[Means for Solving the Problems] According to the present invention, the above objects are achieved by the means described in the claims.

すなわち、本発明は、実計算機を仮想計算機機構制御プ
ログラム(モニタ)により管理して複数の仮想計算機と
して用いる如く構戊され、仮想計算機として走行中にP
SW形式エラーが発生した場合に、前記仮想計算機機構
制御プログラムの走行状態に遷移して処理する如く制御
される仮想計算機システムにおいて、プログラム割込み
の終了タイミングを検出し、PSW形式エラーが発生し
たときこれを保持する手段と、上記保持手段の内容が所
定の値で、かつ、プログラム割込みの発生時に、仮想計
算機機構制御プログラム走行状態に遷移する手段とを設
けたPSW形式エラー制御回路である。
That is, the present invention is configured such that a real computer is managed by a virtual computer mechanism control program (monitor) and used as a plurality of virtual computers.
In a virtual computer system that is controlled so that when a SW format error occurs, the virtual computer mechanism control program transitions to a running state and processes it, detects the end timing of a program interrupt, and detects this when a PSW format error occurs. This is a PSW type error control circuit which is provided with means for holding the above-mentioned holding means at a predetermined value and means for transitioning to a virtual machine mechanism control program running state when a program interrupt occurs.

[作 用] 従来の方式においては、前述のように仮想計算機の走行
状態でPSW形式エラーが発生したときには、PSWロ
ード後の最終フローのDサイクルが始まると、プロセス
・ステート・ラッチが○FFで、プロセス・ステートで
プログラム割込みを示すPGM・ラッチがONで、かつ
、PSW形式エラーが発生したと言う条件によって、直
ちに、仮想計算機機構制御プログラムに遷移していたの
で、前記PSWロード後の最終フローのDサイクル以降
のステップの処理が保証されず、異常を生ずる原因とな
っていた。
[Function] In the conventional method, as mentioned above, when a PSW format error occurs while the virtual machine is running, the process state latch is set to FF when the D cycle of the final flow after loading the PSW starts. , because the PGM latch indicating a program interrupt was ON in the process state and a PSW format error occurred, the program immediately transitioned to the virtual machine mechanism control program, so the final flow after loading the PSW was Processing of steps after the D cycle is not guaranteed, which causes abnormalities.

これに対し、本発明においては、仮想計算機の走行中の
割込み終了タイミング、または、PSW形式エラー未検
出時に生起したプログラム割込みの終了タイミングを検
出し、PSW形式エラーが発生したとき、これを保持し
て、上記保持内容が所定の値で、かつ、プログラム割込
みの発生時に、仮想計算機機構制御プログラム走行状態
に遷移する如く制御している。
In contrast, in the present invention, the end timing of an interrupt while a virtual machine is running or the end timing of a program interrupt that occurs when no PSW format error is detected is detected, and this is retained when a PSW format error occurs. Control is performed so that when the above-mentioned held content is a predetermined value and a program interrupt occurs, the virtual machine mechanism control program runs state.

従って、前記PSWロード後の最終フローはWサイクル
まで動作し、その後仮想計算機機構制御プログラムに遷
移するので、命令フエツチや才ペランドアクセスの制御
信号が異常を生ずることがない。
Therefore, the final flow after loading the PSW operates up to W cycles and then transitions to the virtual machine mechanism control program, so that no abnormality occurs in the control signals for instruction fetch or operand access.

[実施例〕 第1図は本発明の一実施例を示す図であって、1はアン
ド回路、2はオア回路、3はラッチ、4はアンド回路を
表わしている。
[Embodiment] FIG. 1 is a diagram showing an embodiment of the present invention, in which 1 represents an AND circuit, 2 an OR circuit, 3 a latch, and 4 an AND circuit.

同図において、PGM  PUPTはプログラム割込み
が生じたとき、START  STATEはスタートプ
ロセスで、またVM  STATEは仮想計算機走行中
にそれぞれ“1”となる信号である。また、−PSW 
 FEはpsw形式エラーが発生していない状態では′
1″であり、PSW形式エラーが発生したとき“0”と
なる信号である。
In the figure, PGM PUPT is a signal that becomes "1" when a program interrupt occurs, START STATE during a start process, and VM STATE when a virtual machine is running. Also, -PSW
When FE does not have psw format error,
This is a signal that becomes "0" when a PSW format error occurs.

第2図は、実施例の動作を示すタイムチャートである。FIG. 2 is a time chart showing the operation of the embodiment.

同図において、ステートマシンと表示された各ステート
を表わすラインのエンド・プロセス(END  PRO
CESS).スタート・スタ一ト・ステー} (STA
RT),プロセス・ステー}  (PROCESS)に
続<RSI,RSIDはりスタート・ステートである。
In the same figure, the end process (END PRO) of the line representing the state machine and each displayed state is shown.
CESS). start, start, stay} (STA
RT), process state} (PROCESS) followed by <RSI, RSID is the start state.

VMは仮想計算機、HPVは仮想計算機機構制御プログ
ラム(モニタ)の走行を表わしている。
VM represents a virtual computer, and HPV represents running of a virtual computer mechanism control program (monitor).

PSW  FEはPSW形式エラーが発生したとき“l
”となる信号、NSI  REQ  LCHは次命令の
フエツチを要求する信号を保持するラッチ、PGM  
LCHはプログラム割込みが発生したことを示す信号を
保持するラッチ、PSW  FE  ON  PXは第
1図のラッチ3の出力信号で、PSW形式エラーが発生
したとき“1”として保持される。
PSW FE outputs “l” when a PSW format error occurs.
”, NSI REQ LCH is a latch that holds the signal requesting fetching of the next instruction, PGM
LCH is a latch that holds a signal indicating that a program interrupt has occurred, and PSW FE ON PX is an output signal of latch 3 in FIG. 1, which is held as "1" when a PSW format error occurs.

該ラッチ3は、スタート・ステートまたはPSW形式エ
ラー未検出の時、第1図に示すクロック・イネーブル(
−CLOCK  ENABLE)信号が有効になり、該
ラッチの内容が更新されるようになっている。
When the latch 3 is in the start state or when no PSW format error is detected, the clock enable (
-CLOCK ENABLE) signal is enabled and the contents of the latch are updated.

該ラッチ3は、人力がPGM  RURT,START
  STΔTE,VM  STATEが共に“1”であ
るとき、“1”が保持される。
The latch 3 is manually operated by PGM RURT, START.
When STΔTE and VM STATE are both "1", "1" is held.

すなわち、プログラム割込みのスタート・ステートで、
一旦、ラッチ3に“l”が保持されようとするがこのと
き、PSW形式エラーでなければ直ちにリセットされる
。PSW形式エラーが発生して信号一PSW  FEが
“0”である場合にはラッチ3に“l”が保持され続け
、割込みのRSIDのタイミングで仮想計算機機橘制御
プログラムに遷移する。
That is, in the start state of the program interrupt,
Once the latch 3 attempts to hold "l", it is immediately reset unless there is a PSW format error. If a PSW format error occurs and the signal PSW FE is "0", the latch 3 continues to hold "1" and transitions to the virtual machine Tachibana control program at the timing of the interrupt RSID.

[発明の効果] 以上説明したように、本発明によれば、PSW形式エラ
ーが発生して、仮想計算機の走行状態( V Mステー
ト)から仮想計算機機構制御プログラム走行状態(HP
Vステート〉に遷移したとき、これに関連して命令フエ
ツチやオペランドアクセスの制御信号が異常を生ずるこ
とがないから、処理上の損失時間の発生を未然に防止し
得る利点がある。
[Effects of the Invention] As explained above, according to the present invention, when a PSW format error occurs, the running state of the virtual machine control program (VM state) is changed from the running state of the virtual machine control program (HP state).
When the transition to the V state is made, no abnormality occurs in the instruction fetch or operand access control signals in connection with this, so there is an advantage that processing loss time can be prevented from occurring.

【図面の簡単な説明】 第1図は、本発明の一実施例を示す図、第2図は実施例
の動作を示すタイムチャート、第3図は従来のPSW形
式エラー発生時の制御の例を示すタイムチャートである
。 1.4・・・・・・アンド回路、2・・・・・・オア回
路、3・・・・・・ラッチ
[Brief Description of the Drawings] Fig. 1 is a diagram showing an embodiment of the present invention, Fig. 2 is a time chart showing the operation of the embodiment, and Fig. 3 is an example of conventional control when a PSW format error occurs. It is a time chart showing. 1.4...AND circuit, 2...OR circuit, 3...Latch

Claims (1)

【特許請求の範囲】 実計算機を仮想計算機機構制御プログラム(モニタ)に
より管理して複数の仮想計算機として用いる如く構成さ
れ、 仮想計算機として走行中にPSW形式エラーが発生した
場合に、前記仮想計算機機構制御プログラムの走行状態
に遷移して処理する如く制御される仮想計算機システム
において、プログラム割込みの終了タイミングを検出し
、PSW形式エラーが発生したときこれを保持する手段
と、 上記保持手段の内容が所定の値で、かつ、プログラム割
込みの発生時に、仮想計算機機構制御プログラム走行状
態に遷移する手段とを設けたことを特徴とするPSW形
式エラー制御回路。
[Scope of Claims] A real computer is configured to be managed by a virtual computer mechanism control program (monitor) and used as a plurality of virtual computers, and when a PSW format error occurs while running as a virtual computer, the virtual computer mechanism In a virtual computer system that is controlled so as to transition to a running state of a control program and perform processing, means for detecting the end timing of a program interrupt and retaining this when a PSW format error occurs, and the contents of the retaining means are predetermined. , and means for transitioning to a virtual machine mechanism control program running state when a program interrupt occurs.
JP1242313A 1989-09-20 1989-09-20 Psw type error control circuit Pending JPH03105529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1242313A JPH03105529A (en) 1989-09-20 1989-09-20 Psw type error control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1242313A JPH03105529A (en) 1989-09-20 1989-09-20 Psw type error control circuit

Publications (1)

Publication Number Publication Date
JPH03105529A true JPH03105529A (en) 1991-05-02

Family

ID=17087358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1242313A Pending JPH03105529A (en) 1989-09-20 1989-09-20 Psw type error control circuit

Country Status (1)

Country Link
JP (1) JPH03105529A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012038197A (en) * 2010-08-10 2012-02-23 Fujitsu Ltd Information processor and interruption control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012038197A (en) * 2010-08-10 2012-02-23 Fujitsu Ltd Information processor and interruption control program
US9009422B2 (en) 2010-08-10 2015-04-14 Fujitsu Limited Information processing apparatus and interrupt control method
US9069742B1 (en) 2010-08-10 2015-06-30 Fujitsu Limited Information processing apparatus

Similar Documents

Publication Publication Date Title
US7752427B2 (en) Stack underflow debug with sticky base
EP0897151A1 (en) Device and method for debugging systems controlled by microprocessors
JPH0689201A (en) Microprocessor having run/stop pin for accessing idle mode and operating method thereof
JPH03105529A (en) Psw type error control circuit
JP2653412B2 (en) How to set breakpoints
JPS60124746A (en) Data processing unit
JP3719241B2 (en) Arithmetic unit
JPH0149975B2 (en)
JP2765831B2 (en) Data processing device
JP2003345456A (en) Interrupt processing method in computer system
JPH07134665A (en) Information processor
JP2540605B2 (en) Data flow computer execution detection method
JPS62254236A (en) Detector for exceptional phenomenon
JPS62173541A (en) Control system for break point
JP2000089969A (en) Data processor
JPH0333939A (en) Microprocessor
JPH06295252A (en) Computer
JP2003223340A (en) Debug supporting device and method, program developing device, and program developing program
JPS60142435A (en) Debugging device of program
JPH01175052A (en) Microaddress register mechanism
JPH0772874B2 (en) Interrupt receiving device
JPH0336633A (en) Direct interruption executing system for virtual computer
JPH0628218A (en) Program development assisting device for microcomputer
JPH0452973B2 (en)
JPS6134167B2 (en)