JPS6220039A - Stop operation suppressing control system - Google Patents

Stop operation suppressing control system

Info

Publication number
JPS6220039A
JPS6220039A JP60159819A JP15981985A JPS6220039A JP S6220039 A JPS6220039 A JP S6220039A JP 60159819 A JP60159819 A JP 60159819A JP 15981985 A JP15981985 A JP 15981985A JP S6220039 A JPS6220039 A JP S6220039A
Authority
JP
Japan
Prior art keywords
stop
execution
program
instruction
signal
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
JP60159819A
Other languages
Japanese (ja)
Inventor
Takashi Sakai
坂井 高志
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 JP60159819A priority Critical patent/JPS6220039A/en
Publication of JPS6220039A publication Critical patent/JPS6220039A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make the operation easy to improve the test efficiency by making a stop command ineffective in a prescribed program execution state if the stop command for test is set. CONSTITUTION:A status bit 21 is one bit of a program status word and is turned on in the problem state and is turned off in the supervisor state. When the stop operation is designated from a testing equipment 1 by an instruction stop designating line which instructs a processor 29 to stop execution for every instruction or an address stop designating line 4 which instructs the processor 20 to stop execution for coincidence of access address, a stop designation latch 5 is set. A gate 22 operates AND among the signal of the stop designation latch 5, the signal on an instruction end line 7 which is outputted from an execution control part 6 and indicates the execution end of every instruction, and the status bit 21 and outputs the result to a signal line 23. A stop control part 10 is started by the turn-on signal on the signal line 23 to stop the advance of the execution control part 6.

Description

【発明の詳細な説明】 〔概 要〕 プログラムデバッグ等の試験のための処理装置の実行停
止動作を、特定の条件で自動的に抑止するための制御方
式である。いわゆるプロブレム状態で実行するプログラ
ムを試験するために、例えば1ステツプごとに停止する
ように停止指定を設定しである場合に、そのプログラム
から、例えばスーパバイザ状態で実行するプログラムへ
割り出すと、停止指定を無効にする制御機構を設け、ス
ーパバイザ状態のプログラムは連続実行できるようにし
て、デバッグ等の操作効率を向上する。
[Detailed Description of the Invention] [Summary] This is a control method for automatically suppressing the execution stop operation of a processing device for tests such as program debugging under specific conditions. In order to test a program that runs in a so-called problem state, for example, if you set a stop designation to stop at every step, if you index from that program to a program that runs in supervisor state, for example, the stop designation will be set. A control mechanism is provided to disable the program, and programs in the supervisor state can be executed continuously to improve operational efficiency such as debugging.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムにおける、プログラムデバッ
グ等の試験のための処理装置の実行停止動作を、特定の
条件で自動的に抑止するための制御方式に関する。
The present invention relates to a control method for automatically inhibiting the execution stop operation of a processing device for testing such as program debugging in a computer system under specific conditions.

計算機システムの処理装置には、主としてプログラムデ
バッグ等の援助手段として、公知のように、プログラム
を1命令実行するごとに、試験装置のキー等により指示
するまで停止させる機能、あるいは試験装置で設定した
記憶アドレスにアクセスしたとき実行を停止させる機能
等が設けられる。
The processing unit of a computer system has a function that stops the program every time it executes one instruction until instructed by a key on the test equipment, or a function set in the test equipment, which is mainly used as an aid for program debugging. A function is provided to stop execution when a storage address is accessed.

これらの停止機能は、このようにして停止した状態にお
いて、処理装置の各種レジスタの内容等を調査すること
により、プログラムの誤りを検出する手掛りをつかむ等
の方法で使用される。
These stop functions are used in such a way as to find clues for detecting program errors by investigating the contents of various registers of the processing device in the stopped state.

又、計算機システムで実行されるプログラムには、利用
者の作成したプログラム等で、一般にユーザプログラム
又はプロブレムプログラム等と呼ばれるプログラムと、
それらのプログラムの実行を管理し、及び特定の機能を
サービスするための管理プログラムとに大別され、プロ
グラム実行中には、両者間で随時制御の移行が行われる
が、前記の試験の対象となるのは、前者のプログラムで
ある場合が多い。
Furthermore, the programs executed by the computer system include programs created by users and generally called user programs or problem programs.
These programs are broadly divided into management programs that manage the execution of these programs and service specific functions, and control is transferred between the two programs at any time during program execution, but these programs are not subject to the above test. In most cases, it is the former program.

