JPS63271553A - Information processor - Google Patents

Information processor

Info

Publication number
JPS63271553A
JPS63271553A JP10582287A JP10582287A JPS63271553A JP S63271553 A JPS63271553 A JP S63271553A JP 10582287 A JP10582287 A JP 10582287A JP 10582287 A JP10582287 A JP 10582287A JP S63271553 A JPS63271553 A JP S63271553A
Authority
JP
Japan
Prior art keywords
register
privileged
information
instruction
level
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
JP10582287A
Other languages
Japanese (ja)
Inventor
Hitoshi Yamahata
山畑 均
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP10582287A priority Critical patent/JPS63271553A/en
Publication of JPS63271553A publication Critical patent/JPS63271553A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To improve the processing speed of an information processor without any unnecessary increase in hardware by comparing register number information with working register information and generating information for privilege exception detection when execution level information indicates an instruction of non-privileged level. CONSTITUTION:For example, a source-side operand is a register operand, a register R1 is specified, and a value (m) is held as a register number 105. A source-side comparator 106 compares the both and outputs 1 when m<=1. An SROP signal 101 is 1 and the output of a source-side mask gate 108A is 1 so that the source-side operand is the register operand. The output of an OR gate 111 is therefore 1. When a privileged level signal 112 is 0, namely, when a program is being executed at non-privileged level, an AND gate 114 outputs 1 and the privilege exception signal 115 becomes 1 for an instruction execution part 203, so that a privilege exception is detected. Consequently, the processing speed is improved without any increase in hardware.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は情報処理装置に係り、特に情報処理装置に含ま
れる中央処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to a central processing unit included in the information processing device.

[従来の技術] 従来、この種の情報処理装置は一般の非特権レベルのプ
ログラムの実行で使用する汎用レジスタ群と特権レベル
のプログラムの実行でのみ使用可能な特権レジスタ群と
の2種類のレジスタ群を持っていた。これらの特権レジ
スタ群は中央処理装置のハードウェアに関連した特殊な
用途に供されるレジスタのみしか持たず、汎用レジスタ
群のように任意のデータ値を保持したり、演算の対象と
したりすることができ′なかった。
[Prior Art] Conventionally, this type of information processing device has two types of registers: a general-purpose register group used when executing a general non-privileged level program, and a privileged register group that can be used only when executing a privileged level program. had a swarm. These privileged register groups only have registers for special purposes related to the hardware of the central processing unit, and cannot hold arbitrary data values or be used for calculations like general-purpose register groups. I couldn't do it.

また、このような特殊な用途に供されるレジスタに対し
ては特別な特権命令を用いてしか値の参照や値の変更が
できないようにされており、非特権レベルのプログラム
実行中に値の参照や変更がなされるのを防いでいた。
In addition, the values of registers used for such special purposes can only be referenced or changed using special privileged instructions, and the values cannot be changed during execution of a non-privileged level program. Preventing it from being referenced or modified.

