JPH02254553A - Information processor - Google Patents

Information processor

Info

Publication number
JPH02254553A
JPH02254553A JP1076992A JP7699289A JPH02254553A JP H02254553 A JPH02254553 A JP H02254553A JP 1076992 A JP1076992 A JP 1076992A JP 7699289 A JP7699289 A JP 7699289A JP H02254553 A JPH02254553 A JP H02254553A
Authority
JP
Japan
Prior art keywords
address
buffer
address translation
address conversion
protection key
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
JP1076992A
Other languages
Japanese (ja)
Inventor
Kiyoshi Komoda
薦田 潔
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1076992A priority Critical patent/JPH02254553A/en
Publication of JPH02254553A publication Critical patent/JPH02254553A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To prevent loss of address conversion information in an address conversion buffer by providing a protection key buffer used for memory access at the time of not designating the address conversion mode. CONSTITUTION:An address conversion buffer 20 is provided which adopts the virtual storage system and holds a part of an address conversion table, and a copy of protection key memory information is stored in this address conversion buffer, and the address conversion buffer 20 is used for table address conversion. A protection key buffer 14 is provided where a copy of a protection key memory 12 is held, and the protection key buffer 14 is used when the table address conversion mode is not designated, and the address conversion buffer 20 is used to access the memory when the table address conversion mode is designated. Thus, address conversion information is prevented from being lost in an address conversion buffer TLB when the address conversion mode is not designated.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、仮想記憶方式を採用した情報処理装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an information processing device that employs a virtual storage method.

〔従来の技術〕[Conventional technology]

仮想記憶方式を採用した情報処理装置として特開昭58
−159287号公報に示すものがある。この情報処理
装置では、処理装置より与え・られる仮想アドレスを予
め用意されたアドレス変換テーブルを用いて実アドレス
に変換し、この実アドレスによって主記憶メモリ(MM
)に対してアクセスする。上記アドレス変換テーブルは
仮想アドレスと実アドレスとを対応させるテーブルであ
り、このテーブルの内当面よく使用する部分を保持する
レジスタをアドレス変換バッファ(TLB)と称してい
る。
Unexamined Japanese Patent Publication No. 1983 as an information processing device that adopted a virtual memory method
There is one shown in Japanese Patent No.-159287. This information processing device converts the virtual address given by the processing device into a real address using an address conversion table prepared in advance, and uses this real address to convert the virtual address given by the processing device into a main memory (MM).
). The address translation table is a table that associates virtual addresses with real addresses, and a register that holds a frequently used portion of this table is called an address translation buffer (TLB).

さらに主記憶メモリMMには記憶保護違反をチエツクす
るためにページ単位に数ビットの保護キーデータが保護
キーメモリ(にYM)として設けられているが、アドレ
ス変換バッファTLHに保護キーメモリKYM上の保護
キーの写しを持たせておき、アドレス変換時に記憶保護
違反のチエツクを同時に実施している。
Furthermore, the main memory MM is provided with several bits of protection key data for each page as a protection key memory (YM) in order to check for memory protection violations. A copy of the protection key is kept and a memory protection violation check is performed at the same time as address conversion.