〔従来の技術と発明が解決しようとする問題点〕前記の
ような、いわゆるプロブレムプログラムと、いわゆる管
理プログラムとは、公知のように、システムのセキュリ
ティ維持等のために、両種のプログラムにおいて、異な
るプログラム実行状態を設定することにより、プロブレ
ムプログラムの実行には、特定種類の命令(例えば特権
命令という)の実行を許さない等の、ある制限を課する
方法が一般に採られている。
[Problems to be solved by the prior art and the invention] As is well known, the so-called problem program and the so-called management program as described above are designed to maintain system security. Generally, a method is adopted in which certain restrictions are imposed on the execution of a problem program by setting different program execution states, such as not allowing execution of specific types of instructions (for example, privileged instructions).

このようなプログラム実行状態は、例えば公知のプログ
ラム状態語の特定のビットによって表示され、該ビット
によってプロブレムプログラムのプログラム状態語には
プロブレム状態が表示され、管理プログラムのプログラ
ム状態語にはスーパバイザ状態が表示されるように設定
する。
Such program execution status is indicated, for example, by specific bits of a known program status word, such that the program status word of the problem program indicates the problem status, and the program status word of the management program indicates the supervisor status. Set it to be displayed.

不正なプログラムの実行により、プロブレム状態におい
て、特権命令がフェッチされると、その命令を実行する
ことなく、割り出しによって管理プログラムへ制御を渡
すようにする機構が設けられる。
When a privileged instruction is fetched in a problem state due to execution of an unauthorized program, a mechanism is provided that allows control to be handed over to the management program by determination without executing the instruction.

従って、プロブレムプログラムは、少なくとも特権命令
の実行を必要とするような処理については、管理プログ
ラムに処理サービスを依頼する必要があり、このように
してプロブレムプログラムと管理プログラムとの間では
、サービスの依頼による管理プログラムへの制御の移行
、該サービス処理の終了によるプロブレムプログラムへ
の制4ffllの復帰、というような制御の授受が起こ
る。
Therefore, the problem program needs to request processing services from the management program, at least for processing that requires the execution of privileged instructions. The transfer of control to the management program by the service processing, and the return of control to the problem program by the termination of the service processing, occur.

このような環境において、プロブレムプログラムのデバ
ッグ等のために、例えば1命令ごとの命令実行停止を指
定して、プロブレムプログラムの実行を開始すると、処
理装置のレジスタの内容の変化等を監視しながら、プロ
ブレムプログラムを1命令づつ歩進させ、試験の目的を
実行することができる。
In such an environment, in order to debug a problem program, for example, if you specify that instruction execution should be stopped for each instruction and start execution of the problem program, the program will start executing the problem program while monitoring changes in the contents of the registers of the processing device. The problem program can be stepped through one instruction at a time to accomplish the purpose of the test.

第2図は、停止指定機構の一構成例を示すブロック図で
ある。サービスプロセッサ等の試験装置1から、処理装
置2へ1命令ごとに実行を停止することを指定する命令
停止指定線3、又はアクセスアドレスの一致で停止する
ことを指定するアドレス停止指定線4によって停止動作
を指定すると、停止指定ラッチ5がセットされる。
FIG. 2 is a block diagram showing an example of the configuration of a stop designation mechanism. A test device 1 such as a service processor is sent to a processing device 2 by an instruction stop designation line 3 that specifies that execution should be stopped for each instruction, or an address stop designation line 4 that specifies that execution should be stopped when an access address matches. When an operation is designated, a stop designation latch 5 is set.

停止指定ラッチ5の出力と、実行制御部6から出力され
各命令ごとの実行終了を示す命令終了線7との信号がゲ
ート8で論理積がとられて、信号線9に出力される。
The output of the stop designation latch 5 and the instruction end line 7 outputted from the execution control unit 6 and indicating the end of execution of each instruction are ANDed by a gate 8 and outputted to a signal line 9.

