JPH03141444A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03141444A
JPH03141444A JP1280129A JP28012989A JPH03141444A JP H03141444 A JPH03141444 A JP H03141444A JP 1280129 A JP1280129 A JP 1280129A JP 28012989 A JP28012989 A JP 28012989A JP H03141444 A JPH03141444 A JP H03141444A
Authority
JP
Japan
Prior art keywords
register
sto
base
instruction
space
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.)
Granted
Application number
JP1280129A
Other languages
Japanese (ja)
Other versions
JPH0650481B2 (en
Inventor
Yasutaka Yamada
山田 泰任
Hisayoshi Kato
久佳 加藤
Katsumi Hayashida
克己 林田
Toru Yoshida
亨 吉田
Fujio Wakui
涌井 富士雄
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering 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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP1280129A priority Critical patent/JPH0650481B2/en
Publication of JPH03141444A publication Critical patent/JPH03141444A/en
Publication of JPH0650481B2 publication Critical patent/JPH0650481B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten the instruction processing time by detecting whether a space register having the same number as a designated one is available or not and saving temporarily an STO (reference point address) to be written into an STO register when a base changing case is detected. CONSTITUTION:When an instruction is carried out for change of the contents of a space register 3, a base change detecting circuit 5 detects that the register 3 designated in an instruction base field is equal to the register 3 whose contents are changed. A saving means 16 saves temporarily the STO to be written into an STO register 4 corresponding to the register 3 designated by the base field based on the output of the circuit 5. Then the register 4 corresponding to the register 3 having the same number as the base field writes the data to the end of an STO register group corresponding to the continuous registers 3 to be changed at change of the base of an LAM (load access multiple) instruction. Thus the instruction processing time is shortened in a base changing case.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、LAM(Load Access Mult
iple)命令において、ベースフィールドで指定され
た空間レジスタの番号と変更すべき空間レジスタ群の1
つが同一番号となる場合の命令処理時間を短縮したデー
タ処理装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to LAM (Load Access Mult
iple) instruction, the number of the space register specified in the base field and one of the space register group to be changed.
The present invention relates to a data processing device that shortens the processing time when instructions are the same number.

〔従来技術〕[Prior art]

命令のベースフィールドによって指定された空間レジス
タ(AR)の内容が空間アドレス変換機構によって、実
アドレス変換を行うための基点アドレス(セグメントテ
ーブルオリジン:5TO)に変換される多重仮想空間ア
ドレス方式のデータ処理方式が知られている(例えば、
特願昭63−244398)。
Data processing using a multiple virtual space address method in which the contents of a space register (AR) specified by the base field of an instruction are converted by a space address conversion mechanism into a base address (segment table origin: 5TO) for performing real address conversion. The method is known (e.g.
Patent application No. 63-244398).

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

上記したようなデータ処理方式において、複数の連続し
たARを変更するLAM命令が実行されると、変更され
るARと共にそれに対応するSTOを保持している基点
アドレスレジスタ(STOレジスタ)も書換えられる。
In the data processing method described above, when a LAM instruction that changes a plurality of consecutive ARs is executed, the base address register (STO register) that holds the changed AR and the corresponding STO are also rewritten.

そのとき、例えば、変更されるARの番号の一つとベー
スフィールドが指定したARの番号が同じ番号であった
場合、以下のような問題が起こる。
At that time, for example, if one of the AR numbers to be changed and the AR number specified by the base field are the same number, the following problem occurs.

すなわち、書き換えるためのオペランドデータの読出し
は、ベースフィールドで指定されたARの空間に対応す
るSTOレジスタ中のSTOによって、使用するセグメ
ントテーブルが指定され、該テーブルを用いて実アドレ
スに変換されたアドレスを用いることにより行なわれる
が、該命令によって、ARすなわちSTOレジスタを書
換えてしまうために、命令の途中でベースフィールドと
同じ番号のSTOレジスタの内容が書換えられてしまう
という問題がある。
That is, when reading operand data for rewriting, the segment table to be used is specified by the STO in the STO register that corresponds to the AR space specified by the base field, and the address is converted to a real address using the table. However, since this instruction rewrites the AR or STO register, there is a problem in that the contents of the STO register having the same number as the base field are rewritten during the instruction.

以下、このような場合をベース変更のケースと呼ぶこと
にする。
Hereinafter, such a case will be referred to as a base change case.

従って、このようなベース変更ケース時に、命令の途中
でST○レジスタを書換えないようにするために、ベー
スフィールドと同一番号のSTOレジスタについては、
一連の変更すべきSTOレジスタの最後に書込みをしな
ければならない。
Therefore, in order to prevent the ST○ register from being rewritten in the middle of an instruction in such a base change case, for the STO register with the same number as the base field,
The last write in the series of STO registers to be changed must be made.

そして、そのために、ARを書換えるための主記憶から
のデータ読み出しと、最後にベースフィールドと同一番
号のSTOレジスタを書換えるためにもう一度、同一番
号のARに書込むデータを主記憶より読み出しSTOを
求めなければならず、同一データに対して2度の主記憶
アクセスが必要となり、命令処理に時間を要するという
問題があった・ 本発明は、前記問題点を解決するためになされたもので
ある。
To do this, data is read from the main memory in order to rewrite the AR, and finally, in order to rewrite the STO register with the same number as the base field, the data to be written in the AR with the same number is read out from the main memory and the STO register has the same number as the base field. The present invention has been made to solve the above problem. be.

本発明の目的は、ベース変更ケースのLAM命令におけ
る命令処理時間を短縮したデータ処理装置を提供するこ
とにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data processing device that reduces instruction processing time for LAM instructions in base change cases.

C課題を解決するための手段〕 前記目的を達成するために、空間レジスタの内容を変更
する命令が実行されたとき、該命令のベースフィールド
で指定される空間レジスタが、前記内容が変更される空
間レジスタと同一であることを検出する手段と、該検出
手段の出力によって、該ベースフィールドで指定された
空間レジスタに対応する基点アドレスレジスタに書き込
む基点アドレスを一時的に退避する退避手段とを設けた
Means for Solving Problem C] In order to achieve the above object, when an instruction that changes the contents of a space register is executed, the contents of the space register specified by the base field of the instruction are changed. A means for detecting whether the space register is the same as a space register, and a saving means for temporarily saving a base address to be written to a base address register corresponding to the space register specified by the base field based on the output of the detecting means. Ta.