以上説明したような考慮から設計された従来の情報処理
装置を第2図に示す。図において、(1)は256エン
トリを有するアドレス変換バッファTLBであり、IN
DXは仮想アドレスビット1〜11を比較するためのイ
ンデックスフィールド、Tはアドレス変換バッファTL
Bの各エントリの内容が仮想アドレスのアドレス変換に
用いられるか(論理1)又は実アドレスのアドレス変換
はせずに保護キーチエツクのみに使用させるか(論理0
)を示すフラグ、RAは実アドレスベージフィールド、
にYは実アドレスページフィールドRAに対応する保護
キーメモリKYMの保護キーの写し、■はアドレス変換
バッファTLBの各エントリーが有効であることを示す
有効ビットである。(2)は仮想アドレスに対してアド
レス変換を行うかどうかを制御するアドレス変換モード
フラグを保持するアドレス変換モードレジスタを示し、
このフラグが論理1の時、仮想アドレスに対してアドレ
ス変換を行い、論理0の時はアドレス変換を行なわない
ことを示す。(3)はアドレス変換バッファTLB (
1)のR^フィールドに書くための仮想アドレスに対応
する実ページアドレスを保持する実ページアドレスレジ
スタ、(4)はアドレス変換バッファTLB (1)の
にYフィールドに書くために保護キーメモリにYMから
の保護キーデータを保持する保護キーライトデータレジ
スタにYWを示す。
FIG. 2 shows a conventional information processing apparatus designed with the above considerations in mind. In the figure, (1) is an address translation buffer TLB having 256 entries;
DX is an index field for comparing virtual address bits 1 to 11, and T is an address translation buffer TL.
Whether the contents of each entry in B are used for address translation of virtual addresses (logical 1) or used only for protection key check without address translation of real addresses (logical 0).
), RA is the real address page field,
Y is a copy of the protection key in the protection key memory KYM corresponding to the real address page field RA, and ■ is a valid bit indicating that each entry in the address translation buffer TLB is valid. (2) indicates an address translation mode register that holds an address translation mode flag that controls whether or not to perform address translation for virtual addresses;
When this flag is logical 1, address translation is performed on the virtual address; when this flag is logical 0, address translation is not performed. (3) is the address translation buffer TLB (
1) the real page address register that holds the real page address corresponding to the virtual address to be written to the R^ field in (4) the address translation buffer TLB; indicates YW in the protection key write data register that holds the protection key data from.

また、(5)は仮想アドレスを保持する仮想アドレスレ
ジスタを示し、PAは仮想アドレスのページアドレス部
分、BAは仮想アドレスのページ内アドレスを示す、(
6)はアドレス変換バッファTLB (1)のKYフィ
ールドより読み出された保護キーデータを保持する保護
キーリードデータレジスタKYRを示し、この保護キー
データは記憶保護違反を検出する。(7)はアドレス変
換バッファTLB (1)のTフィールドから読み出さ
れるデータとアドレス変換モードフラグレジスタ(2)
との一致をチエツクする比較器、(8)はアドレス変換
バッファTLB (1)のINDXフィールドと仮想ア
ドレスレジスタ(5)のビット1〜11との一致をチエ
ツクする比較器、(9)はTLBヒツトの条件を検出す
るためのANDゲートを示す。
Further, (5) indicates a virtual address register that holds a virtual address, PA indicates a page address portion of the virtual address, and BA indicates an address within the page of the virtual address.
6) indicates a protection key read data register KYR that holds protection key data read from the KY field of the address translation buffer TLB (1), and this protection key data detects a storage protection violation. (7) is the data read from the T field of the address translation buffer TLB (1) and the address translation mode flag register (2)
(8) is a comparator that checks for a match between the INDX field of the address translation buffer TLB (1) and bits 1 to 11 of the virtual address register (5). (9) is a TLB hit An AND gate is shown for detecting the condition of .

さらに、(10)は実ページアドレスレジスタ(3)と
仮想アドレスレジスタ(5)の選択を行うセレクタを示
し、アドレス変換モードレジスタ(2)の値が論理1の
時実アドレスベージレジスタ(3)を選択し、論理0の
時は仮想アドレスレジスタ(5)のビット1〜19を選
択する。(11)は主記憶メモリMM、保護キーメモリ
にYMをアクセスするための実アドレスを保持するため
の物理アドレスレジスタ、(12)は保護キーデータを
持つ保護キーメモリ、(13)は主記憶メモリを示す。
Furthermore, (10) indicates a selector that selects between the real page address register (3) and the virtual address register (5), and when the value of the address translation mode register (2) is logic 1, the real address page register (3) is selected. When it is logical 0, bits 1 to 19 of the virtual address register (5) are selected. (11) is the main memory MM, a physical address register to hold the real address for accessing YM to the protection key memory, (12) is the protection key memory with protection key data, and (13) is the main memory shows.

次に、各アドレス変換モード毎にその動作を説明する。Next, the operation of each address translation mode will be explained.

[A]アドレス変換モードが指定された場合A1;プロ
グラムよりメモリアクセス要求が発生する場合 この場合、その要求の仮想アドレスが仮想アドレスレジ
スタ(5)にセットされる。仮想アドレス変換ス(5)
にセットされたアドレスのビット12〜19によりアド
レス変換バッファTLB (1)から各フィールドが読
み出される。アドレス変換バッファTLB (1)のT
フィールドから読み出されたデータとアドレス変換モー
ドレジスタ(2)の出力との一致が比較器(7)により
検出され、INDXフィールドから読み出されたデータ
と仮想アドレスレジスタ(5)のビット1〜11の一致
が比較器(8)により検出される1両比較器(7) 、
 (8)の結果が両方とも論理1であり、さらにアドレ