[発明が解決しようとする問題点コ 上述した従来の情報処理装置は中央処理装置のハードウ
ェアに関連した特権レジスタ群しか有しておらず、オペ
レイティングシステムを含むソフトウェアの実行で特権
的に使用される作業用の特権レジスタは準備されていな
かった。これはオペレーティングシステムでさえもソフ
トウェアであるので、使用されるオペレーティングシス
テムが異なると必要とされる作業用特権レジスタの数も
異なり、予め準備すべき作業用特権レジスタの個数を決
定できないためである。かかる使用されるオペレイティ
ングシステムの相違を考慮して多数の作業用特権レジス
タを準備すると、作業用特権レジスタは特権レベルでし
か使用できないため使用頻度の低い多数のレジスタを有
することなり、不必要なハードウェアの増加を招くとい
う問題点が生じる。
[Problems to be Solved by the Invention] The above-mentioned conventional information processing devices only have a group of privileged registers related to the hardware of the central processing unit, and are used privilegedly when executing software including the operating system. No privileged register was prepared for the work to be done. This is because even the operating system is software, and the number of working privilege registers required differs depending on the operating system used, and the number of working privilege registers to be prepared cannot be determined in advance. If a large number of working privileged registers are prepared in consideration of the differences in the operating systems used, the working privileged registers can only be used at the privileged level, resulting in a large number of registers that are used infrequently. A problem arises in that the amount of hardware increases.

一方、従来例のように、作業用の特権レジスタをいっさ
い準備せずオペレーティングシステムの作業データはす
べて外部メモリ上に保持するようにすると、割り込み処
理のように高速で実行しなければならない処理において
外部メモリとの間でデータの転送が必要になり、情報処
理装置の処理速度が低下してしまうという問題点が生じ
る。
On the other hand, if all the working data of the operating system is held in external memory without preparing any privileged registers for work, as in the conventional example, the external Since data must be transferred to and from the memory, a problem arises in that the processing speed of the information processing device is reduced.

それで、本発明の目的は不必要なハードウェアの増加を
伴わず処理速度を向上させた情報処理装置を提供するこ
とである。
Therefore, an object of the present invention is to provide an information processing apparatus that improves processing speed without unnecessary increase in hardware.

E問題点を解決するための手段および作用コ本発明の情
報処理装置は非特権レベルと特権レベルとの少なくとも
2以上の実行レベルを有し、複数の汎用レジスタと、該
複数の汎用レジスタのいずれかをオペランドとして指定
する命令を含む複数の命令を順次デコードしオペランド
として指定された汎用レジスタを示すレジスタ番号情報
と非特権レベルの命令か特権レベルの命令かを示す実行
レベル情報とを含むデコード情報を形成する命令デコー
ダとを備えた情報処理装置において、特権レベルの命令
でのみアクセス可能であり、上記複数の汎用レジスタの
うち特権レベルの命令の実行時に作業用レジスタとして
使用する汎用レジスタは特定する作業用レジスタ情報を
保持するレジスタ番号レジスタと、上記デコード情報に
含まれるレジスタ番号情報と上記作業用レジスタ情報と
を比較して実行レベル情報が非特権レベルの命令である
ことを示しているときに特権例外検出用情報を形成する
比較手段とを備えたことを特徴としている。
Means and Effects for Solving Problem E The information processing device of the present invention has at least two or more execution levels, a non-privileged level and a privileged level, and has a plurality of general-purpose registers and one of the plurality of general-purpose registers. decode information including register number information indicating the general-purpose register specified as the operand and execution level information indicating whether the instruction is a non-privileged level instruction or a privileged level instruction. In an information processing device equipped with an instruction decoder that forms an instruction decoder, a general-purpose register that can be accessed only by a privileged-level instruction and is used as a working register among the plurality of general-purpose registers when executing a privileged-level instruction is specified. When the register number register that holds working register information is compared with the register number information included in the decoding information and the working register information, and the execution level information indicates that the instruction is a non-privileged level instruction. The present invention is characterized by comprising a comparison means for forming privileged exception detection information.

したがって、本発明に係る情報処理装置では、特権レベ
ルの命令でレジスタ番号レジスタの作業用レジスタ情報
を変更することにより、複数の汎用レジスタのうちから
特権レベルの命令実行時に作業用レジスタとして使用す
る汎用レジスタを分別することができ、以後の命令実行
時に作業用レジスタ情報とレジスタ番号情報とを比較手
段で比較することにより特権例外検出用情報を形成する
ことができる。
Therefore, in the information processing device according to the present invention, by changing the work register information of the register number register with a privileged level instruction, a general purpose register is selected from a plurality of general purpose registers to be used as a working register when executing a privileged level instruction. Registers can be separated, and privileged exception detection information can be formed by comparing working register information and register number information using a comparing means during subsequent instruction execution.

換言すれば、上述した従来の情報処理装置に対し本発明
は汎用レジスタと作業用特権レジスタを同一ハードウェ
アとして持ち、例えばその境界にあたるレジスタの番号
を特権レジスタに持つことで汎用レジスタ領域から作業
用特権レジスタ領域を分別して使用できるという独創的
内容を有する。
In other words, in contrast to the conventional information processing device described above, the present invention has a general-purpose register and a working privileged register as the same hardware, and for example, by having the number of the register corresponding to the boundary in the privileged register, the working register can be accessed from the general-purpose register area. It has an original content in that the privileged register area can be used separately.

[実施例] 産土災庶] 次に本発明の実施例について図面を参照して説明する。[Example] Land disaster] Next, embodiments of the present invention will be described with reference to the drawings.

