JPS60230249A - Storage protecting system - Google Patents

Storage protecting system

Info

Publication number
JPS60230249A
JPS60230249A JP59085394A JP8539484A JPS60230249A JP S60230249 A JPS60230249 A JP S60230249A JP 59085394 A JP59085394 A JP 59085394A JP 8539484 A JP8539484 A JP 8539484A JP S60230249 A JPS60230249 A JP S60230249A
Authority
JP
Japan
Prior art keywords
key
address
memory
table buffer
tag memory
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
JP59085394A
Other languages
Japanese (ja)
Inventor
Haruo Inoue
晴夫 井上
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 JP59085394A priority Critical patent/JPS60230249A/en
Publication of JPS60230249A publication Critical patent/JPS60230249A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory

Abstract

PURPOSE:To execute a protection check as quickly as possible by making both a table buffer and a tag memory have a copy of a key of a key storage. CONSTITUTION:A computer has a buffer memory BS, a table buffer TLB, and a tag memory TM. A key for protecting a data is stored in advance not only in the table buffer TLB but also in the tag memory TM. When the table buffer TLB is non-bit at the time of an access in a real mode, the tag memory TM is brought to access, and in case it is hit and the key concerned is read out, the protection check is executed thereby.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、キーを用いた電子計算機の記憶保護方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a storage protection system for an electronic computer using a key.

従来技術と問題点 計算機では記憶データにキー(KEY)を付しておき、
データ読取りに当ってはキーを示し、該キーが記憶デー
タに付されているキーに一致すれば当該データ読取りを
許可するという方式をとって記憶データの保護を図るこ
とが行なわれている。
Conventional technology and problems In calculators, a key (KEY) is attached to the stored data.
In order to protect stored data, a key is indicated when reading data, and if the key matches a key attached to the stored data, reading of the data is permitted.

また仮想記憶方式をとる計算機ではTLB(Table
 Lookaside Buffer)を備え、データ