ス変換バッファTLB (1)の■フィールドの出力デ
ータが論理1である時、へNOゲート(9) によりT
LBヒツトが検出される。同時にアドレス変換バッファ
TLB (1)のにYフィールドから読み出された保護
キーデータがレジスタKYRにセットされて記憶保護違
反の検出が行なわれる。この時TLBヒツトで記憶保護
違反が無いということで、アドレス変換バッファTLB
 (1)のR^フィールドの実ページアドレスと仮想ア
ドレスレジスタ(5)のビット20〜31が物理アドレ
スレジスタ(11)にセットされ主記憶メモリMM(1
3)にアクセスする。
[A] When address translation mode is specified A1; When a memory access request is generated from a program In this case, the virtual address of the request is set in the virtual address register (5). Virtual address translation (5)
Each field is read from address translation buffer TLB (1) by bits 12 to 19 of the address set in . Address translation buffer TLB (1) T
A match between the data read from the INDX field and the output of the address translation mode register (2) is detected by the comparator (7), and the data read from the INDX field and bits 1 to 11 of the virtual address register (5) are matched. a comparator (7) in which a match is detected by the comparator (8);
When the results of (8) are both logical 1 and the output data of the ■ field of address translation buffer TLB (1) is logical 1, the NO gate (9) causes T
LB hit is detected. At the same time, the protection key data read from the Y field of address translation buffer TLB (1) is set in register KYR, and a storage protection violation is detected. At this time, since there is no memory protection violation due to the TLB hit, the address translation buffer TLB
The real page address of the R^ field in (1) and bits 20 to 31 of the virtual address register (5) are set in the physical address register (11), and the main memory MM (1) is set in the physical address register (11).
3) Access.

A2 i TLB内に対応するアドレス変換情報がない
場合 すなわちTLBヒツトでない時には、当該変換情報を主
記憶メモリMM(13)より実ページアドレスレジスタ
RAR(3)へ読み出され、セレクタ(10)により選
択されてアドレス変換バッファTLB (1)のRAフ
ィールドに書き込まれる。同時にその実ページアドレス
に対応する係謹キーデータも保護キーメモリにYM(1
2)より読み出されレジスタにYW (4)にセットさ
れアドレス変換バッファTLB (1)のにYフィール
ドに書き込まれ、さらにアドレス変換モードレジスタ(
2)からアドレス変換バッファTLB (1)のTフィ
ールド、仮想アドレスレジスタ(5)よりアドレス変換
バッファTLB (1)のINDXフィールド、論理1
がアドレス変換バッファTLB (1)のVフィールド
に書き込まれ、アドレス変換情報の書き込みを終了する
。この後前述した処理A1を行う。
A2 i When there is no corresponding address conversion information in the TLB, that is, when there is no TLB hit, the conversion information is read from the main memory MM (13) to the real page address register RAR (3) and selected by the selector (10). and written to the RA field of address translation buffer TLB (1). At the same time, the pending key data corresponding to the real page address is also stored in the protected key memory YM (1
2), is set to YW in the register (4), is written to the Y field in the address translation buffer TLB (1), and is further read out from the address translation mode register (
2) to address translation buffer TLB (1) T field, virtual address register (5) to address translation buffer TLB (1) INDX field, logic 1
is written to the V field of address translation buffer TLB (1), and writing of address translation information is completed. Thereafter, the process A1 described above is performed.

[B]アドレス変換モードが指定されない場合すなわち
アドレス変換が不必要であるため仮想アドレスと実アド
レスは一致する。
[B] When the address translation mode is not specified, that is, address translation is unnecessary, so the virtual address and real address match.

Bl i TLB(1)が仮想アドレスレジスタ(5)
に保持されている実アドレスに対応する保護キーの写し
を保持している時は処理A1と同一処理を行う。
Bli TLB (1) is virtual address register (5)
When a copy of the protection key corresponding to the real address held in is held, the same process as process A1 is performed.