第2図は本発明による情報処理装置の全体構成を示すブ
ロック図である。命令デコーダ201でデコードされた
命令はデコード情報202として命令実行部203に供
給され、該デコード情報に基づき命令が実行される。命
令実行部203は汎用レジスタ群204を有している。
FIG. 2 is a block diagram showing the overall configuration of an information processing apparatus according to the present invention. The instructions decoded by the instruction decoder 201 are supplied as decode information 202 to the instruction execution unit 203, and the instructions are executed based on the decode information. The instruction execution unit 203 has a general-purpose register group 204.

本情報処理装置では汎用レジスタ群204がn本の汎用
レジスタを含んでおり、各々の汎用レジスタはRO〜R
Nと呼ぶことにする。
In this information processing device, the general-purpose register group 204 includes n general-purpose registers, and each general-purpose register is RO to R.
I'll call it N.

第1図は本発明の第1実施例を示すブロック図であり、
第2図における命令実行部203の内部構成の内の本発
明の特徴となる特権例外を検出する部分を示している。
FIG. 1 is a block diagram showing a first embodiment of the present invention,
2 shows a portion of the internal configuration of the instruction execution unit 203 in FIG. 2 that detects a privileged exception, which is a feature of the present invention.

命令デコーダ201から供給されるデコード情報202
には、命令のソース側オペランドがレジスタであること
を示すソースレジスタオペランド信号(以後5ROP信
号と呼ぶ)101とソース側レジスタ番号情報102が
含まれており、デスティネーション側オペランドについ
ても同様にデスティネーションレジスタオペランド信号
(以後DROP信号と呼ぶ)103とデスティネーショ
ン側レジスタ番号情報104が含まれている。105は
レジスタ番号レジスタであり、特権命令でのみ値の変更
が可能である。
Decode information 202 supplied from instruction decoder 201
includes a source register operand signal (hereinafter referred to as 5ROP signal) 101 indicating that the source operand of the instruction is a register, and source register number information 102, and similarly for the destination operand. It includes a register operand signal (hereinafter referred to as a DROP signal) 103 and destination side register number information 104. 105 is a register number register, the value of which can be changed only by a privileged instruction.

106はソース側比較器、107はデスティネーション
側比較器であり、これらの比較器106゜107はレジ
スタ番号レジスタ105に保持されている値をm、レジ
スタ番号情報102,104の値を1とすると、m≦1
のときに出力信号「1」を出力する。ソース側マスクゲ
ート108A、デスティネーション側マスクゲート10
9はアンドゲートでそれぞれ構成されており、それぞれ
5ROP信号101とDROP信号103が「1」のと
きに、比較器106と107の出力を次段のオアゲート
111に伝える。
106 is a source side comparator, 107 is a destination side comparator, and these comparators 106 and 107 have the following values: m, the value held in the register number register 105, and the values of the register number information 102, 104, 1. , m≦1
Outputs an output signal "1" when . Source side mask gate 108A, destination side mask gate 10
9 is composed of an AND gate, and when the 5 ROP signal 101 and the DROP signal 103 are "1", the outputs of the comparators 106 and 107 are transmitted to the OR gate 111 of the next stage.

デコード情報202内の特権命令信号110は命令デコ
ーダ201て一特権命令がデコードされた時に「1」と
なる。オアゲート111はソース側マスクゲート108
Aとデスティネーション側マスクゲート109の出力と
特権命令信号110を論理和する。特権レベル信号には
、命令実行部203が特権レベルの処理を実行するとき
に「1」となる。ノットゲート113は特権レベル信号
112を反転する。アンドゲート114はオアゲート1
11とノットゲート113の出力とに基づき、特権例外
信号115を作り命令実行部203へ通知する。
The privileged instruction signal 110 in the decode information 202 becomes "1" when the instruction decoder 201 decodes a single privileged instruction. The OR gate 111 is the source side mask gate 108
A, the output of the destination side mask gate 109, and the privileged command signal 110 are logically summed. The privilege level signal becomes "1" when the instruction execution unit 203 executes privilege level processing. Not gate 113 inverts privilege level signal 112. AND gate 114 is OR gate 1
11 and the output of the NOT gate 113, a privileged exception signal 115 is generated and notified to the instruction execution unit 203.

次に作用を説明する。ソース側オペランドがレジスタオ
ペランドであり、レジスタR1が指定され、レジスタ番
号105には値mが保持されているとする。ソース側比
較器106により両者が比較され、m≦1のときソース
側比較器106の出力はrlJとなる。ソース側オペラ
ンドがレジスタオペランドであるため5HOP信号10
1は「1」てあり、ソース側マスクゲート108Aの出
力は「1」となる。したがって、オアゲート111の出
力も「1」となる。特権レベル信号112が「0」、す
なわち非特権レベルでプログラム実行中であると、アン
ドゲート114の出力が「1」となるため、命令実行部
203に対し特権例外信号115が「1」となって特権
例外が検出される。
Next, the effect will be explained. Assume that the source side operand is a register operand, register R1 is specified, and register number 105 holds a value m. The source side comparator 106 compares the two, and when m≦1, the output of the source side comparator 106 becomes rlJ. Since the source side operand is a register operand, 5HOP signal 10
1 is "1", and the output of the source side mask gate 108A is "1". Therefore, the output of OR gate 111 also becomes "1". When the privilege level signal 112 is "0", that is, the program is being executed at a non-privileged level, the output of the AND gate 114 becomes "1", and therefore the privileged exception signal 115 becomes "1" to the instruction execution unit 203. A privileged exception is detected.

デスティネーション側レジスタ番号についても同様にし
て特権例外が検出される。また従来の情報処理装置のよ
うに非特権レベルで特権命令を使用しようとした時(例
えばレジスタ番号レジスタ105を更新する特権命令が
デコードされた時)には、特権命令信号110が「1」
で、特権レベル信号112が「0」となり、アンドゲー
ト114により、特権例外信号115が「1」となるこ
とで特権例外が検出される。
A privileged exception is detected in the same manner for the destination register number. Furthermore, when attempting to use a privileged instruction at a non-privileged level as in a conventional information processing device (for example, when a privileged instruction to update the register number register 105 is decoded), the privileged instruction signal 110 becomes "1".
Then, the privilege level signal 112 becomes "0", and the AND gate 114 causes the privilege exception signal 115 to become "1", whereby a privilege exception is detected.

レジスタ番号レジスタ105に保持される値mの最大値
を汎用レジスタ204の本数nよりも大きくしておくこ
とにより、n<mのときには汎用レジスタROからRn
までのすべてを非特権で使用することができる。
By setting the maximum value m held in the register number register 105 to be larger than the number n of general-purpose registers 204, when n
Everything up to and including can be used unprivileged.

策λ2光胴 第3図は本発明の第2実施例を示すブロック図である。Plan λ2 light body FIG. 3 is a block diagram showing a second embodiment of the present invention.

第3図は、第1図に示された第1実施例の特権例外検出
部分の内のソースレジスタオペランド側の特権例外検出
部に相当する部分を示している。
FIG. 3 shows a portion corresponding to the privileged exception detection section on the source register operand side of the privileged exception detection section of the first embodiment shown in FIG.

第3図に示す情報処理装置は複数の実行レベルを有して
いる。301はにビットの実行レベル信号であり、レベ
ルOからレベル(2に−1)まで2に種類の実行レベル
を指定でき、レベル0を特権しベルとしてレベルの数値
が大きい程、特権レベルが低い。レジスタ番号レジスタ
105は、それぞれ1ビツトのリードフィールド302
、ライトフィールド303と、Kビットのアクセスレベ
ルフィールド304と、第1図と同様なレジスタ番号フ
ィールド305からなる。306は実行レベル比較器を
示しており、実行レベル信号301の値ELとアクセス
レベルフィールド304の値ALとを比較してEL>A
Lのとき出力が「1」となる。ソース側比較器106は
第1図と同様に、レジスタ番号フィールド305の値m
とソース側レジスタ番号情報102の値lとを比較して
、m≦lのとき出力が「1」となる。第1図に示した命
令デコーダ201からは新たにソース側オペランドがリ
ードオペランドであることを示すソースリードオペラン
ド信号307と、ライトオペランドであることを示すソ
ースライトオペランド信号308とがある。アンドゲー
ト309はリードフィールド302とソースリードオペ
ランド信号307どの論理積を出力する。
The information processing apparatus shown in FIG. 3 has a plurality of execution levels. 301 is a bit execution level signal, and 2 types of execution levels can be specified from level O to level (2 to 1), level 0 is privileged and the higher the level value, the lower the privilege level. . Each register number register 105 has a 1-bit read field 302.
, a light field 303, a K-bit access level field 304, and a register number field 305 similar to that shown in FIG. Reference numeral 306 indicates an execution level comparator, which compares the value EL of the execution level signal 301 and the value AL of the access level field 304 and determines that EL>A.
When it is L, the output becomes "1". The source side comparator 106 similarly to FIG.
and the value l of the source side register number information 102, and when m≦l, the output becomes “1”. The instruction decoder 201 shown in FIG. 1 newly generates a source read operand signal 307 indicating that the source side operand is a read operand, and a source write operand signal 308 indicating that the source side operand is a write operand. AND gate 309 outputs the logical product of read field 302 and source read operand signal 307.

同様にアンドゲート310はライトフィールド303と
ソースライトオペランド信号308との論理積を出力す
る。オアゲート311はアントゲ−)309の出力と3
10の出力との論理和を出力して、アクセス一致信号3
12を形成する。ソース側マスクゲート108Bは、ア
クセス一致信号312と、実行レベル比較器306の出
力とソース側比較器106の出力とソースレジスタオペ
ランド信号101との論理積を出力してソース側特権例
外信号313を形成する。デスティネーション側オペラ
ンドについても同様の回路によりデスティネーション側
特権例外信号314が作られ、オアゲート315によっ
て特権例外信号115が作られる。
Similarly, the AND gate 310 outputs the AND of the light field 303 and the source write operand signal 308. OR gate 311 is ant game) 309 output and 3
The logical sum with the output of 10 is output, and the access match signal 3 is output.
form 12. The source side mask gate 108B outputs the AND of the access match signal 312, the output of the execution level comparator 306, the output of the source side comparator 106, and the source register operand signal 101 to form the source side privileged exception signal 313. do. For the destination operand, a destination side privileged exception signal 314 is generated by a similar circuit, and a privileged exception signal 115 is generated by an OR gate 315.

実行レベル比較器306によって実行レベルELとアク
セスレベルフィールド304の値ALとが、EL>AL
のとき、すなわち現在の実行レベルがアクセスレベルフ
ィールド304の値に比べて低い特権レベルのときで、
かつ、ソース側レジスタ番号情報102の値1とレジス
タ番号フィールド304の値mがm≦1のときに、さら
にリードフィールド302、ライトフィールド303と
ソースリードオペランド信号307とソースライトオペ
ランド信号308とによってアクセスの種類が一致し、
ソース側レジスタオペランド信号101が「1」である
場合にソース側特権例外信号313が「1」となってソ
ース側レジスタオペランドが特権例外を起こしているこ
とが検出される。
The execution level comparator 306 determines whether the execution level EL and the value AL of the access level field 304 are EL>AL.
, that is, when the current execution level is a lower privilege level than the value of the access level field 304,
Further, when the value 1 of the source side register number information 102 and the value m of the register number field 304 are m≦1, access is further performed by the read field 302, the write field 303, the source read operand signal 307, and the source write operand signal 308. The type of matches,
When the source side register operand signal 101 is "1", the source side privileged exception signal 313 becomes "1", and it is detected that the source side register operand is causing a privileged exception.

換言すれば特定の汎用レジスタ領域を特定の実行レベル
より低いレベルでは読み出しや書き込みができないよう
にすることができる。第3図ではソース側特権例外検出
についてのみ示したがデスティネーション側についても
同様の回路が適用できる。さらにソース側、デスティネ
ーション側に第3図に示した回路をレジスタ番号レジス
タ105をも含めて複数組持つことで汎用レジスタを実
行レベルに応じて段階的に特権性を持たせることも゛で
きる。例えば第3図の回路をソース側に2組持てば汎用
レジスタRO−Rnを0≦m2≦nの3領域に分けてR
OからRnへと特権性を高くしておくことができる。
In other words, it is possible to prevent a specific general-purpose register area from being read or written at a level lower than a specific execution level. Although FIG. 3 shows only source side privileged exception detection, a similar circuit can be applied to the destination side as well. Furthermore, by having a plurality of sets of the circuits shown in FIG. 3 on the source side and the destination side, including the register number register 105, it is possible to give privileges to the general-purpose registers in stages according to the execution level. For example, if you have two sets of the circuits shown in Figure 3 on the source side, you can divide the general-purpose registers RO-Rn into three areas, 0≦m2≦n, and R
The privilege level can be increased from O to Rn.

[発明の効果] 以上説明したように本発明では、従来の情報処理装置が
持つことができなかった作業用特権レジスタを専用レジ
スタを準備することなく持つことができる上に、必要と
される作業用特権レジスタの数も使用するオペレーティ
ングシステムに応じて容易に変更できる。したがって、
ハードウェアの増加なしに処理速度を向上させることが
できるという効果を有する。
[Effects of the Invention] As explained above, in the present invention, it is possible to have a working privilege register, which conventional information processing devices could not have, without preparing a dedicated register, and it is also possible to The number of privileged registers can also be easily changed depending on the operating system used. therefore,
This has the effect that processing speed can be improved without increasing hardware.

さらに、レジスタ番号を比較することにより特権例外を
検出する方式では、汎用レジスタの本数が多くなっても
、必要とされる比較器、レジスタ番号レジスタのビット
幅は少なくてすむため、少ないハードウェアの増加で容
易に実現可能であるという利点を有する。
Furthermore, with the method of detecting privileged exceptions by comparing register numbers, even if the number of general-purpose registers increases, the bit width of the required comparator and register number register is small, so it requires less hardware. It has the advantage that it can be easily realized by increasing.

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

第1図は本発明の第1実施例に係る情報処理装置におけ
る特権例外検出機構の部分を示すブロック図、 第2図は本発明の情報処理装置の全体構成を示すブロッ
ク図、 第3図は本発明の第2実施例に係る特権例外検出機構の
ソース側部分を示すブロック図である。 101−ソースレジスタオペランド信号、102−ソー
スレジスタ番号情報、 103−デスティネーションレジスタオペランド信号、 104−デスティネーションレジスタ番号情報、105
−レジスタ番号レジスタ、 106−ソース側比較器、 107−デスティネーション側比較器、108A、10
8B−ソース側マスクゲート、109−ディスティネー
ション側マスクゲート、11〇−特権命令信号、 111−オアゲート、 112−特権レベル信号、 113−ノットゲート、 114−アンドゲート、 115−特権例外信号、 201−命令デコーダ、 202−デコード情報、 203−命令実行部、 204−汎用レジスタ、 301−実行レベル信号、 302−リードフィールド、 303−ライトフィールド、 304−アクセスレベルフィールド、 305−レジスタ番号フィールド、 306−実行レベル比較器、 307−ソースリードオペランド信号、308−ソース
ライトオペランド信号、309−アンドゲート、 310−アンドゲート、 311−オアゲート、 312−アクセス一致信号、 313−ソース側特権例外信号、 314−デスティネーション側特権例外信号、315−
オアゲート。 特許出願人  日本電気株式会社 代理人 弁理士  桑 井 清 − 第2図
FIG. 1 is a block diagram showing a privileged exception detection mechanism in an information processing device according to a first embodiment of the present invention, FIG. 2 is a block diagram showing the overall configuration of the information processing device of the present invention, and FIG. FIG. 2 is a block diagram showing a source side portion of a privileged exception detection mechanism according to a second embodiment of the present invention. 101-source register operand signal, 102-source register number information, 103-destination register operand signal, 104-destination register number information, 105
- register number register, 106 - source side comparator, 107 - destination side comparator, 108A, 10
8B-Source side mask gate, 109-Destination side mask gate, 110-Privilege instruction signal, 111-OR gate, 112-Privilege level signal, 113-Not gate, 114-AND gate, 115-Privilege exception signal, 201- instruction decoder, 202-decode information, 203-instruction execution unit, 204-general-purpose register, 301-execution level signal, 302-read field, 303-write field, 304-access level field, 305-register number field, 306-execution Level comparator, 307-source read operand signal, 308-source write operand signal, 309-AND gate, 310-AND gate, 311-OR gate, 312-access match signal, 313-source side privileged exception signal, 314-destination Side privileged exception signal, 315-
Orgate. Patent applicant Kiyoshi Kuwai, agent for NEC Corporation and patent attorney - Figure 2

Claims (1)

【特許請求の範囲】 非特権レベルと特権レベルとの少なくとも2以上の実行
レベルを有し、複数の汎用レジスタと、該複数の汎用レ
ジスタのいずれかをオペランドとして指定する命令を含
む複数の命令を順次デコードしオペランドとして指定さ
れた汎用レジスタを示すレジスタ番号情報と非特権レベ
ルの命令か特権レベルの命令かを示す実行レベル情報と
を含むデコード情報を形成する命令デコーダとを備えた
情報処理装置において、 特権レベルの命令でのみアクセス可能であり、上記複数
の汎用レジスタのうち特権レベルの命令の実行時に作業
用レジスタとして使用する汎用レジスタを特定する作業
用レジスタ情報を保持するレジスタ番号レジスタと、 上記デコード情報に含まれるレジスタ番号情報と上記作
業用レジスタ情報とを比較して実行レベル情報が非特権
レベルの命令であることを示しているときに特権例外検
出用情報を形成する比較手段とを備えたことを特徴とす
る情報処理装置。
[Claims] A plurality of instructions having at least two or more execution levels, a non-privileged level and a privileged level, and including a plurality of general-purpose registers and an instruction that specifies any one of the plurality of general-purpose registers as an operand. An information processing device comprising an instruction decoder that sequentially decodes and forms decode information including register number information indicating a general-purpose register designated as an operand and execution level information indicating whether the instruction is a non-privileged level instruction or a privileged level instruction. , a register number register that can be accessed only by a privileged level instruction and holds work register information that identifies a general register that is used as a working register when executing a privileged level instruction among the plurality of general purpose registers; Comparing means for comparing the register number information included in the decoding information and the working register information to form privileged exception detection information when the execution level information indicates that the instruction is a non-privileged level instruction. An information processing device characterized by:
JP10582287A 1987-04-28 1987-04-28 Information processor Pending JPS63271553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10582287A JPS63271553A (en) 1987-04-28 1987-04-28 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10582287A JPS63271553A (en) 1987-04-28 1987-04-28 Information processor

Publications (1)

Publication Number Publication Date
JPS63271553A true JPS63271553A (en) 1988-11-09

Family

ID=14417757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10582287A Pending JPS63271553A (en) 1987-04-28 1987-04-28 Information processor

Country Status (1)

Country Link
JP (1) JPS63271553A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5056013A (en) * 1988-11-14 1991-10-08 Nec Corporation In-circuit emulator
EP1621999A1 (en) 2004-07-26 2006-02-01 Fujitsu Limited Data processing apparatus using a register window method and data transmission control method for said apparatus
JP2011008760A (en) * 2009-05-22 2011-01-13 Renesas Electronics Corp Microcomputer
KR20120098702A (en) * 2009-10-21 2012-09-05 에이알엠 리미티드 Hardware resource management within a data processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6074059A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd Access control system for storage device
JPS60128546A (en) * 1983-12-16 1985-07-09 Hitachi Ltd Main storage controller
JPS60243746A (en) * 1984-05-18 1985-12-03 Fujitsu Ltd Address control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6074059A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd Access control system for storage device
JPS60128546A (en) * 1983-12-16 1985-07-09 Hitachi Ltd Main storage controller
JPS60243746A (en) * 1984-05-18 1985-12-03 Fujitsu Ltd Address control system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5056013A (en) * 1988-11-14 1991-10-08 Nec Corporation In-circuit emulator
EP1621999A1 (en) 2004-07-26 2006-02-01 Fujitsu Limited Data processing apparatus using a register window method and data transmission control method for said apparatus
US7210027B2 (en) 2004-07-26 2007-04-24 Fujitsu Limited Processor transferring multiple working register windows transfers global registers only for select exception handling
JP2011008760A (en) * 2009-05-22 2011-01-13 Renesas Electronics Corp Microcomputer
KR20120098702A (en) * 2009-10-21 2012-09-05 에이알엠 리미티드 Hardware resource management within a data processing system
JP2013508845A (en) * 2009-10-21 2013-03-07 アーム・リミテッド Hardware resource management in data processing systems
US8949844B2 (en) 2009-10-21 2015-02-03 Arm Limited Hardware resource management within a data processing system

Similar Documents

Publication Publication Date Title
JPH01130224A (en) Exception processing system
JPS63271553A (en) Information processor
JPS6089274A (en) Vector mask control system
JP3519047B2 (en) Register bit update processing method, processor and data processing system
US20020129301A1 (en) System and method for monitoring unaligned memory accesses
JP2557629B2 (en) Interrupt method
JPS63120336A (en) Switching system for memory access mode
JPH0232663B2 (en) JOKENTSUKIHIKAKUENZANSOCHI
JPH01201751A (en) Memory protecting device
JPH052482A (en) Data processor
JP2671161B2 (en) Register interference check method
JPH01201730A (en) Information processor
JP2982181B2 (en) Central processing unit
JPS60163134A (en) Virtual computer system
JPS61131125A (en) Information processing unit
JPH04107630A (en) Central processing unit
JPS59112321A (en) Controlling method of central processing unit
JPH02278446A (en) Memory access control circuit
JPS62154166A (en) Microcomputer
JPH06139084A (en) Information processor
JPS61143850A (en) Processor
JPS6270947A (en) Control system for debug interruption
JPS59128638A (en) Protecting method of memory
JPH0198023A (en) Conditional subroutine calling system
JPS62269235A (en) Information processor