読取りに当って該TLBで論理(ロジカル)アドレスを
実(リアル)アドレスに変換してその実アドレスで主記
憶(Main Storage)等をアクセスする。こ
のTLBを持つ計算機はリアルモードでも動作でき、こ
の場合は論理アドレス−実アドレスであって、TLBは
本来目的に対しては休止となる。
In addition, in computers that use virtual memory, TLB (Table
When reading data, the TLB converts a logical address into a real address, and the real address is used to access the main storage. A computer having this TLB can also operate in real mode, in which case it is a logical address-real address, and the TLB is inactive for its original purpose.

また計算機には、バッファスト−レンジ(BS)を備え
、主記憶を続出したときその読出しデータをBSへも保
管し、その後同じデータに対して読出し要求があると、
主記憶をアクセスすることなくBSより当該データを供
給する、という方式をとるものがある。この場合主記憶
に対してはブロック フェッチを行ない、BSへはフェ
ッチしたブロックを格納し、該ブロックには主記憶上の
位置を示すタグ(T A G)を付してそのタグをTA
Gメモリに保管するという方式をとる。このようにする
とTAGメモリを見て当該データがバッファストーレッ
ジBSにあるか否か判断することができる。
In addition, the computer is equipped with a buffer storage (BS), so that when the main memory is accessed one after another, the read data is also stored in the BS, and when there is a subsequent read request for the same data,
Some systems use a system in which the data is supplied from the BS without accessing the main memory. In this case, a block fetch is performed to the main memory, the fetched block is stored in the BS, a tag (TAG) indicating the location on the main memory is attached to the block, and the tag is TA
The method is to store it in G memory. In this way, it is possible to determine whether the data is in the buffer storage BS by looking at the TAG memory.

本発明はか\るバッファメモリBS、テーブルバッファ
TLB、およびタグメモリを持ち、記憶保護を行なう計
算機に係る。か\る計算機ではキーをTLBに付加して
おくのが普通である。即ちキーストーレッジ(K S)
を設け、TLBに論理アドレスに対する実アドレスを格
納する際、その実アドレスに対するキーをKSより読出
して該キーも一緒に格納しておく。しかしこの従来方式
ではメモリアクセス時にTLBがノンヒツトであればキ
ーストーレッジKSをアクセスして当該アクセスアドレ
スに対するキーを得てキー照合(プロテクションチェッ
ク)を行なわざるを得ない。ロジカルモードなら、TL
Bノンヒツトなら主記憶のアドレス変換テーブルを引く
などの直接アドレス変換処理に入らざるを得ず、この際
KSもアクセスするのでカミる処理は不可避的であるが
、リアルモードなら、所望データがバッファストーレッ
ジにある場合もあり、これはタグメモリで分るから、キ
ーストーレッジをアクセスしなくてもプロテクションチ
ェックが可能であるはずである。
The present invention relates to a computer that has such a buffer memory BS, table buffer TLB, and tag memory and performs storage protection. In such computers, it is common to add the key to the TLB. That is, key storage (KS)
When a real address corresponding to a logical address is stored in the TLB, a key for the real address is read from the KS and stored together with the key. However, in this conventional method, if the TLB is non-hit during memory access, the key storage KS must be accessed to obtain the key for the access address and key verification (protection check) must be performed. In logical mode, TL
If there is a B non-hit, direct address conversion processing such as retrieving the address conversion table in the main memory must be started, and since the KS is also accessed at this time, some processing is unavoidable, but in real mode, the desired data is stored in the buffer storage. This can be determined from the tag memory, so it should be possible to check the protection without accessing the key storage.

発明の目的 本発明はか\る点に着目するものであって、プロテクシ
ョンチェックを可及的に速やかに行なおうとするもので
ある。
OBJECTS OF THE INVENTION The present invention focuses on these points and attempts to perform a protection check as quickly as possible.

発明の構成 本発明は、論理/実アドレス変換用のテーブルバッファ
、読出した主記憶データのコピーを格納するバッファス
ト−レンジ及びそのタグメモリを備える計算機の記憶保
護方式において、データ保護用のキーをテーブルバッフ
ァだけでなくタグメモリにも格納しておき、リアルモー
ト′でのアクセス特にテーブルバッファがノンヒントな
らタグメモリをアクセスし、ヒツトして当該キーが読出
せたらそれによりプロテクションチェックを行なうこと
を特徴とするが、次に実施例を参照しながらこれを説明
する。
Structure of the Invention The present invention provides a data protection key in a storage protection system for a computer equipped with a table buffer for logical/real address conversion, a buffer storage range for storing a copy of read main memory data, and its tag memory. It is stored not only in the table buffer but also in the tag memory, and when accessed in real remote mode, especially if the table buffer is non-hint, the tag memory is accessed, and if the key is hit and read, a protection check is performed. Next, this will be explained with reference to examples.

発明の実施例 図面は本発明の実施例を示し、TLB、 KS、 BS
は前述のテーブルバッファ、キースト−レンジ、バッフ
ァメモリであり、そしてTMはタグメモリである。AR
はアドレスレジスタ、CI、C2はコンパレータ、Pc
t、PO2はプロテクションチェッカー、01〜G3は
ゲートである。本発明ではタグメモリTMにもキーを書
込み、このキーによるプロテクションチェック用回路C
2,G2゜PO2を設けた点が従来と異なる。
Embodiments of the invention The drawings show embodiments of the invention, TLB, KS, BS
are the aforementioned table buffer, key storage range, and buffer memory, and TM is the tag memory. A.R.
is the address register, CI, C2 is the comparator, Pc
t and PO2 are protection checkers, and 01 to G3 are gates. In the present invention, a key is also written in the tag memory TM, and a protection check circuit C using this key is written.
2. It differs from the conventional model in that G2°PO2 is provided.

ロジカルモードでのメモリアクセス時にはアドレスレジ
スタARに論理アドレスがセットされ、その一部(アド
レス部であって、残部はデータ)がテーブルバッファT
LBをアクセスし、実アドレスRAを読出す。この実ア
ドレスRAがゲートG1を通ってタグメモリTMをアク
セスしまた図示しないが該実アドレスがメモリアクセス
用アドレスとなってBS等をアクセスする。またこのと
きキーがレジスタKRにセントされ、TLBから読み出
されたキーとチェッカーPCIで照合され、一致してお
ればアクセス可の信号がオアゲートG3を通して出力さ
れる。
When accessing memory in logical mode, a logical address is set in the address register AR, and part of it (the address part, the rest is data) is stored in the table buffer T.
Access LB and read real address RA. This real address RA passes through the gate G1 to access the tag memory TM, and although not shown, the real address serves as a memory access address to access the BS and the like. At this time, the key is also sent to the register KR, and compared with the key read from the TLB by the checker PCI, and if they match, a signal indicating access is outputted through the OR gate G3.

テーブルバッファTLBに該当実アドレスRAがない場
合はアドレス例外となり、DAT (直接アドレス変換
)に移る。
If the corresponding real address RA does not exist in the table buffer TLB, an address exception occurs and the process moves to DAT (direct address translation).

リアルモードではアドレスレジスタARに実アドレスが
セットされる。該実アドレスの一部(アドレス部)はテ
ーブルバッファTLBをアクセスし、リアルアドレスR
A及びキーKEYを読出す。
In real mode, a real address is set in address register AR. A part of the real address (address part) accesses the table buffer TLB and stores the real address R.
Read A and key KEY.

このリアルアドレスRAは(TLBに存在するなら)レ
ジスタARにセットされたアドレスと同じものであり、
コンパレータC1はこれらを比較して一致(ヒント)を
示す出力Hを生じ、この出力HはチェッカPctをアク
ティブにして上述のプロテクションチェックを行なわせ
る。また図示しないがTLBから読出した実アドレスR
Aが主記憶等アクセス用アドレスとなり、該主記憶等を
アクセスする。
This real address RA is the same as the address set in register AR (if it exists in TLB),
Comparator C1 compares these and produces an output H indicating a match (hint), which activates checker Pct to perform the protection check described above. Although not shown, the real address R read from the TLB
A is the address for accessing the main memory, etc., and the main memory, etc. is accessed.

リアルモードでアドレスレジスタARにセットされたア
ドレス(実アドレス)に対する実アドレスがテーブルバ
ッファTLBに存在しないときはコンベアC1で一致が
とれず、この場合はノンヒント出力NHが生じ、アント
ゲ−)G2が開く。
When the real address corresponding to the address (real address) set in the address register AR in real mode does not exist in the table buffer TLB, a match cannot be made on the conveyor C1, and in this case, a non-hint output NH is generated and the ant game) G2 is opened. .

