JP2550686B2 - Information processing device - Google Patents

Information processing device

Info

Publication number
JP2550686B2
JP2550686B2 JP63297631A JP29763188A JP2550686B2 JP 2550686 B2 JP2550686 B2 JP 2550686B2 JP 63297631 A JP63297631 A JP 63297631A JP 29763188 A JP29763188 A JP 29763188A JP 2550686 B2 JP2550686 B2 JP 2550686B2
Authority
JP
Japan
Prior art keywords
debug
register
interrupt
virtual computer
information processing
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.)
Expired - Lifetime
Application number
JP63297631A
Other languages
Japanese (ja)
Other versions
JPH02143338A (en
Inventor
康治 斉藤
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP63297631A priority Critical patent/JP2550686B2/en
Publication of JPH02143338A publication Critical patent/JPH02143338A/en
Application granted granted Critical
Publication of JP2550686B2 publication Critical patent/JP2550686B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明の仮想計算機方式をとるまたはデバグ状態を有
する情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to an information processing apparatus which adopts a virtual computer system or has a debug state.

[従来の技術] 従来、この種の情報処理装置は、デバグ割込みに関
し、デバグ割込みを発生させたい仮想計算機を指定する
ことかできなかった。また、デバグ状態を有する情報処
理装置は、命令取り出し、オペランドフェッチ、オペラ
ンド格納に関してのデバグ割込み等があった。また、こ
の種の情報処理装置では装置が仮想計算機として動作し
ているときにセグメントベースレジスタの値が異常にな
っても、これを検出することができなかった。
[Prior Art] Conventionally, with respect to a debug interrupt, this type of information processing apparatus has been unable to specify a virtual computer for which a debug interrupt is desired to be generated. Further, the information processing device having the debug state has a debug interrupt for fetching an instruction, fetching an operand, and storing an operand. Further, in this type of information processing apparatus, even if the value of the segment base register becomes abnormal while the apparatus is operating as a virtual computer, this cannot be detected.

[発明が解決しようとする課題] 上述した従来の情報処理装置では、異なる仮想計算機
で同一のアドレスを使用していると、どちらの仮想計算
機でもデバグ割込みを検出してしまうという欠点があ
る。
[Problems to be Solved by the Invention] In the above-described conventional information processing apparatus, when different virtual machines use the same address, both virtual machines have a drawback that a debug interrupt is detected.

上述した従来のデバグ機能では、装置の障害による異
常や装置の評価時のデバグでは、必要な条件が設定がで
きないという欠点がある。
The conventional debug function described above has a drawback in that a necessary condition cannot be set in an abnormality due to a failure of the device or a debug during evaluation of the device.

上述した従来の情報処理装置は、装置が仮想計算機と
して動作している時にセグメントベースレジスタの値が
VMモニタのプログラムミスによって破壊されても、VMOS
上でその異常状態が検出できないため、VMOSが暴走して
しまい、その解析に多大の労力を要するという欠点があ
る。
In the conventional information processing device described above, the value of the segment base register is set when the device is operating as a virtual computer.
Even if it is destroyed by a VM monitor program mistake, VMOS
Since the abnormal state cannot be detected above, the VMOS runs out of control, which requires a great deal of labor for analysis.

[課題を解決するための手段] 本発明の第1の情報処理装置は、仮想計算機方式をと
る情報処理装置において、装置が仮想計算機として作動
していることを示すVMモードフラグと、装置がデバグ状
態であることを示すデバグモードフラグと、デバグ割込
を検出するデバグ割込検出回路と、動作中の仮想計算機
の仮想計算機識別番号が格納される仮想計算機識別レジ
スタと、デバグ割込を発生させる仮想計算機を指定する
デバグ計算機指定レジスタと、前記仮想計算機識別レジ
スタの格納値および前記デバグ計算機指定レジスタの格
納値の一致検出を行う比較手段と、前記VMモードフラグ
が仮想計算機として作動中であることを示し、かつ、前
記デバグモードフラグがデバグ状態であることを示し、
かつ、前記デバグ割込検出回路がデバグ割込を検出し、
かつ、前記比較回路が前記仮想計算機識別レジスタの格
納値と前記デバグ計算機指定レジスタの格納値とが一致
したことを検出したときに、デバグ割込を発生させる制
御回路とを含む。また、別の実施態様では、本発明の第
1の情報処理装置は、前記VMモードフラグが仮想計算機
として作動していないことを示し、かつ、前記デバグ割
込検出回路がデバグ割込を検出したときにも、前記制御
回路がデバグ割込を発生させるように構成される。
[Means for Solving the Problem] A first information processing apparatus of the present invention is, in an information processing apparatus employing a virtual computer system, a VM mode flag indicating that the apparatus is operating as a virtual computer, and the apparatus being debugged. A debug mode flag that indicates the status, a debug interrupt detection circuit that detects a debug interrupt, a virtual computer identification register that stores the virtual computer identification number of a virtual computer that is operating, and a debug interrupt that occurs A debug computer designating register that designates a virtual computer, a comparing unit that detects a match between a stored value of the virtual computer identification register and a stored value of the debug computer designating register, and the VM mode flag is operating as a virtual computer. And also indicates that the debug mode flag is in a debug state,
And, the debug interrupt detection circuit detects a debug interrupt,
And a control circuit for generating a debug interrupt when the comparison circuit detects that the stored value of the virtual computer identification register matches the stored value of the debug computer designating register. Further, in another embodiment, the first information processing apparatus of the present invention shows that the VM mode flag is not operating as a virtual computer, and the debug interrupt detection circuit detects a debug interrupt. Sometimes, the control circuit is also configured to generate a debug interrupt.

本発明の第2の情報処理装置は、装置のデバグ状態を
示すデバグモードレジスタと、プログラム割込みを検出
し、例外番号を作成する例外検出回路と、前記例外番号
によってアドレスを与えられ、例外番号に対応するソフ
トウエアに通知する割込みコードを出力するメモリデコ
ータと、プログラム割込みを発生したソフトウエア命令
を指す命令カウントレジスタと、デバグ状態のときに割
込みコードと命令カウントレジスタの値を監視し、割込
みコードと命令カウントレジスタの値が指定された値に
なったことを検出し、チェック信号を発生するデバグ検
出回路を有している。
A second information processing apparatus of the present invention includes a debug mode register which indicates a debug state of the apparatus, an exception detection circuit which detects a program interrupt and creates an exception number, an address given by the exception number, and an exception number. The memory decoder that outputs the interrupt code to notify the corresponding software, the instruction count register that points to the software instruction that generated the program interrupt, and the interrupt code and the value of the instruction count register in the debug state are monitored and It has a debug detection circuit that detects that the value of the instruction count register has reached a specified value and generates a check signal.

本発明の第3の情報処理装置は、装置がデバグ状態で
動作していることを示すデバグモードフラグと、装置が
仮想計算機として動作していることを示すVMモードフラ
グと、VMモニタとVMOSが共通に使用するセグメントベー
スレジスタの上位ビットの値と比較するためのデータを
保持するデータレジスタと、装置がデバグ状態かつ仮想
計算機として動作しているときに前記データレジスタの
値とセグメントベースレジスタの上位ビットの値とが一
致すると、チェック信号を発生するチェック回路を有し
ている。
The third information processing apparatus of the present invention includes a debug mode flag indicating that the apparatus is operating in a debug state, a VM mode flag indicating that the apparatus is operating as a virtual computer, a VM monitor and a VMOS. A data register that holds data to be compared with the upper bit value of the segment base register that is commonly used, and a value of the data register and an upper bit of the segment base register when the device is in a debug state and operating as a virtual machine It has a check circuit that generates a check signal when the bit values match.

[作用] 第1の情報処理装置では、指定した仮想計算機でのみ
デバグ割込みを発生させるので、たとえ異なった仮想計
算機で同一のアドレスを使用していても、目的の仮想計
算機でのみデバグ割込みを発生させることができる。
[Operation] In the first information processing apparatus, since the debug interrupt is generated only in the designated virtual machine, the debug interrupt is generated only in the target virtual machine even if the same address is used in different virtual machines. Can be made.

第2の情報処理装置では、プログラム割込みコードと
プログラム割込みを発生したソフトウエア命令を指す命
令カウントレジスタの値をチェックするので、本来発生
してはいけない不正な例外を検出できる。
Since the second information processing device checks the program interrupt code and the value of the instruction count register that points to the software instruction that generated the program interrupt, it can detect an illegal exception that should not occur.

第3の情報処理装置は、デバグ状態で装置が仮想計算
機として動作している時に、セグメントベースレジスタ
の上位ビットにVMモニタが使用するセグメントベースレ
ジスタの値がロードされていたらこれを検出することに
より、装置が仮想計算機として動作している時の異常を
検出できる。
The third information processing device detects the value of the segment base register used by the VM monitor if the value of the segment base register used by the VM monitor is loaded in the upper bit of the segment base register when the device is operating as a virtual machine in the debug state. , It is possible to detect an abnormality when the device operates as a virtual computer.

[実施例] 次に、本発明の実施例について図面を参照して説明す
る。
Example Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の情報処理装置の第1の実施例の要部
を示すブロック図である。
FIG. 1 is a block diagram showing a main part of a first embodiment of the information processing system of the invention.

本情報処理装置は、VMモードフラグ1と仮想計算機識
別レジスタ2とデバグ計算機指定レジスタ3とデバグ状
態フラグ4とデバグマスクレジスタ5とデバグ割込み検
出回路6と比較器7と論理ゲートを有している。
This information processing apparatus has a VM mode flag 1, a virtual computer identification register 2, a debug computer designation register 3, a debug status flag 4, a debug mask register 5, a debug interrupt detection circuit 6, a comparator 7 and a logic gate. .

VMモードフラグ1は装置が仮想計算機として動作して
いることを示すフタグで、“0"のとき実計算機モード、
“1"のとき仮想計算機モードで装置が動作していること
を示す。本VMモードフラグ1の値は信号VMとして出力さ
れる。仮想計算機識別レジスタ2は装置が仮想計算機と
して動作しているとき(VMモードフラグ1が“1"のと
き)、動作している仮想計算機を区別する仮想計算機識
別番号を保持するレジスタであり、信号VMIDとして出力
される。デバグ計算機指定レジスタ3は装置が仮想計算
機として動作しているときに、デバグ割込みの発生する
仮想計算機を指定するレジスタであり、信号DBGIDとし
て出力される。デバグ状態フラグ4は装置がデバグ状態
であることを示すフラグで、“0"のとき通常状態、“1"
のときデバグ状態であることを示す。該デバグ状態フラ
グ4の値は信号DBGとして出力される。デバグマスクレ
ジスタ5はデバグ割込み要因ごとに対応するマスク情報
を保持するマスクレジスタである。本実施例では3ビッ
トのマスクとし、信号msk0,msk1,msk2を出力することと
する。デバグ割込み検出回路6は命令フェッチやオペラ
ンドフェッチ等のデバグ割込み要因を検出する回路であ
り、本実施例では3ビットのデバグ割込み検出信号dbg
0,dbg1,dbg2を出力するとする。比較器7は仮想計算機
識別レジスタ2の出力する信号VMIDとデバグ計算機指定
レジスタ3の出力する信号DBGIDを比較し、一致すると
一致信号(VMID=DBGID)を出力する。デバグ割込み発
生信号INTは信号線10を介して外部へ出力される。デバ
グ割込み発生信号INTは、 INT=(▲▼+VM・(VMID=DBGID))・DBG・(msk
0・dbg0+mskl・dbgl+msk2・dbg2) である。
VM mode flag 1 is a tag that indicates that the device is operating as a virtual machine. When it is "0", it is a real machine mode.
When "1" indicates that the device is operating in virtual machine mode. The value of the VM mode flag 1 is output as the signal VM. The virtual machine identification register 2 is a register that holds a virtual machine identification number that distinguishes an operating virtual machine when the device is operating as a virtual machine (when the VM mode flag 1 is "1"). Output as VMID. The debug computer designation register 3 is a register for designating a virtual computer in which a debug interrupt occurs when the device is operating as a virtual computer, and is output as a signal DBGID. The debug status flag 4 is a flag indicating that the device is in a debug status. When it is "0", it is a normal status, and when it is "1"
Indicates that it is in a debug state. The value of the debug status flag 4 is output as the signal DBG. The debug mask register 5 is a mask register that holds mask information corresponding to each debug interrupt factor. In this embodiment, a 3-bit mask is used and signals msk0, msk1, msk2 are output. The debug interrupt detection circuit 6 is a circuit for detecting a debug interrupt factor such as an instruction fetch or an operand fetch, and in the present embodiment, a 3-bit debug interrupt detection signal dbg.
Suppose that 0, dbg1, dbg2 is output. The comparator 7 compares the signal VMID output from the virtual computer identification register 2 with the signal DBGID output from the debug computer specifying register 3, and outputs a coincidence signal (VMID = DBGID) when they match. The debug interrupt generation signal INT is output to the outside via the signal line 10. The debug interrupt generation signal INT is INT = (▲ ▼ + VM ・ (VMID = DBGID)) ・ DBG ・ (msk
0 ・ dbg0 + mskl ・ dbgl + msk2 ・ dbg2).

第2図は本発明の第2の実施例の要部を示すブロック
図である。
FIG. 2 is a block diagram showing the main part of the second embodiment of the present invention.

本情報処理装置は、デバグモードレジスタ11と例外検
出部12とメモリデコーダ13と命令カウントレジスタ14と
デバグ検出回路15とを有している。
The information processing apparatus has a debug mode register 11, an exception detection unit 12, a memory decoder 13, an instruction count register 14, and a debug detection circuit 15.

デバグモードレジスタ11は装置がデバグモードで動作
していることを示す2ビットのレジスタである。デバグ
モードレジスタ11の2ビットの値DM0,DM1によって次表
のようにデバグ検出条件が決定される。
The debug mode register 11 is a 2-bit register indicating that the device is operating in the debug mode. The 2-bit values DM0 and DM1 of the debug mode register 11 determine the debug detection condition as shown in the following table.

例外検出部12は、例外検出回路16と、例外検出回路16
が検出しコード化した例外番号を保持する例外番号レジ
スタ17から成る。メモリデコーダ13は例外番号レジスタ
17の出力する例外番号ENによってアドレスを与えられ、
例外番号ENに対応したソフトウエアに通知する割込みコ
ードpcを出力する。例外番号ENは信号線100を介して出
力され、割込みコードpcは信号線200を介して出力され
る。命令カウントレジスタ14はソフトウエア命令の実行
にともなって命令語長(ILC)を加算し、実行中のソフ
トウエア命令のアドレスを指すレジスタである。命令カ
ウントレジスタ14の保持する値ICは信号300を介して出
力される。デバグ検出回路15はレジスタ18,レジスタ19,
レジスタ20と、比較器21,比較器22と、論理ゲートから
成る。レジスタ18はメモリデコーダ13が出力する割込み
コードpcを保持するレジスタで、出力する信号は割込み
コードPCである。割込みコードpcと割込みコードPCは同
じ値である。レジスタ19は検出したい割込みコードを設
定するレジスタ、レジスタ20は検出したいICの値を設定
するレジスタである。レジスタ19,レジスタ20の保持す
る値をそれぞれDPC,DICとする。比較器21は割込みコー
ドPCとDPCの一致を検出する比較器、比較器22は命令カ
ウントレジスタ14の保持する値ICとDICの一致を検出す
る比較器である。デバグ検出回路15はデバグモードレジ
スタ11の指示するモードに従って、デバグ検出信号CHK
を信号線400を介して外部に出力する。
The exception detection unit 12 includes an exception detection circuit 16 and an exception detection circuit 16
It consists of an exception number register 17 that holds the exception number detected and coded by. Memory decoder 13 is an exception number register
Address is given by the exception number EN output from 17,
Outputs interrupt code pc to notify the software corresponding to exception number EN. The exception number EN is output via the signal line 100, and the interrupt code pc is output via the signal line 200. The instruction count register 14 is a register that adds the instruction word length (ILC) as the software instruction is executed and indicates the address of the software instruction being executed. The value IC held by the instruction count register 14 is output via the signal 300. The debug detection circuit 15 has registers 18, 19,
It is composed of a register 20, a comparator 21, a comparator 22, and a logic gate. The register 18 is a register that holds the interrupt code pc output by the memory decoder 13, and the output signal is the interrupt code PC. The interrupt code pc and the interrupt code PC have the same value. The register 19 is a register for setting an interrupt code to be detected, and the register 20 is a register for setting an IC value to be detected. The values held by the registers 19 and 20 are DPC and DIC, respectively. The comparator 21 is a comparator that detects a match between the interrupt codes PC and DPC, and the comparator 22 is a comparator that detects a match between the values IC and DIC held by the instruction count register 14. The debug detection circuit 15 determines the debug detection signal CHK according to the mode instructed by the debug mode register 11.
Is output to the outside via the signal line 400.

デバグ検出信号CHKは CHK=DM0・▲▼・(PC=DPC)+▲▼・DM1
・(IC=DIC)+▲▼・▲▼・(PC=DPC)
・(IC=DIC) である。
The debug detection signal CHK is CHK = DM0 ・ ▲ ▼ ・ (PC = DPC) + ▲ ▼ ・ DM1
・ (IC = DIC) + ▲ ▼ ・ ▲ ▼ ・ (PC = DPC)
・ (IC = DIC).

(PC=DPC)は比較器21でPC=DPCの一致を検出したこ
とを表す。
(PC = DPC) indicates that the comparator 21 has detected the coincidence of PC = DPC.

(IC=DIC)は比較器22でIC=DICの一致を検出したこ
とを表す。
(IC = DIC) indicates that the comparator 22 has detected the coincidence of IC = DIC.

第3図は本発明の情報処理装置の第3の実施例の要部
を示すブロック図である。
FIG. 3 is a block diagram showing a main part of a third embodiment of the information processing system of the invention.

本情報処理装置は、デバグモードフラグ31とVMモード
フラグ32とデータレジスタ33とセグメントベースレジス
タ34と比較器35と論理ゲートを有している。
The information processing apparatus has a debug mode flag 31, a VM mode flag 32, a data register 33, a segment base register 34, a comparator 35, and a logic gate.

デバグモードフラグ31は装置がデバグ状態で動作して
いることを示すフラグである。このフラグ31の値はDBG
で、“1"のときデバグ状態を表す。VMモードフラグ32は
装置が仮想計算機として動作していることを示すフラグ
である。このフラグ32の値はVMMで、“1"のときVMモー
ドを表す。データレジスタ33はセグメントベースレジス
タ34の上位ビットのデータと比較するためデータを保持
するためのレジスタである。このレジスタ33の保持する
値はDATAである。セグメンシベースレジスタ34はVMモニ
タとVMOSが使用するレジスタで、セグメントテーブルの
先頭の指す実アドレスがロードされるレジスタである。
VMモニタが動作している時(VMM=“0")はVMモニタ用
の値がロードされているし、VMOSが動作している時(VM
M=“1")はVMOS用の値がロードされている。セグメン
トベースレジスタ34へのロードはVMモニタのソフトウエ
ア命令の実行によって行なわれる。セグメントベースレ
ジスタ4の上位ビットの値をSBR(:0−n)とする(n
は任意)。比較器35はデータレジスタ33のDATAとセグメ
ントベースレジスタ34の上位ビットSBR(:0−n)を比
較し、一致を検出する比較器である。チェック回路は比
較器35と論理ゲートで構成されている。
The debug mode flag 31 is a flag indicating that the device is operating in the debug state. The value of this flag 31 is DBG
, Indicates a debug state when "1". The VM mode flag 32 is a flag indicating that the device is operating as a virtual machine. The value of this flag 32 is VMM, and when it is "1", it represents the VM mode. The data register 33 is a register for holding data for comparison with the upper bit data of the segment base register 34. The value held in this register 33 is DATA. The segment base register 34 is a register used by the VM monitor and the VMOS, and is a register to which the real address indicated by the head of the segment table is loaded.
When the VM monitor is operating (VMM = "0"), the value for VM monitor is loaded, and when the VMOS is operating (VM
M = “1”) is loaded with the value for VMOS. The segment base register 34 is loaded by executing a VM monitor software instruction. The value of the upper bits of the segment base register 4 is SBR (: 0-n) (n
Is optional). The comparator 35 is a comparator that compares DATA of the data register 33 with the upper bits SBR (: 0-n) of the segment base register 34 to detect a match. The check circuit is composed of a comparator 35 and a logic gate.

チェック回路が検出する信号CHKは CHK=DBG・VMM・(DATA=SBR(:0−n)) である。The signal CHK detected by the check circuit is CHK = DBG.VMM. (DATA = SBR (: 0-n)).

デバグモードフラグ31とデータレジスタ33は制御用マ
イクロプログラムまたは装置外部から設定することがで
き、VMモードフラグ32とセグメントベースレジスタ34は
ソフトウエア命令に対応するマイクロプログラムにより
設定される。
The debug mode flag 31 and the data register 33 can be set from a control microprogram or an external device, and the VM mode flag 32 and the segment base register 34 are set by a microprogram corresponding to a software instruction.

VMモニタが動作するとき(VMモードフラグ32=“0")
とVMOSが動作するとき(VMモードフラグ32=“1")はセ
グメントベースレジスタ34の上位(O−n)ビットは重
複しないようにVMモニタが管理する。VMモニタとVMOSの
セグメントテーブルを別空間に割付けて動作するために
この管理が必要となる。また、VMOSがセグメントベース
レジスタ34にデータをロードしようとした0時はこの動
作は例外としてVMモニタに通知され、VMモニタがVMOSの
ロード動作を代りに実行することによりVMモニタはVMモ
ニタのセグメントテーブルとVMOSのセグメントテーブル
を管理する。
When the VM monitor operates (VM mode flag 32 = "0")
And the VMOS operate (VM mode flag 32 = "1"), the VM monitor manages the upper (O-n) bits of the segment base register 34 so that they do not overlap. This management is required to operate by allocating the VM monitor and VMOS segment table to different spaces. When the VMOS tries to load data into the segment base register 34, this operation is notified as an exception to the VM monitor, and the VM monitor executes the VMOS load operation instead, so that the VM monitor can execute the segment of the VM monitor. Manage tables and VMOS segment tables.

VMモニタがセグメントベースレジスタ34に不正な値を
ロードしたままVMOSを起動するようなプログラムミスを
した時、VMOSは暴走してしまうことになる。VMOSの暴走
の結果システムの異常が発生し、システムダウンとなっ
た時、その原因を解析することはとても困難で多大の労
力と時間を要してしまう。
When the VM monitor makes a program error such as starting the VMOS while the segment base register 34 is loaded with an incorrect value, the VMOS will run out of control. When a system malfunction occurs as a result of a VMOS runaway, it is very difficult to analyze the cause and it takes a lot of labor and time.

[発明の効果] 以上説明したように本発明は、指定した仮想計算機で
のみデバグ割込みを発生させることにより、たとえ異な
った仮想計算機で同一のアドレスを使用していても、目
的の仮想計算機でのみデバグ割込みを発生させることが
できる効果があり、また、プログラム割込みの割込みコ
ードとプログラム割込みを発生したソフトウエア命令を
指す命令カウントレジスタの値を独立にまたは同時にチ
ェックすることにより、本来発生してはいけない不正な
例外を検出できる効果があり、またデバグ状態で装置が
仮想計算機として動作している時、セグメントベースレ
ジスタの上位ビットにVMモニタが使用するセグメントベ
ースレジスタの値がロードされていたらこれを検出する
ことにより、装置が仮想計算機として動作している時の
異常を検出できる効果がある。
[Effects of the Invention] As described above, according to the present invention, by generating a debug interrupt only in a designated virtual computer, even if different virtual computers use the same address, only the target virtual computer can use it. It has the effect of being able to generate a debug interrupt, and by checking the interrupt code of the program interrupt and the value of the instruction count register that points to the software instruction that generated the program interrupt independently or simultaneously, This has the effect of being able to detect illegal exceptions that are not allowed, and when the device is operating as a virtual machine in a debug state, if the value of the segment base register used by VM monitor is loaded in the upper bits of the segment base register, this should be Abnormality when the device operates as a virtual machine by detecting There is a detectable effect.

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

第1図,第2図,第3図はそれぞれ本発明の情報処理装
置の第1,第2,第3の実施例の要部を示すブロック図であ
る。 1……VMモードフラグ 2……仮想計算機識別レジスタ 3……デバグ計算機指定レジスタ 4……デバグ状態フラグ 5……デバグマスクレジスタ 6……デバグ割込み検出回路 7……比較器 10……信号線 11……デバグモードレジスタ 12……例外検出部 13……メモリデコーダ 14……命令カウントレジスタ 15……デバグ検出回路 16……例外検出回路 17……例外番号レジスタ 18,19,20……レジスタ 21,22……比較器 31……デバグモードフラグ 32……VMモードフラグ 33……データレジスタ 34……セグメントベースレジスタ 35……比較器 100,200,300,400,500……信号線
FIG. 1, FIG. 2 and FIG. 3 are block diagrams showing the essential parts of the first, second and third embodiments of the information processing apparatus of the present invention. 1 ... VM mode flag 2 ... Virtual computer identification register 3 ... Debug computer designation register 4 ... Debug status flag 5 ... Debug mask register 6 ... Debug interrupt detection circuit 7 ... Comparator 10 ... Signal line 11 …… Debug mode register 12 …… Exception detection unit 13 …… Memory decoder 14 …… Instruction count register 15 …… Debug detection circuit 16 …… Exception detection circuit 17 …… Exception number register 18, 19, 20 …… Register 21, 22 …… Comparator 31 …… Debug mode flag 32 …… VM mode flag 33 …… Data register 34 …… Segment base register 35 …… Comparator 100,200,300,400,500 …… Signal line

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】仮想計算機方式をとる情報処理装置におい
て、 装置が仮想計算機として作動していることを示すVMモー
ドフラグと、 装置がデバグ状態であることを示すデバグモードフラグ
と、 デバグ割込を検出するデバグ割込検出回路と、 動作中の仮想計算機の仮想計算機識別番号が格納される
仮想計算機識別レジスタと、 デバグ割込を発生させる仮想計算機を指定するデバグ計
算機指定レジスタと、 前記仮想計算機識別レジスタの格納値および前記デバグ
計算機指定レジスタの格納値の一致検出を行う比較手段
と、 前記VMモードフラグが仮想計算機として作動中であるこ
とを示し、かつ、前記デバグモードフラグがデバグ状態
であることを示し、かつ、前記デバグ割込検出回路がデ
バグ割込を検出し、かつ、前記比較回路が前記仮想計算
機識別レジスタの格納値と前記デバグ計算機指定レジス
タの格納値とが一致したことを検出したときに、デバグ
割込を発生させる制御回路とを含むことを特徴とする情
報処理装置。
1. An information processing apparatus employing a virtual computer system, wherein a VM mode flag indicating that the apparatus is operating as a virtual computer, a debug mode flag indicating that the apparatus is in a debug state, and a debug interrupt are set. A debug interrupt detection circuit to detect, a virtual computer identification register that stores the virtual computer identification number of the virtual computer that is operating, a debug computer designation register that specifies the virtual computer that causes the debug interrupt, and the virtual computer identification Comparing means for detecting a match between the stored value of the register and the stored value of the debug computer designated register, and showing that the VM mode flag is operating as a virtual computer, and that the debug mode flag is in the debug state. And the debug interrupt detection circuit detects a debug interrupt, and the comparison circuit performs the virtual calculation. When it is detected that the value stored in the identification register and the stored value of the debugging computer specified register match, the information processing apparatus characterized by comprising a control circuit for generating a debug interrupt.
【請求項2】前記VMモードフラグが仮想計算機として作
動していないことを示し、かつ、前記デバグ割込検出回
路がデバグ割込を検出したときにも、前記制御回路がデ
バグ割込を発生させることを特徴とする請求項1記載の
情報処理装置。
2. The control circuit causes a debug interrupt even when the VM mode flag indicates that it is not operating as a virtual computer, and when the debug interrupt detection circuit detects a debug interrupt. The information processing apparatus according to claim 1, wherein:
【請求項3】デバグ状態を有する情報処理装置におい
て、 装置のデバグ状態を示すデバグモードレジスタと、 プログラム割込みを検出し、例外番号を作成する例外検
出回路と、 前記例外番号によってアドレスを与えられ、例外番号に
対応するソフトウエアに通知する割込コードを出力する
メモリデコーダと、 プログラム割込みを発生したソフトウエア命令を示す命
令カウントレジスタと、 デバグ状態のときに割込みコードと命令カウントレジス
タの値を監視し、割込みコードと命令カウントレジスタ
の値が指定された値になったことを検出し、チェック信
号を発生するデバグ検出回路とを有することを特徴とす
る情報処理装置。
3. An information processing apparatus having a debug state, a debug mode register indicating a debug state of the apparatus, an exception detection circuit for detecting a program interrupt and creating an exception number, and an address given by the exception number, A memory decoder that outputs an interrupt code that notifies the software corresponding to the exception number, an instruction count register that indicates the software instruction that generated the program interrupt, and monitors the interrupt code and instruction count register values when in the debug state. The information processing apparatus further comprises a debug detection circuit that detects that the interrupt code and the value of the instruction count register have reached the specified values and that generates a check signal.
JP63297631A 1988-11-24 1988-11-24 Information processing device Expired - Lifetime JP2550686B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63297631A JP2550686B2 (en) 1988-11-24 1988-11-24 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63297631A JP2550686B2 (en) 1988-11-24 1988-11-24 Information processing device

Publications (2)

Publication Number Publication Date
JPH02143338A JPH02143338A (en) 1990-06-01
JP2550686B2 true JP2550686B2 (en) 1996-11-06

Family

ID=17849074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63297631A Expired - Lifetime JP2550686B2 (en) 1988-11-24 1988-11-24 Information processing device

Country Status (1)

Country Link
JP (1) JP2550686B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2571922B (en) * 2018-03-05 2020-03-25 Advanced Risc Mach Ltd External exception handling

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56129949A (en) * 1980-03-14 1981-10-12 Fujitsu Ltd Address comparison system
JPS57150043A (en) * 1981-03-11 1982-09-16 Hitachi Ltd Information processor
JPS6376028A (en) * 1986-09-19 1988-04-06 Fujitsu Ltd Method for controlling execution of instruction step in virtual computer system

Also Published As

Publication number Publication date
JPH02143338A (en) 1990-06-01

Similar Documents

Publication Publication Date Title
US5257358A (en) Method for counting the number of program instruction completed by a microprocessor
US6754856B2 (en) Memory access debug facility
US3803559A (en) Memory protection system
US6779132B2 (en) Preserving dump capability after a fault-on-fault or related type failure in a fault tolerant computer system
US3813531A (en) Diagnostic checking apparatus
EP0141744B1 (en) Method and apparatus for self-testing of floating point accelerator processors
EP1125199B1 (en) Method of debugging a program thread
JP2550686B2 (en) Information processing device
US5404499A (en) Semi-automatic program execution error detection
JPS60159951A (en) Tracing system in information processing device
US20020112202A1 (en) Fault vector pointer table
JP2679575B2 (en) I / O channel fault handling system
US5901300A (en) Control store address stop
JP3171615B2 (en) Data transfer retry control method
JP2786215B2 (en) Restart processing control method
JPH0465729A (en) Symbolic debugger
JPS59183443A (en) Debug device
JP2684966B2 (en) I / O processor debug device
JPH01184551A (en) System for debugging program
JPS60233743A (en) Fault detecting circuit of computer system
CN117892661A (en) Simulator comparison system based on RISC-V processor verification
JPS62144246A (en) Computer
JPH02150933A (en) Debug controller
JPH0432418B2 (en)
JPH0769846B2 (en) Error processing circuit verification device