但し、この時、アドレス変換モードレジスタ(2)の論
理値はOであり、アドレス変換バッファTLB(1)の
RAフィールドは仮想アドレスレジスタ(5)のビット
1〜19と同一である。
However, at this time, the logical value of the address translation mode register (2) is O, and the RA field of the address translation buffer TLB (1) is the same as bits 1 to 19 of the virtual address register (5).

B2;アドレス変換バッファTl、B (1)が仮想ア
ドレスレジスタ(5)の実アドレスに対応する保護キー
をもっていない場合 すなわちTLBヒツトでない時には、当該保護キーデー
タを保護キーメモリにYM(12)より読み出しレジス
タにYW (4)ヘセットしアドレス変換バッファTL
B (1)のにYフィールドに書き込む。同時に、仮想
アドレスレジスタのビット1〜19をセレクタ(10)
により選択し、アドレス変換レジスタTLB (1)の
R^フィールドに書き込む。さらにアドレス変換モード
レジスタ(2)よりアドレス変換レジスタTLB (1
)のTフィールド、仮想アドレスレジスタ(5)のビッ
ト1〜11よりアドレス変換レジスタTLB (1)の
INDXフィールド、論理1がアドレス変換レジスタT
LB (1)の■フィールドに書き込まれ処理を終了す
る。この後B1の処理を行う。
B2; If the address translation buffer Tl, B (1) does not have a protection key corresponding to the real address of the virtual address register (5), that is, if there is no TLB hit, read the protection key data from YM (12) to the protection key memory. Set YW (4) in register and address translation buffer TL
B Write in the Y field in (1). At the same time, selector (10) bits 1 to 19 of the virtual address register.
and writes it into the R^ field of address translation register TLB (1). Further, from address translation mode register (2), address translation register TLB (1
), bits 1 to 11 of virtual address register (5) address translation register TLB. INDX field of (1), logic 1 indicates address translation register T
It is written to the ■ field of LB (1) and the process ends. After this, the process of B1 is performed.

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

上述したように、従来の情報処理装置では、アドレス変
換モードが指定された場合も、指定されない場合にもア
ドレス変換バッファTLBを使用するためアドレス変換
情報が頻度の低いアドレス変換モードが指定されない場
合によっては失われるという問題があった。また、通常
、アドレス変換情報を生成するためにはメモリアクセス
を数回伴なうため性能へ影響するという問題があつた。
As described above, in conventional information processing devices, the address translation buffer TLB is used both when an address translation mode is specified and when an address translation mode is not specified. The problem was that it was lost. Additionally, there is a problem in that performance is affected because memory access is usually required several times to generate address translation information.

これに対し、特開昭63−206844号公報及び特開
昭60−230249号公報には、主記憶キーの写しを
もつバッファを別に設けてアドレス変換バッファやキー
バッファより目的の主記憶キーを得て処理の高速化を図
ることが記載されており、特に上記特開昭80−230
249号公報には実アドレスモードの時に先ずアドレス
変換バッファを調べ、ノンヒツトならばキーバッファを
調べることが記載されているが、通常、仮想アドレスリ
クエストの頻度は実アドレスリクエストより非常に高く
、キーによる記憶保護違反によって実アドレスリクエス
トにより仮想アドレスリクエスト用に設定されたアドレ
ス変換バッファエントリーを失うことがあり、大きな損
失になるという問題点があった。
On the other hand, in JP-A-63-206844 and JP-A-60-230249, a buffer with a copy of the main memory key is provided separately, and the target main memory key is obtained from the address translation buffer or key buffer. It is described that speeding up the processing is achieved by
Publication No. 249 states that in the real address mode, the address translation buffer is checked first, and if there is a non-hit, the key buffer is checked, but normally, the frequency of virtual address requests is much higher than that of real address requests, and There is a problem in that an address translation buffer entry set for a virtual address request may be lost due to a storage protection violation due to a real address request, resulting in a large loss.