〔作 用〕[For production]

前述した手段によれば、LAM命令のベース変更時は、
ベースフィールドと同番号の空間レジスタに対応するS
TOレジスタは、変更すべき連続した空間レジスタに対
応するST○レジスタ群の最後に書き込みを行うように
する。
According to the above-mentioned means, when changing the base of a LAM instruction,
S corresponding to the space register with the same number as the base field
The TO register is written at the end of the ST○ register group corresponding to consecutive space registers to be changed.

そのために、連続した空間レジスタ群の中にベースフィ
ールドで指定された番号と同一番号の空間レジスタが存
在するか否かを検出するようにし、ベース変更のケース
を検出した場合は、ST○レジスタに書込むSTOを一
時的に退避しておき。
For this purpose, it is detected whether or not there is a space register with the same number as the number specified in the base field in a continuous space register group, and if a case of base change is detected, the ST○ register is Temporarily save the STO to be written.

変更すべき一連のSTOレジスタ群の最後に該退避した
STOを読み出し、STOレジスタに書込むようにする
At the end of a series of STO register groups to be changed, the saved STO is read and written to the STO register.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて具体的に説明す
る。
Hereinafter, one embodiment of the present invention will be specifically described using the drawings.

第1図は、本発明の実施例であるシステム構成図であっ
て、1は命令レジスタ、2は汎用レジスタ群(GPR)
、3は空間レジスタ群(AR)、4は基点アドレス(セ
グメントテーブルオリジン:5TO)を保持している基
点アドレスレジスタ群(STOレジスタ)、5はベース
変更検出回路、6はALB参照アドレス生成回路、7は
空間レジスタ索引バッファ (A RTranslat
ion LookasideBuffer: A L 
B )、8はアドレス計算器、9、ioは制御レジスタ
(CR) 、11は実アドレス変換機構、12は空間ア
ドレス変換機構、 13はALBヒツト検出回路、16
はSTO退避レジスタである。
FIG. 1 is a system configuration diagram that is an embodiment of the present invention, in which 1 is an instruction register and 2 is a general purpose register group (GPR).
, 3 is a space register group (AR), 4 is a base point address register group (STO register) holding a base point address (segment table origin: 5TO), 5 is a base change detection circuit, 6 is an ALB reference address generation circuit, 7 is a space register index buffer (A RTranslat
ion LookasideBuffer: A L
B), 8 is an address calculator, 9, io is a control register (CR), 11 is a real address translation mechanism, 12 is a spatial address translation mechanism, 13 is an ALB hit detection circuit, 16
is the STO save register.

