JPH0363853A - Sac instruction control system - Google Patents

Sac instruction control system

Info

Publication number
JPH0363853A
JPH0363853A JP1199311A JP19931189A JPH0363853A JP H0363853 A JPH0363853 A JP H0363853A JP 1199311 A JP1199311 A JP 1199311A JP 19931189 A JP19931189 A JP 19931189A JP H0363853 A JPH0363853 A JP H0363853A
Authority
JP
Japan
Prior art keywords
space
register
sac
address
control
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
JP1199311A
Other languages
Japanese (ja)
Inventor
Gakuo Asakawa
浅川 岳夫
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 JP1199311A priority Critical patent/JPH0363853A/en
Publication of JPH0363853A publication Critical patent/JPH0363853A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To accelerate the processing speed of a SAC(Set Address space control) instruction by performing the space switching event program interruption processing of the SAC instruction without increasing the number of cycles of a CPU operation essentially. CONSTITUTION:The system is equipped with an operand address register(BOAR) 1 of B cycle, a register(ARCB) 2 which holds the content of an operand, an arithmetic unit 3, a latch(ARC 12) 4, and a program state word(PSW) 5, etc. And the fact that space switching occurs between a home space mode and another space mode during performing the processing of the SAC instruction is detected with hardware, and it is latched with the latch 4. A corresponding control register 13 is selected corresponding to the content of the latch 4, and the content is held with a universal register, and when program interruption due to a space switching event occurs, the content of the universal register is stored at the prescribed position of a main storage as an address conversion exceptional identifier. In such a way, the SAC instruction is processed at high speed.

Description

【発明の詳細な説明】 [概 要〕 PSWの特定ビットを書き替えることにより複数のアド
レス空間へのアクセスを可能とした仮想記憶方式の情報
処理装置に関し、 SAC命令の処理の高速化を目的とし1.S AC命令
の処理中に、ホーム空間モードと他の空間モードとの間
の切り替えの発生を検出して、その結果を保持する回路
と、上記検出結果によって、オール“0″のデータある
いは制御レジスタAの内容の内のいずれか一方を選択し
て汎用レジスタXへ、一方、制御レジスタへの内容ある
いは制御レジスタBの内容の内のいずれか一方を選択し
て汎用レジスタyに格納する回路と、空間切り替え事象
によるプログラム割り込みが起きた場合に、アドレス変
換例外の識別子として前記汎用レジスタx、yの内容を
、主記憶上の所定の領域に格納する手段とを設けること
により構成する。
[Detailed Description of the Invention] [Summary] This invention relates to a virtual memory type information processing device that enables access to multiple address spaces by rewriting specific bits of the PSW, with the aim of speeding up the processing of SAC instructions. 1. A circuit that detects the occurrence of switching between the home space mode and another space mode during processing of the S AC instruction and holds the result, and a circuit that stores all "0" data or a control register based on the above detection result. a circuit that selects one of the contents of A and stores it in general-purpose register The present invention is constructed by providing means for storing the contents of the general-purpose registers x and y in a predetermined area on the main memory as an identifier of an address translation exception when a program interrupt occurs due to a space switching event.

[産業上の利用分野コ 本発明は、プログラム状11語(PSW)の中の特定の
ビットによって指定される複数のアドレス空間からなる
仮想記憶装置を有する情報処理装置における命令の制御
方式に関し、特に、上記PSW内の特定ビットを書き替
えるためのC(Set Address 5pace 
control )命令についての制御方式に係る。
[Industrial Application Field] The present invention relates to an instruction control method in an information processing device having a virtual storage device consisting of a plurality of address spaces specified by specific bits in a program state word (PSW), and in particular, , C (Set Address 5pace) for rewriting specific bits in the above PSW.
(control) relates to a control method for commands.

[従来の技術] ゛近年の情報処理装置に対する要求として、処理するデ
ータ量の増大がある。特にデータペースシステムにおい
てこれが著しい。この要求に伴い、従来の仮想記憶装置
におけるアドレス空間の限界を越えて、複数のアドレス
空間のデータを直接ニー・ザープログラムからアクセス
することを可能にするアーキテクチャ−の実現が要望さ
れ、このような製品が出現した。
[Prior Art] ``Recent demands on information processing devices include an increase in the amount of data to be processed. This is especially noticeable in data pace systems. In line with this demand, there is a desire to realize an architecture that allows a user program to directly access data in multiple address spaces, exceeding the address space limitations of conventional virtual storage devices. The product has appeared.

すなわち、従来の仮想記憶を有する情報処理装置におい
ては、コントロールレジスタによって指定される単一の
アドレス空間内のデータをアクセスする事のみが許され
ていた。従って、複数のアドレス空間内のデータを参照
するためにはコントロールレジスタの内容を入れ替える
必要があり、オペレーティングシステムの管理下におか
れていた。このような制御の下では、ユーザープログラ
ムが直接、複数のアドレス空間にまたがってデータの処
理をすることは許されなかった。
That is, in a conventional information processing device having virtual memory, only accessing data within a single address space specified by a control register is permitted. Therefore, in order to refer to data in multiple address spaces, it is necessary to change the contents of the control register, which is under the control of the operating system. Under such control, user programs were not allowed to directly process data across multiple address spaces.

しかし、仮想記憶空間の拡大の要求が大となりユーザー
プログラムが与えられたアドレス空間の範囲を越えてペ
ースレジスタ番号の異なる複数のアドレス空間へのアク
セスをすることを許容するような制御の必要を生ずるに
到った。
However, as the demand for expansion of virtual memory space increases, it becomes necessary to provide control that allows user programs to access multiple address spaces with different pace register numbers beyond the range of the given address space. reached.

このための機構としては、次のような方法が考えられる
As a mechanism for this purpose, the following method can be considered.

すなわち、ユーザーの使う複数のアドレス空間に対し、
それぞれセグメントテーブルを用意し、そのテーブルに
対するポインタであるセグメントテーブルオリジン(S
T○〉を複数個持ち、そのいずれを使うかをそのアクセ
スで使われるペースレジスタ番号によって索引されるア
クセスレジスタの内容によって決定する。その決定の方
法としては、アクセスレジスタの内容により実記憶空間
内のアクセスリストが索引され、該ペースレジスタ番号
を使用した仮想記憶空間へのアクセスがどのST○を利
用するかが指定される。
In other words, for multiple address spaces used by users,
A segment table is prepared for each, and a segment table origin (S
It has a plurality of T○>, and which one to use is determined by the contents of the access register indexed by the pace register number used in the access. The method for determining this is that an access list in the real storage space is indexed based on the contents of the access register, and which ST○ is used to access the virtual storage space using the pace register number.

ペースレジスタ番号指定部分は命令語の限られたビット
位置にあり、その内容により選択されたレジスタの内容
が有効アドレス生成のための加算回路の入力となる。
The pace register number designation part is located at a limited bit position of the instruction word, and the contents of the register selected according to the contents thereof are input to an adder circuit for generating an effective address.

上述のようなアクセスレジスタを用いたアクセスレジス
タ変換により複数のアドレス空間のデータを処理する方
式においては、アクセスレジスタ変換が行なわれるアク
セスレジスタモードと、制御プログラムが制御ブロック
をおくホーム空間モードとがおかれ、これらモードの切
り替えはSAC命令によりプログラム状11語(PSW
)の特定ビットを書き替えることによって制御される。
In the method described above in which data in multiple address spaces is processed by access register conversion using access registers, there are two types: access register mode in which access register conversion is performed and home space mode in which the control program places control blocks. These modes can be switched using the program-like 11 words (PSW) using the SAC command.
) is controlled by rewriting specific bits.

CPUが仮想記憶空間にアクセスするとき、そのモード
はプログラム状態1t(PSW)の特定ビット (ここ
では16ビツトと17ビツトとする)の値によって設定
される(以下16ビツトと17ビツトを16:17と記
載する〉。16:17が“00.′のときは1次アドレ
ス空間モードとよばれ、命令およびオペランドの両方が
この空間におかれる。
When the CPU accesses the virtual storage space, its mode is set by the value of specific bits (16 bits and 17 bits here) of the program state 1t (PSW) (hereinafter 16 bits and 17 bits are 16:17). When 16:17 is "00.'", it is called the primary address space mode, and both instructions and operands are placed in this space.

STOは特定の制御レジスタ(ここではCRI)にある
The STO resides in a specific control register (here CRI).

16:17が“10”のときは2次アドレス空間モード
とよばれ、オペランドのみがこの空間におかれる。ST
OはCRTにおかれる。この空間には特殊な命令(MV
CP、MVC3)l、:よってのみアクセスできる。
When 16:17 is "10", it is called secondary address space mode, and only operands are placed in this space. ST
O is placed on a CRT. This space contains special commands (MV
CP,MVC3)l,: can only be accessed.

i6:17が“01″のときはアクセスレジスタモード
とよばれ、オペランドのみがこの空間におかれる。各々
の空間のSTOは対応するアクセスレジスタにより指定
される。この空間には一般命令によりアクセスできる。
When i6:17 is "01", it is called access register mode, and only operands are placed in this space. The STO of each space is specified by a corresponding access register. This space can be accessed by general commands.

16:17が“11″のときはホームアドレス空間とよ
ばれ、命令およびオペランドの両方がこの空間におかれ
る。STOは他の特定の制御レジスタ(ここではCR1
3)におかれる。
When 16:17 is "11", it is called a home address space, and both instructions and operands are placed in this space. STO is another specific control register (here CR1
3) Placed in the room.

また、一つのタスクのなかで、1次アドレス空間を切り
替える命令であるpc、p’rの実行によりCRIの変
更が行なわれる。すなわち、1次アドレス空間が切り替
わる時でも、ホーム空間においてそれらに共通の制御を
プログラムは行なうことができる。
Furthermore, within one task, the CRI is changed by executing pc and p'r, which are instructions for switching the primary address space. That is, even when the primary address space is switched, the program can perform common control in the home space.

SAC命令にはホーム空間モードへの、またはホーム空
間モードからの空間切替え事象を記録するために空間切
替え事象プログラム割込みを引き起こす機能が追加され
る。
Added to the SAC instruction is the ability to cause a space switch event program interrupt to record a space switch event to or from home space mode.

上記空間切替え事象は空間切替えを伴うPIIOGRA
M CALL、空間切替えを伴うPR口GRAM TR
ANSFERの完了時に次のいずれかが真であれば認識
される。
The above space switching event is a PIIOGRA with space switching.
M CALL, PR port GRAM TR with space switching
Upon completion of ANSFER, it is recognized if any of the following is true:

(1)その操作の前で、制御レジスター(CRI)のビ
ット0にある1次空間切替え事象制御ビットが“1”で
ある。
(1) Prior to the operation, the primary space switch event control bit in bit 0 of the control register (CRI) is "1".

(2)  その操作の後で、空間切替え事象制御ビット
が“1”である。
(2) After the operation, the space switch event control bit is “1”.

(3)PER事象が報告されている。(3) A PER event has been reported.

空間切替え事象はSB↑八〇へR1!SS 5PACB
 C0NTR0Lの完了時に、CPUがホーム空間モー
ドか、ら他のモードへか、他のモードからホーム空間モ
ードへと切替わった時に次のいずれかが真であれば認識
される。
Space switching event is R1 to SB↑80! SS5PACB
Upon completion of C0NTR0L, it is recognized if any of the following is true when the CPU switches from home space mode to another mode or from another mode to home space mode.

(1)制御レジスタ(CRI)のビット0にある1次空
間切替え事象制御ビットが“1”である。
(1) The primary space switching event control bit in bit 0 of the control register (CRI) is "1".

(2) 制御レジスタ(CR13)のビット0にあるホ
ーム空間切替え事象制御ビットが“1″である。
(2) The home space switching event control bit in bit 0 of the control register (CR13) is "1".

(3)PER事象が報告されている。(3) A PER event has been reported.

PC,PRおよびホーム空間モードへと切替わったSA
C命令の実行時には、実行前の制御レジスタ(ここでは
CR4)にある旧PASN(PRIMARY AD口R
BSS 5PACB N11M8[!R)が主記憶の特
定番地(ここでは92番地(HEX))に、1次空間切
替え事象制御ビットが主記憶の特定番地(ここでは90
番地(HEX))に格納される。
SA switched to PC, PR and home space mode
When executing a C instruction, the old PASN (PRIMARY AD port R) in the control register (CR4 in this case) before execution is
BSS 5PACB N11M8[! R) is set to a specific address in the main memory (here, address 92 (HEX)), and the primary space switching event control bit is set to a specific address in the main memory (here, address 90).
address (HEX)).

これにより空間切替え事象以前のアドレス空間を特定す
ることが可能になる。
This makes it possible to specify the address space before the space switching event.

ホーム空間モードから切替わったSAC命令の実行時に
は、ゼロが92番地(HE X)に、ホーム空間切替え
制御ビットが90番地(HEX)に格納される。
When the SAC instruction is executed after switching from the home space mode, zero is stored at address 92 (HEX) and the home space switching control bit is stored at address 90 (HEX).

空間切替え事象を利用して、制御プログラムは、プログ
ラムが特定のアドレス空間に入ったり、そこから出るた
びに、制御を受は取ることができる。
Using space switch events, a control program can receive and take control each time the program enters or exits a particular address space.

空間切替え事象は、プログラムに許可検査機能を設けた
り、追加の追跡情報を記録したり、あるいはPERや追
跡に対してCPtJを割り込み可能にしたり、割り込み
禁止にするうえで有効である。
Spatial switch events are useful for providing permission checking functionality in programs, for recording additional tracking information, or for enabling or disabling CPtJs for PER and tracking.

[発明が解決しようとする!1111]SAC命令によ
る空間切替え事象プログラム割込みが生じた場合、変換
例外識別子としてホーム空間モードへの切替え時にはC
R4の内容とCRIのビット0が、ホーム空間モードか
らの切替え時にはゼロとCR13のビット0とが所定の
主記憶領域上に格納される。従来の処理方式では、この
ような処理をプログラム割込みを処理するマイクロプロ
グラムルーチンの中で空間切替え後のモードを識別して
、変換例外識別子を選択し格納していたので余分な処理
が増加し、ひいては性能の低下を招くと言う結果を生じ
ていた。
[Invention tries to solve! 1111] When a space switching event program interrupt occurs due to a SAC instruction, C is used as a conversion exception identifier when switching to home space mode.
The contents of R4 and bit 0 of CRI are stored in a predetermined main storage area, and when switching from the home space mode, zero and bit 0 of CR13 are stored in a predetermined main storage area. In the conventional processing method, such processing was performed by identifying the mode after space switching in the microprogram routine that processes program interrupts, selecting the conversion exception identifier, and storing it, which resulted in an increase in unnecessary processing. This resulted in a decrease in performance.

すなわち、SAC命令に新たに空間切替え事象プログラ
ム割込みを起こさせる条件は、PC。
That is, the condition that causes the SAC instruction to cause a new space switching event program interrupt is the PC.

PT命令とほぼ同様であるので既存のマイクロプログラ
ムコードを使用することができる。
Since it is almost the same as the PT instruction, existing microprogram code can be used.

従って、従来技術でSAC命令における新機能を実現す
る場合、プログラム割込みルーチン内の変更が主となる
のであるが、これがかなりの処理量となっていた。
Therefore, in the conventional technology, when implementing a new function in the SAC instruction, changes are mainly made in the program interrupt routine, which requires a considerable amount of processing.

第3図はマイクロプログラム制御でSAC命令の空間切
替え事象プログラム割込みを実現した場合のフローチャ
ートである。
FIG. 3 is a flowchart when the space switching event program interrupt of the SAC instruction is realized under microprogram control.

同図に示すように割り込んだのがSAC命令かどうか、
ホーム空間かどうかの二つの分岐判断のためにオーバヘ
ッドが生じる。図中SAC命令でない時の分岐のフロー
はPC,PT命令の場合の処理にあたり、PC,PT命
令の実行中に90〜92番地に格納すべき内容がすでに
ワークレジスタ0.1に保持されている。
As shown in the figure, check whether the interrupt was a SAC instruction or not.
Overhead occurs due to the two-branch judgment of whether or not it is a home space. In the figure, the branch flow when the instruction is not an SAC instruction corresponds to the processing for the PC and PT instructions, and the contents to be stored at addresses 90 to 92 are already held in work register 0.1 during the execution of the PC and PT instructions. .

第4図はマイクロプログラム制御で、SAC命令の空間
切替え事象プログラム割込みを実現した場合のタイムチ
ャートである。同図に示すように分岐のためのフローが
4フロー必要となる。
FIG. 4 is a time chart when the space switching event program interrupt of the SAC instruction is realized under microprogram control. As shown in the figure, four flows are required for branching.

SAC命令は本来アドレス空間を切替えるためのPSW
の特定ビット(ここでは16ビツトと17ビツト〉を書
き替えるために設けられた命令である。
The SAC instruction is originally a PSW for switching address spaces.
This is an instruction provided to rewrite specific bits (in this case, 16 bits and 17 bits).

すなわち、PSWの内容の変更のためには、通常ロード
PSW命令が用いられるが、これは処理時間を多く要す
るので、アドレス空間モードの切替えを迅速に行なうた
め、特にPSW全体を入れ替えることなく該当ビットの
みを書き替えるために設定されたものである。
In other words, a load PSW instruction is normally used to change the contents of a PSW, but since this requires a lot of processing time, in order to quickly switch the address space mode, it is necessary to load the corresponding bit without replacing the entire PSW. It is set to rewrite only the

ところが、前述のように、本来目的とす、る動作以外の
アドレス空間切替えの事象の履歴(ロギング〉情報を残
すための手段として、特定の制御レジスタの内容を主記
憶の特定番地に格納する処理のために多大の時間を要し
ていると言う問題点があった。
However, as mentioned above, the process of storing the contents of a specific control register at a specific address in main memory is used as a means to record the history (logging) of address space switching events other than the intended operation. The problem was that it took a lot of time.

本発明は、このような従来の問題点に鑑み、SAC命令
の空間切替え事象プログラム割込み処理を、CPU動作
のサイクル数を増加せしめることなく実現し得る手段を
提供することを目的としている。
SUMMARY OF THE INVENTION In view of these conventional problems, it is an object of the present invention to provide a means for realizing SAC instruction space switching event program interrupt processing without increasing the number of CPU operation cycles.

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

すなわち、本発明は、プログラム状tIAF)(PSW
)の中の特定の2ビツトの情報によってアドレス空間モ
ードを切り替えることにより、ホーム空間を含む複数の
アドレス空間にアクセスすることを可能とする如く構成
された仮想記憶方式の情報処理装置における前記プログ
ラム状態語の中の特定の2ビツトの情報を書き替えるた
めのSAC命令の制御方式であって、SAC命令の処理
中に、ホーム空間モードから他の空間モードへの切り替
えが起きたか、あるいは、他の空間モードからホーム空
間モードへの切す替えが起きたかを検出して、その結果
を保持する回路と、上記検出結果によって、オール“0
”のデータあるいは制御レジスタAの内容の内のいずれ
か一方を選択して汎用レジスタXに格納する回路と、前
記検出結果によって、制御レジスタAの内容あるいは制
御レジスタBの内容の内のいずれか一方を選択して汎用
レジスタyに格納する回路と、空間切り替え事象による
プログラム割り込みが起きた場合に、アドレス変換例外
の識別子として前記汎用レジスタXおよび汎用レジスタ
yの内容を、主記憶上の所定の領域に格納する手段とを
具備するSAC命令制御方式である。
That is, the present invention provides a programmable tIAF) (PSW
) The program state in a virtual memory information processing device configured to enable access to a plurality of address spaces including a home space by switching the address space mode based on specific 2-bit information in ) This is a control method for SAC commands to rewrite specific 2-bit information in a word. A circuit that detects whether switching from space mode to home space mode has occurred and holds the result, and the above detection result, all “0”
” or the contents of control register A and stores it in general-purpose register When a program interrupt occurs due to a space switching event, the contents of general-purpose register This is a SAC command control method comprising means for storing information in the SAC command.

[作 用コ 本発明においては、上記手段によって、SAC命令の処
理中に、ホーム空間モードと他の空間モードとの間で空
間切り替えが発生したことをハードウェアで検出してラ
ッチに保持し、該ラッチの内容に応じて該当する制御レ
ジスタを選択して、その内容を汎用レジスタに保持し、
空間切替え事象によるプログラム割込みが起きたときア
ドレス変換例外識別子として上記汎用レジスタの内容を
主記憶の所定の位置に格納する。
[Function] In the present invention, the above means detects by hardware the occurrence of space switching between the home space mode and another space mode during processing of the SAC command, and holds it in a latch; Selecting a corresponding control register according to the contents of the latch and retaining the contents in a general-purpose register;
When a program interrupt occurs due to a space switching event, the contents of the general-purpose register are stored at a predetermined location in the main memory as an address translation exception identifier.

これらは総てハードウェアの動作によって行なわれるの
で、高速な処理が期待できる。
Since all of these are performed by hardware operations, high-speed processing can be expected.

[実施例] 第1図は本発明の一実施例の構成を示す図であって、1
はBサイクルのオペランドアドレスレジスタ(BOAR
) 、2はオペランドの内容を保持するレジスタ(AR
CB) 、3は演算ユニット、4はラッチ(ARC12
) 、5はPSW。
[Embodiment] FIG. 1 is a diagram showing the configuration of an embodiment of the present invention, in which 1
is the operand address register (BOAR) of the B cycle.
), 2 is a register (AR
CB), 3 is the arithmetic unit, 4 is the latch (ARC12
), 5 is PSW.

6〜10はアンド回路、11はナンド回路、12はラッ
チ、13は制御レジスタを表わしている。
6 to 10 are AND circuits, 11 is a NAND circuit, 12 is a latch, and 13 is a control register.

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

以下、上記両図を用いて実施例の動作を説明する。Hereinafter, the operation of the embodiment will be explained using the above two figures.

本発明におけるSAC命令は、第2図のタイムチャート
に示すように動作する。
The SAC instruction in the present invention operates as shown in the time chart of FIG.

最初のフロー(a)でBサイクルのオペランドアドレス
レジスタ1  (BOAR)のビット22゜ビット23
がプログラム状!!!!!(PSW)5のアドレススペ
ースコントロールビットに挿入サレる。また、ダミーと
して設けた(b)に示すフローのEサイクルのタイミン
グで現PSWとオペランドを保持するレジスタ2  (
ARCB)の内容とからラッチ12(SS−TO−HO
ME−LCH>をセットする。
Bit 22゜bit 23 of operand address register 1 (BOAR) of B cycle in the first flow (a)
is like a program! ! ! ! ! It is inserted into the address space control bit of (PSW) 5. In addition, a register 2 (
ARCB) and the contents of latch 12 (SS-TO-HO
ME-LCH> is set.

以下(C)、(d)のフローによって、変換例外識別子
として選択された内容がワークレジスタ0.1にセット
される(最初のフロー、(a)でPSWがセットされた
時から命令の再取り出しが行なわれるので、以降のフロ
ーはSAC命令の処理速度に影響を与えない。)。
Through the flows in (C) and (d) below, the content selected as the conversion exception identifier is set in the work register 0.1 (in the first flow, from the time the PSW is set in (a), the instruction is re-fetched. is performed, so the subsequent flow does not affect the processing speed of the SAC instruction.)

前記ラッチ12 (SS−To−HOME−LCH)の
セットについて、第1図を参照して更に説明すれば、B
サイクルのオペランドアドレスレジスタ1  (BOA
R)のビット22.ビット23をPSWにセットする流
れのEサイクルで、ホーム空間モード(pswのビット
16.ビット17が共に“l”〉への切替えが検出され
るとラッチ12 (S S−To−HOME−LCH,
) カセ2トされる。
The setting of the latch 12 (SS-To-HOME-LCH) will be further explained with reference to FIG.
Cycle operand address register 1 (BOA
bit 22 of R). In the E cycle of setting bit 23 in PSW, when switching to the home space mode (both bits 16 and 17 of psw are "l") is detected, latch 12 (SS-To-HOME-LCH,
) Two cassettes are placed.

ラッチ12の出力はマイクロ命令による信号E−μ−T
AGによって保持される。
The output of latch 12 is the signal E-μ-T according to the microinstruction.
Retained by AG.

そして、ラッチ12の出力とマイクロ命令による信号B
−μ−TAGによって制御レジスタ13の中から所望す
る制御レジスタを選択する信号をアンド回路9.アンド
回路10を用いて生成し、これによって選択された制御
レジスタの内容を演算ユニットに送る。
Then, the output of the latch 12 and the signal B based on the microinstruction
A signal for selecting a desired control register from among the control registers 13 by -μ-TAG is applied to the AND circuit 9. It is generated using the AND circuit 10, and the contents of the control register selected thereby are sent to the arithmetic unit.

上記のように本発明によれば、従来必要であった「割り
込んだのはSAC命令か否か」および「ホーム空間モー
ドであるか否か」の判断と、これに伴うマイクロプログ
ラムによる処理が必要なくなり、ハードウェアによる動
作のみとなるので、SAC命令を高速度で実行すること
が可能となる。
As described above, according to the present invention, it is necessary to judge "whether or not the interrupt was an SAC instruction" and "whether or not it is the home space mode", which was previously necessary, and the corresponding processing by the microprogram. Since the operation is performed only by hardware, it becomes possible to execute SAC instructions at high speed.

[発明の効果] 以上説明したように本発明によれば、SAC命令の空間
切替え事象プログラム割込み処理をCPU動作の実質的
サイクル数を増加せしめることな(行なうことができる
ので、SAC命令の処理速度を高速化し得る利点がある
[Effects of the Invention] As explained above, according to the present invention, the SAC instruction space switching event program interrupt processing can be performed without increasing the actual number of cycles of the CPU operation. This has the advantage of speeding up the process.

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

第1図は本発明の一実施例の構成を示す図、第2図は実
施例の動作を示すタイムチャート、第3図はSAC命令
の空間切替え事象プログラム割込みをマイクロプログラ
ム制御によって行なう場合の流れ図、第4図はSAC命
令の空間切替え事象プログラム割込みをマイクロプログ
ラム制御によって行なう場合のタイムチャートである。 1・・・・・・Bサイクルのオペランドアドレスレジス
タ(BOAR) 、2・・・・・・オペランドの内容を
保持するレジスタ(ARCB) 、3・・・・・・演算
ユニット、4.12・・・・・・ラッチ、5・・・・・
・PSW、6〜10・・・・・・アンド回路、11・・
・・・・ナンド回路、13・・・・・・制御レジスタ
Fig. 1 is a diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a time chart showing the operation of the embodiment, and Fig. 3 is a flowchart when the space switching event program interrupt of the SAC instruction is performed by microprogram control. , FIG. 4 is a time chart when the space switching event program interrupt of the SAC command is performed under microprogram control. 1...B cycle operand address register (BOAR), 2...Register for holding operand contents (ARCB), 3...Arithmetic unit, 4.12... ...Latch, 5...
・PSW, 6 to 10...AND circuit, 11...
... NAND circuit, 13 ... Control register

Claims (1)

【特許請求の範囲】 プログラム状態語(PSW)の中の特定のビットの情報
によってアドレス空間モードを切り替えることにより、
ホーム空間を含む複数のアドレス空間にアクセスするこ
とを可能とする如く構成された仮想記憶方式の情報処理
装置における、前記プログラム状態語の中の特定のビッ
トの情報を書き替えるためのSAC命令の制御方式であ
って、 SAC命令の処理中に、ホーム空間モードから他の空間
モードへの切り替えが起きたか、あるいは、他の空間モ
ードからホーム空間モードへの切り替えが起きたかを検
出して、その結果を保持する回路と、 上記検出結果によって、オール“0”のデータあるいは
制御レジスタAの内容の内のいずれか一方を選択して、
汎用レジスタxに格納する回路と、 前記検出結果によって、制御レジスタAの内容あるいは
制御レジスタBの内容の内のいずれか一方を選択して、
汎用レジスタyに格納する回路と、 空間切り替え事象によるプログラム割り込みが起きた場
合に、アドレス変換例外の識別子として前記汎用レジス
タxおよび汎用レジスタyの内容を、主記憶上の所定の
領域に格納する手段とを具備することを特徴とするSA
C命令制御方式。
[Claims] By switching the address space mode according to information of specific bits in the program state word (PSW),
Control of SAC commands for rewriting specific bit information in the program state word in a virtual memory type information processing device configured to allow access to multiple address spaces including a home space. The method detects whether a switch from a home space mode to another space mode or from another space mode to a home space mode occurs during processing of a SAC command, and detects the result. a circuit that holds , and selects either all “0” data or the contents of control register A according to the above detection result,
a circuit for storing in general-purpose register x, and selecting either the contents of control register A or the contents of control register B according to the detection result,
a circuit for storing in general-purpose register y; and means for storing the contents of general-purpose register x and general-purpose register y in a predetermined area on main memory as an identifier of an address translation exception when a program interrupt occurs due to a space switching event. SA characterized by comprising
C command control method.
JP1199311A 1989-08-02 1989-08-02 Sac instruction control system Pending JPH0363853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1199311A JPH0363853A (en) 1989-08-02 1989-08-02 Sac instruction control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1199311A JPH0363853A (en) 1989-08-02 1989-08-02 Sac instruction control system

Publications (1)

Publication Number Publication Date
JPH0363853A true JPH0363853A (en) 1991-03-19

Family

ID=16405694

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1199311A Pending JPH0363853A (en) 1989-08-02 1989-08-02 Sac instruction control system

Country Status (1)

Country Link
JP (1) JPH0363853A (en)

Similar Documents

Publication Publication Date Title
US5363502A (en) Hot stand-by method and computer system for implementing hot stand-by method
US5003468A (en) Guest machine execution control system for virutal machine system
GB2391356A (en) Micro-processor context switching where the CPU state data is checked to see if valid for the new process
JPH0363853A (en) Sac instruction control system
JPH0668725B2 (en) Device for responding to interrupt condition in data processing system and method for responding to asynchronous interrupt condition
JPS5856051A (en) Address comparison system by access interruption
JPH03113646A (en) Trace circuit
CN100367213C (en) System and method with automatically backing up and recovering data in register
JPS6270947A (en) Control system for debug interruption
JPH06103110A (en) Breakpoint setting system
JP2581298B2 (en) Memory access right information supply mechanism
JPS6220034A (en) Program status word switching control system
JP3120841B2 (en) In-circuit emulator
JPS63120336A (en) Switching system for memory access mode
JPH0412861B2 (en)
JPS6138508B2 (en)
JPH0391055A (en) Method for setting hardware lock, hardware lock controller, method and device for detecting hardware lock
JPS6118224B2 (en)
JPS61267137A (en) System for controlling interrupting action
JPH07210421A (en) Debugging method in thread environment
JPS6259341B2 (en)
JPH0193831A (en) System for controlling operand access of virtual computer
JPS6029846A (en) Execution state control system of information processor
JPH02193228A (en) Information processor
JPS5860496A (en) Access system for hidden address of main storage device