この発明は上記のような問題点を解消するためになされ
たもので、アドレス変換バッファTLBからアドレス変
換情報をアドレス変換モードが指定されてない場合に失
われないようにできるとともにキーによる記憶保護違反
をチエツクしてアドレス変換のペナルティを軽減でき、
アドレス変換バッファTLBのヒツト率を向上させるこ
とができる情報処理装置を得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and it is possible to prevent address translation information from being lost from the address translation buffer TLB when an address translation mode is not specified, and also prevent a memory protection violation caused by a key. You can reduce the address translation penalty by checking
An object of the present invention is to obtain an information processing device that can improve the hit rate of an address translation buffer TLB.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係る情報処理装置は、仮想記憶方式を用い、
アドレス変換テーブルの一部分を保持するアドレス変換
バッファを設け、このアドレス変換バッファ内に保護キ
ーメモリ情報の写しをも格納し、上記アドレス変換バッ
ファをテーブルアドレス変換に用いる情報処理装置にお
いて、上記保謹キーメモリの写しを保持する保護キーバ
ッファを備えて、テーブルアドレス変換モードが指定さ
れない場合は上記保護キーバッファを使用し、テーブル
アドレス変換モードが指定された場合には上記アドレス
変換バッファを使用してメモリアクセスするものである
An information processing device according to the present invention uses a virtual storage method,
An address translation buffer that holds a part of the address translation table is provided, a copy of the protection key memory information is also stored in the address translation buffer, and the information processing apparatus uses the address translation buffer for table address translation. A protected key buffer that holds a copy of the memory is provided, and if table address translation mode is not specified, the above protected key buffer is used, and if table address translation mode is specified, the above address translation buffer is used to copy the memory. It is something to access.

〔作用〕[Effect]

この発明においては、アドレス変換モードを指定しない
場合のメモリアクセスに、保護キーメモリの写しを保持
する保護キーバッファが使用されるため、この時アドレ
ス変換バッファTLBは使用されなくこのアドレス変換
バッファTLBからアドレス変換情報が失われることが
ない。
In this invention, the protection key buffer that holds a copy of the protection key memory is used for memory access when the address translation mode is not specified, so the address translation buffer TLB is not used at this time and the address translation buffer TLB is No address translation information is lost.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図において、第2図の従来例と同−又は相当部分には同
一符号を用いて省略する。(14)は256エントリを
有する保護キーバッファKYBであり、INDXは仮想
アドレスレジスタ(5)のビット1〜11と比較するた
めのインデックスフィールド、にYはそのエントリーが
対応する実アドレスの保護キーの写しであるキーフィー
ルド、■はそのエントリーが有効であるかを示す有効ビ
ットフィールドである。(15)は保護キーバッファK
YB(14)のINDXフィールドと仮想アドレスレジ
スタ(5)のビット1〜11が一致しているか否かをチ
エツクする比較器、(16)は保護キーバッファ)tY
B (14)のINDXフィールドと仮想アドレスのビ
ット1〜11の一致条件と保護キーバッファにYB (
141のVフィールドが論理1であることのAND条件
をとるANflゲート、(17)はアドレス変換バッフ
ァTLB (20)のI NDXフィールドと仮想アド
レスのビット1〜11の一致条件とアドレス変換バッフ
ァTLB(20)の■フィールドが論理1であることの
AND条件をとるANDゲートを示す。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, the same reference numerals are used for the same or corresponding parts as those in the conventional example shown in FIG. 2, and the illustrations are omitted. (14) is the protection key buffer KYB with 256 entries, INDX is the index field for comparison with bits 1 to 11 of the virtual address register (5), and Y is the protection key of the real address to which the entry corresponds. The key field, which is a copy, is a valid bit field that indicates whether the entry is valid. (15) is the protection key buffer K
A comparator that checks whether the INDX field of YB (14) and bits 1 to 11 of the virtual address register (5) match, (16) is the protection key buffer) tY
B (14) INDX field and virtual address bits 1 to 11 matching condition and protection key buffer
ANfl gate that takes the AND condition that the V field of 141 is logical 1, (17) is the match condition of the INDX field of address translation buffer TLB (20) and bits 1 to 11 of the virtual address, and the address translation buffer TLB ( 20) shows an AND gate that takes the AND condition that the ■ field is logical 1.

また、  (1B)はアドレス変換バッファTLB (
20)のR^フィールドと仮想アドレスのビット1〜1
9をアドレス変換モードレジスタ(2)の出力によって
選択するセレクタ、(19)は保護キーバッファにYB
(14)のMYフィールドとアドレス変換バッファ T
LB(20)のKYフィールドをアドレス変換モードレ
ジスタの出力によって選択するセレクタを示し、(20
)は第2図のアドレス変換バッファTLB (1)と路
間−であるが、保護キーバッファKYB (14)を持
つことにより不用となるTフィールドが除去されたアド
レス変換バッファTLBを示す。
Also, (1B) is the address translation buffer TLB (
20) R^ field and bits 1-1 of the virtual address
Selector 9 is selected by the output of address translation mode register (2), (19) is YB in the protection key buffer.
(14) MY field and address translation buffer T
Indicates a selector that selects the KY field of LB (20) according to the output of the address translation mode register, and (20
) is between the address translation buffer TLB (1) in FIG. 2, but shows the address translation buffer TLB in which the unnecessary T field is removed by having the protection key buffer KYB (14).