またリアルモードでは論理/実切換信号L/Rによりゲ
ートG1はアドレスレジスタAR側に切換っており、ア
ドレスレジスタARにセ・ノドされたアドレス(実アド
レス)がタグメモリTM及びコンパレータC2に入力す
る。これにより、該アドレスのデータがバッファスト−
レンジBSにあれば、タグメモリTMからそのアドレス
RAとキーKEYが読み出され、前者はコンパレータC
2へ後者は第2のパリティチェッカPC2へ入力される
。このタグメモリTMから読出した実アドレスRAとア
ドレスレジスタARにセットされた実アドレスとは等し
いはずであり、従ってコンパレータC2はヒント出力H
を生じ、この時アンドゲートG2は開いているからチェ
ッカPC2がアクティブにされ、レジスタKRのキーと
タグメモリTMからのキーが該チェッカPC2で比較さ
れ、一致しておればアクセス可の信号がオアゲートG3
を通して出力される。タグメモリTMにも該当アドレス
RAがなければ一致はとれず、コンパレータC2はノン
ヒツト出力NHを生じる。またチェッカPC2で一致が
とれなければアクセス可の信号は出力されず、当該アク
セスは禁止される。
Furthermore, in real mode, the gate G1 is switched to the address register AR side by the logic/real switching signal L/R, and the address (real address) input to the address register AR is input to the tag memory TM and comparator C2. . This causes the data at that address to be stored in the buffer.
If it is in range BS, its address RA and key KEY are read out from tag memory TM, and the former is read out from comparator C.
The latter is input to the second parity checker PC2. The real address RA read from the tag memory TM and the real address set in the address register AR should be equal, so the comparator C2 outputs the hint output H.
Since the AND gate G2 is open at this time, the checker PC2 is activated, and the key of the register KR and the key from the tag memory TM are compared by the checker PC2, and if they match, an access permission signal is sent to the OR gate. G3
is output through. If there is no corresponding address RA in the tag memory TM, a match cannot be achieved, and the comparator C2 produces a non-hit output NH. Further, if the checker PC 2 does not find a match, the access permission signal is not output, and the access is prohibited.

このようにすれば、リアルモード時、TLBにはないが
タグメモリTMにはあるアドレスに対するプロテクショ
ンチェックはKSをアクセスすることなく実行でき、該
プロテクションチェックを迅速化することができる。
In this way, in the real mode, a protection check for an address that is not in the TLB but is in the tag memory TM can be executed without accessing the KS, and the protection check can be speeded up.

発明の詳細 な説明したように本発明ではテーブルバッファTLBと
タグメモリTMの両方にキーストーレッジKSのキーの
コピーを持たせたので、リアルモード時におけるプロテ
クションチェックをTLBがノンヒツトであってもTM
がヒントすればTM内のキーをプロテクションチェック
を行なうことができ、プロテクションチェックの高速化
を可能とすることができる。
As described in detail, in the present invention, both the table buffer TLB and the tag memory TM have a copy of the key in the key storage KS, so that the protection check in the real mode can be performed even if the TLB is non-hit.
If given a hint, it is possible to perform a protection check on the keys in the TM, and it is possible to speed up the protection check.

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

図面は本発明の実施例を示すブロック図である。 図でTLBはテーブルバッフ1、BSはパンファスト−
レンジ、TMはタグメモリ、PCIはプロテクションチ
ェッカである。 出願人 富士通株式会社 代理人弁理士 青 柳 稔
The drawing is a block diagram showing an embodiment of the invention. In the figure, TLB is table buffer 1, BS is pan fast-
Range, TM is tag memory, and PCI is protection checker. Applicant Fujitsu Limited Representative Patent Attorney Minoru Aoyagi

Claims (1)

【特許請求の範囲】 論理/実アドレス変換用のテーブルバッファ、読出した
主記憶データのコピーを格納するバッファストーレッジ
及びそのタグメモリを備える計算機の記憶保護方式にお
いて、 データ保護用のキーをテーブルバッファだけでなくタグ
メモリにも格納しておき、 リアルモードでのアクセス時にテーブルバッファがノン
ヒントならタグメモリをアクセスし、ヒツトして当該キ
ーが読出せたらそれによりプロテクションチェックを行
なうことを特徴とする記憶保護方式。
[Claims] In a storage protection system for a computer equipped with a table buffer for logical/real address conversion, a buffer storage for storing a copy of read main memory data, and its tag memory, the key for data protection is provided only in the table buffer. This memory protection method is characterized in that the key is stored in the tag memory as well, and when the table buffer is accessed in real mode, if the table buffer is non-hint, the tag memory is accessed, and when the key is hit and the key can be read, a protection check is performed accordingly. method.
JP59085394A 1984-04-27 1984-04-27 Storage protecting system Pending JPS60230249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59085394A JPS60230249A (en) 1984-04-27 1984-04-27 Storage protecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59085394A JPS60230249A (en) 1984-04-27 1984-04-27 Storage protecting system

Publications (1)

Publication Number Publication Date
JPS60230249A true JPS60230249A (en) 1985-11-15

Family

ID=13857551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59085394A Pending JPS60230249A (en) 1984-04-27 1984-04-27 Storage protecting system

Country Status (1)

Country Link
JP (1) JPS60230249A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0695972A (en) * 1992-05-15 1994-04-08 Internatl Business Mach Corp <Ibm> Digital computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0695972A (en) * 1992-05-15 1994-04-08 Internatl Business Mach Corp <Ibm> Digital computer system

Similar Documents

Publication Publication Date Title
US4890223A (en) Paged memory management unit which evaluates access permissions when creating translator
US4937738A (en) Data processing system which selectively bypasses a cache memory in fetching information based upon bit information of an instruction
JPS59180767A (en) Serializer
US6507897B2 (en) Memory paging control apparatus
JPH01502939A (en) General purpose processor unit for digital data processing systems including read buffer management mechanism
US5530823A (en) Hit enhancement circuit for page-table-look-aside-buffer
JPH0814801B2 (en) Programmable access memory
JPH01503011A (en) General purpose processor unit for digital data processing systems including cash management systems
US6363460B1 (en) Memory paging control method
US6519684B1 (en) Low overhead method for selecting and updating an entry in a cache memory
US5530839A (en) Apparatus for checking access rights
JP2005512192A (en) How to synchronize cache memory with main memory
JPS60230249A (en) Storage protecting system
JP3997404B2 (en) Cache memory and control method thereof
JPH0695967A (en) Data processor
JP3030037B2 (en) Main storage device
JPH02254553A (en) Information processor
JPS5922315B2 (en) Buffer memory control method
JP2927072B2 (en) Access right inspection device
JP2641319B2 (en) Address translation buffer clear method
JP2703255B2 (en) Cache memory writing device
JPH04133147A (en) Address conversion buffer clear system
JPS55117780A (en) Buffer memory unit
JP3047992B2 (en) Main memory key control method
JPH05210586A (en) Cache memory control circuit