LAM命令を実行するとき、該LAM命令で指定された
R□、R2及びBフィールドの番号をライン19〜21
を介してベース変更検出回路5に取り込み、RいR2フ
ィールドで指定された変更すべきAR群の中にBフィー
ルドの番号と同一の番号のARがあるか否かを検出する
When executing a LAM instruction, the numbers of R□, R2 and B fields specified in the LAM instruction are written in lines 19 to 21.
The base change detection circuit 5 detects whether or not there is an AR with the same number as the number in the B field among the AR group to be changed specified in the R2 field.

一方、変更すべきAR群の内容が記憶された主記憶装置
18をアクセスするためのオペランドアドレスが実アド
レス変換機構11によって生成される。
On the other hand, the real address translation mechanism 11 generates an operand address for accessing the main memory 18 in which the contents of the AR group to be changed are stored.

すなわち、該命令のBフィールドによって指定される汎
用レジスタ2の内容とDフィールドとをアドレス計算器
8に入力することによりアドレス計算し、仮想アドレス
を生成する。
That is, the contents of the general-purpose register 2 specified by the B field of the instruction and the D field are input to the address calculator 8 to calculate an address and generate a virtual address.

そして、該仮想アドレスを実アドレスに変換するために
、通常はBフィールドと同一番号のSTOレジスタ4か
ら基点アドレス(STO)を読み出し、ライン29を介
して実アドレス変換機構11に入力することにより、該
仮想アドレスが実アドレスに変換されるが、読み出すS
TOレジスタ4のVビットが′1′の時は、該STOレ
ジスタ4は有効であり、該ST○レジスタ4からSTO
を読み出し、前述したように実アドレスに変換され、主
記憶装置18よりオペランドデータが読み出される。読
み出されたオペランドデータは、命令のR□フィールド
の番号から始まって、R2フィールドの番号で終る対応
、たAR3に書き込まれる。
Then, in order to convert the virtual address to a real address, the base address (STO) is usually read from the STO register 4 having the same number as the B field and inputted to the real address conversion mechanism 11 via line 29. The virtual address is converted to a real address, but the S
When the V bit of the TO register 4 is '1', the STO register 4 is valid, and the STO register 4 is
is read out, converted into a real address as described above, and the operand data is read out from the main memory device 18. The read operand data is written into corresponding AR3 starting with the number in the R□ field of the instruction and ending with the number in the R2 field.

これに対して、読み出そうとしたST○レジスタ4のV
ビットがO′で無効であった場合は、該LAM命令実行
以前に登録されていたBフィールドと同一番号のAR3
をライン34を介して読み出し、制御レジスタ9または
10とともにALB参照アドレス生成回路6に入力する
ことにより、ALB参照アドレスを生成する。そして、
該アドレスによってALB7を参照し、ALBヒツト検
出回路13に出力されたALBにSTOを含むデータが
登録されていれば、ALB読み出しレジスタ14からS
TOを読み出し、ライン28を介して実アドレス変換機
構IIに入力する。
On the other hand, the V of ST○ register 4 that was attempted to be read.
If the bit is O' and invalid, AR3 with the same number as the B field registered before the execution of the LAM instruction
is read out via line 34 and input to the ALB reference address generation circuit 6 together with the control register 9 or 10, thereby generating an ALB reference address. and,
ALB 7 is referenced by the address, and if data including STO is registered in the ALB output to the ALB hit detection circuit 13, S is read from the ALB read register 14.
TO is read and input via line 28 to the real address translator II.

また、ALB7を参照したときに、ALBヒツト検出回
路13によりALBにSTOが登録されていないことが
検出された場合は、Bフィールドと同一番号のARをラ
イン33を介して読み出し、ライン35を介した制御レ
ジスタ9または10とともに空間アドレス変換機構12
に入力することによりSTOを生成し、該STOがライ
ン30を介して実アドレス変換機構11に入力される。
Furthermore, when ALB 7 is referenced, if the ALB hit detection circuit 13 detects that no STO is registered in the ALB, the AR with the same number as the B field is read out via line 33 and the AR is read out via line 35. The spatial address translation mechanism 12 together with the control register 9 or 10
The STO is input to the real address translation mechanism 11 via line 30.