以下図面についてこの発明の詳細な説明する。The present invention will be described in detail below with reference to the drawings.

[C]アドレス変換モードが指定された場合この場合は
前述した従来例の処理[A]と略同様で、相異点は、ア
ドレス変換バッファTLB (20)にTフィールドが
含まれる必要がないため、アドレス変換モードレジスタ
(2) とTフィールドの一致を検出する必要がないこ
とと、アドレス変換バッファTLB (20)のにYフ
ィールドより読出された保護キーデータがアドレス変換
モードレジスタの出力で制御されるセレクタ(19)で
選択される点である。
[C] When address translation mode is specified This case is almost the same as the process [A] of the conventional example described above, the difference being that the T field does not need to be included in the address translation buffer TLB (20). , there is no need to detect a match between the address translation mode register (2) and the T field, and the protection key data read from the Y field in the address translation buffer TLB (20) is controlled by the output of the address translation mode register. This is the point selected by the selector (19).

[D]アドレス変換モードが指定されたなかった場合 この場合は、メモリアクセス要求が発生するとその要求
の仮想アドレスが仮想アドレスレジスタ(5) にセッ
トされる。この時、アドレス変換は必要ないのでアドレ
ス変換バッファTLB (20)は使用されない、仮想
アドレスレジスタにセットされたアドレスのビット12
〜19により保護キーバッファにYB (14)より各
フィールドが読み出される。保護キーバッファKYB 
(14)のINFIXフィールドから読み出されたデー
タと仮想アドレスレジスタ(5)のビット1〜11の一
致が比較器(15)により検出される。この比較器(1
5)と保護キーバッファにYB (14)の■フィール
ドの両方の論理値が1である時、へNOゲート(9) 
によりXY8ヒツトが検出される。
[D] When address translation mode is not specified In this case, when a memory access request occurs, the virtual address of the request is set in the virtual address register (5). At this time, since address translation is not necessary, the address translation buffer TLB (20) is not used. Bit 12 of the address set in the virtual address register
~19 reads each field from YB (14) to the protected key buffer. Protection key buffer KYB
A match between the data read from the INFIX field (14) and bits 1 to 11 of the virtual address register (5) is detected by the comparator (15). This comparator (1
5) When the logical value of both the ■ field of YB (14) in the protected key buffer is 1, to NO gate (9)
XY8 human is detected.

この時、同時に保護キーバッファにYB(14)のMY
フィールドから読み出された保護キーデータの写しがセ
レクタ(19)によって選択されてレジスタにYR(8
)にセットされ記憶保護違反がチエツクされる。さらに
仮想アドレスレジスタのビット1〜19がセレクタ(1
8)により選択され物理アドレスレジスタ(11)にセ
ットされ次に記憶保護違反がなければメモリアクセスが
行なわれる。
At this time, MY of YB (14) is stored in the protection key buffer at the same time.
A copy of the protection key data read from the field is selected by the selector (19) and stored in the register YR (8
) to check for memory protection violations. Furthermore, bits 1 to 19 of the virtual address register are set to selector (1
8) and set in the physical address register (11), and then memory access is performed if there is no storage protection violation.

[E]保護キーバッファKYB (14)にその仮想ア
ドレスに対応する保護キーを持っていない場合すなわち
、にYBヒツトでない場合にはそのアドレスに対応する
保護キーデータを保護キーメモリにYM(12)より読
み出しレジスタKYW(4)にセットして、保護キーバ
ッファにYB (14)のKYフィールドに保護キーデ
ータを書き込む、同時に仮想アドレスレジスタ(5)ビ
ット1〜11を保護キーバッファにYB (14)のI
NDXフィールドに書き込み、論理1を保護キーバッフ
ァにYB (14)のVフィールドに書き込む。この後
、前述した処理[D]を行う。
[E] If the protection key buffer KYB (14) does not have a protection key corresponding to the virtual address, that is, if YB is not hit, the protection key data corresponding to that address is stored in the protection key memory YM (12). Set the read register KYW (4) to the KY field of YB (14) in the protection key buffer, and write the protection key data to the KY field of YB (14) in the protection key buffer. At the same time, set bits 1 to 11 of the virtual address register (5) to the protection key buffer in YB (14). I of
Write to the NDX field and write a logic 1 to the V field of YB (14) in the protected key buffer. After this, the process [D] described above is performed.