この信号線9のオン信号は、停止制御部10を起動し、
停止制御部10は、試験装置lから指定する、図示しな
い停止条件を識別して、命令停止指定の場合か、アドレ
ス停止指定でアドレスが一致した場合に、試験装置1か
ら命令歩進の信号を受は取るまで、実行制御部6の進行
を停止する。
This ON signal of the signal line 9 activates the stop control section 10,
The stop control unit 10 identifies a stop condition (not shown) specified by the test device 1, and sends an instruction increment signal from the test device 1 when the instruction stop is specified or when the addresses match in the address stop specification. The progress of the execution control section 6 is stopped until the receipt is taken.

このような機構によって、実行停止動作を制御する場合
には、前記のようにして、制御が被試験プロブレムプロ
グラムから管理プログラムへ移っても、1命令ごとの歩
進指定は有効なので、プロブレムプログラムに復帰した
後も試験を継続する場合には、管理プログラム中も1命
令づつ手動で歩進させることが必要になる。
When controlling the execution stop operation using such a mechanism, even if control is transferred from the problem program under test to the management program as described above, the increment specification for each instruction is valid, so the problem program If the test is to be continued even after recovery, it is necessary to manually advance one instruction at a time during the management program.

あるいは、1命令ごとの歩進を避けるために、例えばプ
ロブレムプログラムの復帰先アドレスで停止させる指定
を設定した後、■命令ごとの停止指定を解除して、管理
プログラムを走行させ、管理プログラムが指定アドレス
で停止した後、再び1命令ごとの停止指定を設定し直さ
なければならず、何れにしても、操作が煩雑で、且つ時
間を要するという問題がある。
Alternatively, in order to avoid stepping for each instruction, for example, after setting a specification to stop at the return destination address of the problem program, ■ cancel the stop specification for each instruction, run the management program, and then After stopping at an address, it is necessary to reset the stop designation for each instruction, and in any case, there is a problem that the operation is complicated and takes time.

〔問題点を解決するための手段〕 第1図は、本発明の構成を示すブロック図である。[Means for solving problems] FIG. 1 is a block diagram showing the configuration of the present invention.

図において、■は試験装置、20は処理装置であり、2
1はプログラム実行状態を表示する状態ビット、22は
停止制御部10を起動する信号を出力するゲートである
In the figure, ■ is a test device, 20 is a processing device, and 2
Reference numeral 1 indicates a status bit that indicates the program execution state, and reference numeral 22 indicates a gate that outputs a signal to start the stop control section 10.

〔作 用〕[For production]

試験装置1からは、従来と同様にして停止指定ラッチ5
をセットする。
From the test device 1, the stop designation latch 5 is connected in the same manner as before.
Set.

状態ビット21は、例えばプログラム状態語の中の1ビ
ツトであって、プロブレム状態でオン、スーパバイザ状
態でオフとする。
The status bit 21 is, for example, one bit in a program status word, and is on in a problem status and off in a supervisor status.

ゲート22は従来と同様の停止指定ラッチ5と命令終了
線7の信号の他に、状態ビット21の信号を加えて論理
積をとり、信号線23に出力する。
The gate 22 adds the signal of the status bit 21 to the conventional signals of the stop designation latch 5 and the instruction end line 7, performs an AND operation, and outputs the result to the signal line 23.

信号線23のオン信号により、停止制御部10が起動さ
れたときは、従来と同様に停止制御が実行される。
When the stop control unit 10 is activated by the ON signal on the signal line 23, stop control is executed in the same way as in the conventional case.

以上の構成により、停止指定がされている場合にも、状
態ビット21がオフ、即ちスーパバイザ状態では信号線
23はオンにならないように抑止されるので、例えば1
命令ごとの歩進は、自動的にプロブレムプログラム中の
み有効となり、前記の問題は解消される。
With the above configuration, even when a stop is specified, the signal line 23 is prevented from turning on when the status bit 21 is off, that is, in the supervisor state, so for example
The instruction-by-instruction step is automatically enabled only during problem programming, and the above problem is solved.

〔実施例〕〔Example〕

第1図において、試験装置1、命令停止指定線3及びア
ドレス停止指定線4、又処理装置20内の実行制御部6
及び停止制御部10等は従来と同様に動作する。
In FIG. 1, a test device 1, an instruction stop designation line 3, an address stop designation line 4, and an execution control unit 6 in a processing device 20 are shown.
The stop control unit 10 and the like operate in the same manner as before.

状態ビット21は、例えばプログラム状態語の中の1ビ
ツトであって、プロブレム状態でオン、スーパバイザ状
態でオフとし、公知のようにプログラム状態語は実行プ
ログラムの切換ごとに、そのプログラムに対応する新し
いプログラム状態語が処理装置20にロードされるので
、状態ビット21は実行するプログラムがプロブレム状
態かスーパバイザ状態かを表示している。
The status bit 21 is, for example, one bit in the program status word, and is turned on in the problem status and off in the supervisor status. As the program status word is loaded into processor 20, status bit 21 indicates whether the program being executed is in problem or supervisor status.

試験装置lから命令停止又はアドレス停止を指定すると
、従来と同様にして停止指定ラッチ5がセットされる。
When instruction stop or address stop is specified from the test device 1, the stop designation latch 5 is set in the same manner as in the conventional case.

ゲート22は従来と同様の停止指定ラッチ5と命令終了
線7の信号の他に、状態ビット21の信号を加えて論理
積をとり信号線23に出力する。
The gate 22 adds the signal of the status bit 21 to the conventional signals of the stop designation latch 5 and the instruction end line 7, performs an AND operation, and outputs the result to the signal line 23.

信号線23のオン信号により、停止制御部10が起動さ
れたときは、従来と同様に停止制御が実行される。
When the stop control unit 10 is activated by the ON signal on the signal line 23, stop control is executed in the same way as in the conventional case.

以上の構成により、停止指定がされている場合にも、状
態ビット21がオフ、即ちスーパバイザ状態では信号線
23はオンにならないように抑止される。
With the above configuration, the signal line 23 is prevented from being turned on when the status bit 21 is off, that is, in the supervisor state, even when a stop is specified.

なお、ラッチ30を設けて、適当な方法でセントできる
ようにすれば、必要な場合には、ラッチ30をオンにす
ることにより、従来と同様にプログラム実行状態に関わ
らず停止指定を有効にする使用モードを設けることがで
きる。
Note that if a latch 30 is provided to allow cents to be sent in an appropriate manner, if necessary, by turning on the latch 30, the stop designation will be valid regardless of the program execution state, as in the past. A usage mode can be provided.

以上の説明においては、プロブレム状態とスーパバイザ
状態により、停止指定を抑止する制御を行うことにした
が、例えば公知の仮想計算機を実行する場合に、仮想計
算機の状態と、仮想計算機を管理するハイパバイザプロ
グラムが実行する状態とを識別して表示することにより
、ハイパバイザプログラム中で停止指定を抑止するよう
にすることは、前記の説明から容易に実現できる。
In the above explanation, it was decided to perform control to suppress the stop specification based on the problem state and the supervisor state. For example, when running a known virtual machine, the state of the virtual machine and the hypervisor program that manages the virtual machine From the above explanation, it is easy to suppress the stop designation in the hypervisor program by identifying and displaying the state in which the hypervisor program is executed.

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

以上の説明から明らかなように、本発明によれば、計算
機システムのプログラム実行状態等のための実行停止指
定が、例えばプロブレム状態で実行されるプログラムに
対してのみ有効となるように自動的に制御されるので、
操作を容易にして試験の効率を向上するという著しい工
業的効果がある。
As is clear from the above description, according to the present invention, an execution stop specification for the program execution state of a computer system is automatically made effective only for a program executed in a problem state, for example. Because it is controlled
It has a significant industrial effect of facilitating operation and improving test efficiency.

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

第1図は本発明の実施例構成ブロック図、第2図は従来
の一構成例ブロック図である。 図において、 1は試験装置、     2.20は処理装置、3は命
令停止指定線、 4はアドレス停止指定線、5は停止指
定ラッチ、 6は実行制御部、7は命令終了線、   
 8.22はゲート、9.23は信号線、   10は