以上のようにして、ARが書き換えられるが、前述した
ようにLAM命令は該ARに対応するSToレジスタも
書き換えなければならない。
As described above, the AR is rewritten, but as described above, the LAM instruction must also rewrite the STo register corresponding to the AR.

以下に、L A M b令によるSTOレジスタの登録
方法を説明する。
A method of registering the STO register using the LAMb instruction will be described below.

Bフィールドはm番を指定し、RいR2フィールドはそ
れぞれn番、15番を指定していたとする。前述したよ
うに、LAM命令でAR群3のARnからAR工、まで
書換えられた場合、書換えられたそれぞれのARのデー
タと制御レジスタ9またはlOにより、ALB参照アド
レス生成回路6を用いてALB参照アドレスを生成する
。生成されたALB参照アドレスによりALB7を参照
し、ALBヒツト検出回路13においてALB7にST
Oを含むデータが登録されているか否かを検出する。A
LB7に登録されていれば、ALB読み出しレジスタ1
4、STO書き込みレジスタ15にSTOを読み出し、
読み出されたSTOは、セレクタ回路17、ライン38
を介してn番から15番までのSTOレジスタに書き込
まれる。
Assume that the B field specifies number m, and the R and R2 fields specify numbers n and 15, respectively. As mentioned above, when the LAM instruction rewrites AR group 3 from ARn to AR, ALB reference is made using the ALB reference address generation circuit 6 using the rewritten data and control register 9 or lO of each AR. Generate an address. ALB7 is referred to using the generated ALB reference address, and the ALB hit detection circuit 13 sets ST to ALB7.
It is detected whether data including O is registered. A
If registered in LB7, ALB read register 1
4. Read STO to STO write register 15,
The read STO is sent to the selector circuit 17, line 38
are written to the STO registers number n to 15 through the STO register.

しかし、ベース変更検出回路5によってベース変更が検
出されると、Bフィールドと同じ番号のARmより読み
出されたSTOはSTO退避レジスタ16に退避され、
同時にセレクタ回路17によりm番のSTOレジスタへ
の書き込みを抑止する。
However, when a base change is detected by the base change detection circuit 5, the STO read from ARm with the same number as the B field is saved to the STO save register 16,
At the same time, the selector circuit 17 inhibits writing to the m-th STO register.

そして、m番のSTOレジスタを除く他の指定されたS
TOレジスタへのSTOの登録が終了すると、ベース変
更検出回路5によってライン36を介してセレクタ回路
17が制御され、STO退避レジスタ16に退避されて
いたSTOが読み出され、m番のSTOレジスタに登録
されることによって、LAM命令が処理完了する。
Then, other specified S except for the m-th STO register
When the registration of the STO in the TO register is completed, the selector circuit 17 is controlled by the base change detection circuit 5 via the line 36, the STO saved in the STO save register 16 is read out, and the STO is saved in the m-th STO register. By being registered, the LAM instruction completes processing.

なお、ALB 7を参照したとき、ALB 7にSTO
を含むデータが登録されていない場合は、ALBヒツト
検出回路13はライン37を介してST○レジスタ群の
中の該当するSTOレジスタのvビットにO′を書き込
み該STOレジスタを無効とする。無効となったST○
レジスタは、後続の命令のベースフィールドで使用され
たとき、空間アドレス変換を行い再登録するようにする
Note that when ALB 7 is referenced, STO is added to ALB 7.
If the data including the STO register is not registered, the ALB hit detection circuit 13 writes O' to the v bit of the corresponding STO register in the ST○ register group via line 37, thereby invalidating the corresponding STO register. Invalid ST○
The register performs spatial address translation and reregistration when used in the base field of a subsequent instruction.

また、ベース変更の場合は、直接STOレジスタ群の中
のVビットを変更せずに、STO退避しジスタ16に付
加されたVビットをj Ol とし、STo退避レジス
タ16を使用する際に、Vビット10′をSTOレジス
タに書き込むようにする。
In addition, in the case of base change, without directly changing the V bit in the STO register group, the V bit added to the register 16 after saving the STO is set as jOl, and when using the STO save register 16, the V bit is Cause bit 10' to be written to the STO register.

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

以上、説明したように、本発明によれば、LAM命令の
ベースフィールドで指定された番号と変更すべき空間レ
ジスタ群の1つが同一番号となっても、オペランドアド
レス計算時に空間アドレスを誤ることがなく、またLA
M命令の処理時間を短縮することができる。
As described above, according to the present invention, even if the number specified in the base field of the LAM instruction and one of the space register groups to be changed are the same number, an error in the space address is prevented when calculating the operand address. No, LA again
The processing time of M instructions can be shortened.

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