なお、上記の実施例では、アドレス変換バッファTLB
と保護キーバッファKYBのセット数が1つの場合につ
いて述べたが、セット数が複数となった場合も同様の効
果を奏する。
Note that in the above embodiment, the address translation buffer TLB
Although the case in which the number of sets of protection key buffers KYB is one has been described, the same effect can be achieved even if the number of sets is plural.

(発明の効果) 以上のようにこの発明によれば、アドレス変換モードが
指定されていない場合のメモリアクセス時に使用する保
護キーバッファを備えることにより、アドレス変換バッ
ファTLBのアドレス変換情報を失うことを防ぐことが
できるため、メモリアクセスに伴なうアドレス変換のペ
ナルティを最小限に抑えることができ、さらにアドレス
変換が指定されてない時のメモリアクセスの効率も落さ
ないので性能向上に効果がある。
(Effects of the Invention) As described above, according to the present invention, loss of address translation information in the address translation buffer TLB is prevented by providing a protection key buffer used during memory access when no address translation mode is specified. Since the address translation penalty associated with memory access can be minimized, the efficiency of memory access when address translation is not specified is not reduced, which is effective in improving performance. .

また、仮想アドレスリクエスト用に生成されたTLBエ
ントリーが実アドレスリクエストによって失われること
がないためTLBのヒツト率が向上し、TLBミスによ
るアドレス変換のペナルティが軽減されることが上げら
れ、特に、仮想アドレスリクエストの頭度は、通常実ア
ドレスリクエストより非常に高く、実アドレスリクエス
トにより仮想アドレスリクエスト用に設定されたTLB
エントリーを失うことは大きな損失となるが、このよう
な損失を防ぐ効果がある。
In addition, TLB entries generated for virtual address requests are not lost due to real address requests, which improves the TLB hit rate and reduces address translation penalties due to TLB misses. The headness of an address request is usually much higher than a real address request, and the TLB set for the virtual address request by the real address request
Losing an entry would be a big loss, but it has the effect of preventing such a loss.

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

第1図はこの発明の一実施例による情報処理装置を示す
ブロック構成図、第2図は従来の情報処理装置のブロッ
ク構成図である。 (1) 、 (20)はアドレス変換バッファTLB 
、 (2)はアドレス変換モードレジスタ、(3)は実
ページアドレスレジスタ、(4)は保護キーライトデー
タレジスタ、(5)は仮想アドレスレジスタ、(6)は
保護キーリードデータレジスタ、(7) 、 (8) 
、 (15)は比較器、(9)は3人力ANDゲート、
(10) 、 (18) 、 (19)はセレクタ、 
(11)は物理アドレスレジスタ、(12)は保護キー
メモリにYM 、 (13)は主記憶メモリMM。 (14)は保護キーバッファKYB 、 (16)、 
(17)は2人力ANDゲート。 なお、図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing an information processing apparatus according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional information processing apparatus. (1) and (20) are address translation buffer TLB
, (2) is the address translation mode register, (3) is the real page address register, (4) is the protection key write data register, (5) is the virtual address register, (6) is the protection key read data register, (7) , (8)
, (15) is a comparator, (9) is a three-man AND gate,
(10), (18), (19) are selectors,
(11) is a physical address register, (12) is a protection key memory YM, and (13) is a main memory memory MM. (14) is the protected key buffer KYB, (16),
(17) is a two-person AND gate. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 仮想記憶方式を用い、アドレス変換テーブルの一部分を
保持するアドレス変換バッファを設け、このアドレス変
換バッファ内に保護キーメモリ情報の写しをも格納し、
上記アドレス変換バッファをテーブルアドレス変換に用
いる情報処理装置において、上記保護キーメモリの写し
を保持する保護キーバッファを備えて、テーブルアドレ
ス変換モードが指定されない場合は上記保護キーバッフ
ァを使用し、テーブルアドレス変換モードが指定された
場合には上記アドレス変換バッファを使用してメモリア
クセスすることを特徴とする情報処理装置。
Using a virtual memory method, an address translation buffer is provided for holding a part of the address translation table, and a copy of the protection key memory information is also stored in this address translation buffer;
An information processing device that uses the above address conversion buffer for table address conversion is provided with a protected key buffer that holds a copy of the above protected key memory, and when the table address conversion mode is not specified, the above protected key buffer is used and the table address An information processing device characterized in that when a conversion mode is specified, memory access is performed using the address conversion buffer.
JP1076992A 1989-03-29 1989-03-29 Information processor Pending JPH02254553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1076992A JPH02254553A (en) 1989-03-29 1989-03-29 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1076992A JPH02254553A (en) 1989-03-29 1989-03-29 Information processor

Publications (1)

Publication Number Publication Date
JPH02254553A true JPH02254553A (en) 1990-10-15

Family

ID=13621276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1076992A Pending JPH02254553A (en) 1989-03-29 1989-03-29 Information processor

Country Status (1)

Country Link
JP (1) JPH02254553A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5724551A (en) * 1996-05-23 1998-03-03 International Business Machines Corporation Method for managing I/O buffers in shared storage by structuring buffer table having entries include storage keys for controlling accesses to the buffers
US5787309A (en) * 1996-05-23 1998-07-28 International Business Machines Corporation Apparatus for protecting storage blocks from being accessed by unwanted I/O programs using I/O program keys and I/O storage keys having M number of bits
US5802397A (en) * 1996-05-23 1998-09-01 International Business Machines Corporation System for storage protection from unintended I/O access using I/O protection key by providing no control by I/O key entries over access by CP entity
US5809546A (en) * 1996-05-23 1998-09-15 International Business Machines Corporation Method for managing I/O buffers in shared storage by structuring buffer table having entries including storage keys for controlling accesses to the buffers
US5900019A (en) * 1996-05-23 1999-05-04 International Business Machines Corporation Apparatus for protecting memory storage blocks from I/O accesses

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5724551A (en) * 1996-05-23 1998-03-03 International Business Machines Corporation Method for managing I/O buffers in shared storage by structuring buffer table having entries include storage keys for controlling accesses to the buffers
US5787309A (en) * 1996-05-23 1998-07-28 International Business Machines Corporation Apparatus for protecting storage blocks from being accessed by unwanted I/O programs using I/O program keys and I/O storage keys having M number of bits
US5802397A (en) * 1996-05-23 1998-09-01 International Business Machines Corporation System for storage protection from unintended I/O access using I/O protection key by providing no control by I/O key entries over access by CP entity
US5809546A (en) * 1996-05-23 1998-09-15 International Business Machines Corporation Method for managing I/O buffers in shared storage by structuring buffer table having entries including storage keys for controlling accesses to the buffers
US5900019A (en) * 1996-05-23 1999-05-04 International Business Machines Corporation Apparatus for protecting memory storage blocks from I/O accesses

Similar Documents

Publication Publication Date Title
JP4417346B2 (en) Fine particle size conversion discrimination method and apparatus
EP0149389A2 (en) Address translation control system
JPH0137773B2 (en)
WO2017118181A1 (en) Memory access device and method
US7617379B2 (en) Multi-hit control method for shared TLB in a multiprocessor system
JPH02254553A (en) Information processor
JPH01302444A (en) Logical address cache control system
US6374334B1 (en) Data processing apparatus with a cache controlling device
JPH0760411B2 (en) Buffer storage controller
JPS6235952A (en) Tlb control system
JPS644214B2 (en)
JP4011871B2 (en) Processor and computer system
JPH0844659A (en) Data transfer controller
JP3030037B2 (en) Main storage device
JP2641319B2 (en) Address translation buffer clear method
JP3008817B2 (en) Buffer control method and buffer control device
JPH0210448A (en) Cache memory system
JPH0368421B2 (en)
JP3047992B2 (en) Main memory key control method
JP3287239B2 (en) Hierarchical cache memory and its state transition control method
JPH04358241A (en) Store buffer controller
JPH03110648A (en) Data processing system
JPH0337217B2 (en)
JPH0816477A (en) Multiprocessor system
JPS6345654A (en) Invalidation processing system for information processor