停止制御部、21は状態ビット、    30はラッチ
本発明の実施例tI?iJ戊ブロック図第1図 従来の−十昔成1列フ゛ロック図 第2図
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an example of a conventional configuration. In the figure, 1 is a test device, 2.20 is a processing device, 3 is an instruction stop designation line, 4 is an address stop designation line, 5 is a stop designation latch, 6 is an execution control unit, 7 is an instruction end line,
8.22 is a gate, 9.23 is a signal line, 10 is a stop control section, 21 is a status bit, 30 is a latch Embodiment of the present invention tI? iJ block diagram (Fig. 1) Conventional 1-column block diagram (Fig. 2)

Claims (1)

【特許請求の範囲】 複数の異なるプログラム実行状態を有する処理装置に、
試験のための停止指定を設定した場合において、 所定の該プログラム実行状態(21)にある場合には、
該停止指定を無効化するように構成されていることを特
徴とする停止動作抑止制御方式。
[Claims] A processing device having a plurality of different program execution states,
When the stop designation for testing is set, if the program is in the specified execution state (21),
A stop operation inhibition control method, characterized in that it is configured to invalidate the stop designation.
JP60159819A 1985-07-19 1985-07-19 Stop operation suppressing control system Pending JPS6220039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60159819A JPS6220039A (en) 1985-07-19 1985-07-19 Stop operation suppressing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60159819A JPS6220039A (en) 1985-07-19 1985-07-19 Stop operation suppressing control system

Publications (1)

Publication Number Publication Date
JPS6220039A true JPS6220039A (en) 1987-01-28

Family

ID=15701940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60159819A Pending JPS6220039A (en) 1985-07-19 1985-07-19 Stop operation suppressing control system

Country Status (1)

Country Link
JP (1) JPS6220039A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01293447A (en) * 1988-05-20 1989-11-27 Fujitsu Ltd Control system for address coincidence interruption
JPH05170492A (en) * 1991-12-25 1993-07-09 Hino Jushi:Kk Ornamental glass structure having recessed part formed by surface inscribing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5617447A (en) * 1979-07-20 1981-02-19 Fujitsu Ltd Instruction-mode selection system
JPS5622147A (en) * 1979-07-31 1981-03-02 Fujitsu Ltd Debug control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5617447A (en) * 1979-07-20 1981-02-19 Fujitsu Ltd Instruction-mode selection system
JPS5622147A (en) * 1979-07-31 1981-03-02 Fujitsu Ltd Debug control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01293447A (en) * 1988-05-20 1989-11-27 Fujitsu Ltd Control system for address coincidence interruption
JPH05170492A (en) * 1991-12-25 1993-07-09 Hino Jushi:Kk Ornamental glass structure having recessed part formed by surface inscribing

Similar Documents

Publication Publication Date Title
US7818808B1 (en) Processor mode for limiting the operation of guest software running on a virtual machine supported by a virtual machine monitor
JP2650675B2 (en) Method and operating system for executing a program in a multi-mode microprocessor
EP0192232A2 (en) Data processing apparatus
US5210832A (en) Multiple domain emulation system with separate domain facilities which tests for emulated instruction exceptions before completion of operand fetch cycle
CA1280829C (en) Main storage access control system for virtual computing function system
US4785392A (en) Addressing multiple storage spaces
US10467410B2 (en) Apparatus and method for monitoring confidentiality and integrity of target system
JP2583525B2 (en) Data processing device
JPS6220039A (en) Stop operation suppressing control system
JP3585510B2 (en) Program execution management device and program execution management method
JPS6049352B2 (en) data processing equipment
JP2653412B2 (en) How to set breakpoints
JPS62114046A (en) Access control system
JPH09282196A (en) Program run control system for complex logic processor system
JPH09146789A (en) Emulator
JPH0438011B2 (en)
EP0264215A2 (en) Fast entry to emulation
JPH0465729A (en) Symbolic debugger
JPS5856051A (en) Address comparison system by access interruption
JPH0795288B2 (en) Microcomputer
JPH01140348A (en) Program tracer
JPH01293447A (en) Control system for address coincidence interruption
JPH0756765A (en) Debugging device for input/output processor
JPH0373041A (en) Information processor
JPS6382525A (en) Microprocessor with tracing function