第1図は、本発明の実施例であるシステム構成図である
。 図中、1・・・命令レジスタ、2・・・汎用レジスタ群
、3・・・空間レジスタ群、4・・・基点アドレスレジ
スタ群、5・・・ベース変更検出回路、6・・・ALB
参照アドレス生成回路、7・・・空間レジスタ索引バッ
ファ。 8・・・アドレス計算器、9.10・・・制御レジスタ
、11・・・実アドレス変換機構、!2・・・空間アド
レス変換機構、13・・・A L Bヒツト検出回路、
16・・・STO退避レジスタ
FIG. 1 is a system configuration diagram that is an embodiment of the present invention. In the figure, 1... instruction register, 2... general purpose register group, 3... space register group, 4... base address register group, 5... base change detection circuit, 6... ALB
Reference address generation circuit, 7... Space register index buffer. 8...Address calculator, 9.10...Control register, 11...Real address translation mechanism,! 2... Spatial address conversion mechanism, 13... ALB hit detection circuit,
16...STO save register

Claims (1)

【特許請求の範囲】[Claims] 1、命令のベースフィールドによって指定された空間レ
ジスタの内容を、実アドレス変換を行うための基点アド
レスに変換する空間アドレス変換機構と、該空間レジス
タに対応して設けられた前記基点アドレスを保持する基
点アドレスレジスタとを有する多重仮想空間アドレス方
式のデータ処理装置において、空間レジスタの内容を変
更する命令が実行されたとき、該命令のベースフィール
ドで指定される空間レジスタが、前記内容が変更される
空間レジスタと同一であることを検出する手段と、該検
出手段の出力によって、該ベースフィールドで指定され
た空間レジスタに対応する基点アドレスレジスタに書き
込む基点アドレスを一時的に退避する退避手段とを設け
たことを特徴とするデータ処理装置。
1. A space address translation mechanism that converts the contents of a space register specified by the base field of an instruction into a base address for performing real address translation, and holds the base address provided corresponding to the space register. In a multi-virtual space addressing system data processing device having a base point address register, when an instruction to change the contents of a space register is executed, the contents of the space register specified by the base field of the instruction are changed. A means for detecting whether the space register is the same as a space register, and a saving means for temporarily saving a base address to be written to a base address register corresponding to the space register specified by the base field based on the output of the detecting means. A data processing device characterized by:
JP1280129A 1989-10-27 1989-10-27 Data processing device Expired - Fee Related JPH0650481B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1280129A JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1280129A JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Publications (2)

Publication Number Publication Date
JPH03141444A true JPH03141444A (en) 1991-06-17
JPH0650481B2 JPH0650481B2 (en) 1994-06-29

Family

ID=17620738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1280129A Expired - Fee Related JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Country Status (1)

Country Link
JP (1) JPH0650481B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05143462A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system
JPH05143461A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system
JPH05143460A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05143462A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system
JPH05143461A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system
JPH05143460A (en) * 1991-11-25 1993-06-11 Fujitsu Ltd Virtual storage address space access control system

Also Published As

Publication number Publication date
JPH0650481B2 (en) 1994-06-29

Similar Documents

Publication Publication Date Title
JP2825550B2 (en) Multiple virtual space address control method and computer system
JPH08272692A (en) Conversion method of virtual address
JPS63240632A (en) Information processor
JPS6376034A (en) Multiple address space control system
JPH0322155A (en) Cache memory device
EP0144268B1 (en) Method for controlling buffer memory in data processing apparatus
JPH03141444A (en) Data processor
US4737908A (en) Buffer memory control system
JP3132566B2 (en) Instruction precedence controller
JPH03175548A (en) Microprocessor and address control system
JPH0552539B2 (en)
JPH01177145A (en) Information processor
JP2540959B2 (en) Information processing device
JPS6042972B2 (en) Information processing device with address conversion function
JPH01255933A (en) Sweeping-out control system
JPS6161143B2 (en)
EP0229253A2 (en) Data processor with virtual memory management
JPH03109656A (en) Multiplex virtual space address system and data processor
JP2602230B2 (en) Data processing device
JPH03271859A (en) Information processor
JPS63172356A (en) Address conversion system
JPH0439099B2 (en)
JPH0224718A (en) Information processor
JPH0412855B2 (en)
JPH04340144A (en) Bus lock control device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees