[go: up one dir, main page]

JPS61117635A - Virtual memory control method - Google Patents

Virtual memory control method

Info

Publication number
JPS61117635A
JPS61117635A JP59238872A JP23887284A JPS61117635A JP S61117635 A JPS61117635 A JP S61117635A JP 59238872 A JP59238872 A JP 59238872A JP 23887284 A JP23887284 A JP 23887284A JP S61117635 A JPS61117635 A JP S61117635A
Authority
JP
Japan
Prior art keywords
instruction
information
storage
processing
fixed area
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
JP59238872A
Other languages
Japanese (ja)
Other versions
JPH0554141B2 (en
Inventor
Nobuyoshi Sato
信義 佐藤
Hideyuki Saso
秀幸 佐相
Mitsuo Sakurai
桜井 三男
Masahiro Hitomi
政弘 一見
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 JP59238872A priority Critical patent/JPS61117635A/en
Publication of JPS61117635A publication Critical patent/JPS61117635A/en
Publication of JPH0554141B2 publication Critical patent/JPH0554141B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the processing speed by providing a dividing means which determines whether CPU information should be saved and restored to restart an instruction interruption point or an instruction should be executed again from the start when an exception of address conversion occurs. CONSTITUTION:An instruction executing part 1 is provided with an address conversion exception processing part 4, and the processing part 4 consists of an address conversion exception detecting part 5, a storage dividing part 6, etc. This dividing part 6 determines whether CPU information should be saved and restored or not in accordance with the position of the occurrence of the exception of address conversion or the number of accesses of the instruction to a main storage MS 20. A storage indication flag l22 is provided in a fixed area 21 of the MS 20, and the flag 22 is turned on if CPU information is saved and restored, and the flag 22 is turned off if this processing is omitted. Thus, the processing speed is improved to perform efficient control.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想記憶制御方式、特にマイクロプログラミン
グ制御方式を採用するデータ処理装置における仮想記憶
制御方式において、アドレス変換例外検出による命令中
断後の命令再開を、命令の種別等によって効率的に行い
得るようにした仮想記憶制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a virtual memory control method, particularly a virtual memory control method in a data processing device that employs a microprogramming control method. The present invention relates to a virtual memory control method that allows restarting to be performed efficiently depending on the type of instruction, etc.

〔従来の技術と問題点〕[Conventional technology and problems]

第5図は従来の仮想記憶制御方式による処理の例を示し
ている。
FIG. 5 shows an example of processing using a conventional virtual storage control method.

仮想記憶制御方式の場合、一般に論理アドレスから実ア
ドレスに変換を行う過程で、セグメントテーブルおよび
ページテーブルを索引し、このときテーブルの3亥当す
るエントリが無効(インバリ7ド)であれば、ページ・
フォルトまたはセグメン1−・フォルトとして、アドレ
ス変換例外のプログラム割込みを発生させる。
In the case of the virtual memory control method, the segment table and page table are generally indexed in the process of converting a logical address to a real address, and if the corresponding entry in the table is invalid (invalid), the page is・
Generates an address translation exception program interrupt as a fault or segment 1-fault.

マイクロプログラミング制御方式により各命令を処理す
る中央処理装置(CPU)の場合、第5図に示すように
、処理7oによる主記憶(MS)アクセスで、アドレス
変換が不可能なことが検知されると、中央処理装置は、
処理71により、自身のレジスタやアドレススタック等
の情報を2MS上に予め定められた固定領域へ格納する
。そして、処理72により、プログラム状態語(PSW
)内に設けられた命令中断表示ビットをオンにし。
In the case of a central processing unit (CPU) that processes each instruction using a microprogramming control method, as shown in FIG. , the central processing unit is
Through process 71, information such as its own registers and address stack is stored in a predetermined fixed area on the 2MS. Then, through process 72, the program state word (PSW)
) turns on the instruction abort indication bit.

プログラム割込みを起こす。Causes a program interrupt.

PSWがプログラム割込みによって変えられることによ
り、ページ管理のタスクが走行することになり5ページ
管理のタスクは、まず処理73により、上記MS固定領
域の内容をタスクの中にある領域ヘセーブする。その後
、処理74により。
When the PSW is changed by a program interrupt, the page management task runs, and the page management task first saves the contents of the MS fixed area to an area within the task in process 73. Thereafter, through process 74.

必要に応じてページのロールアウトおよびロールインヲ
行って、アドレス関連テーブルのインバリッド表示を有
効に設定し、処理75により、先はどタスク内の領域に
セーブした情報をMS固定領域ヘリスドアする。そして
ロードPSW (LPSW)命令を発行し1割込みから
の復帰を行う。
The page is rolled out and rolled in as necessary to enable the invalid display of the address related table, and in step 75, the information previously saved in the area within the task is doored to the MS fixed area. Then, a load PSW (LPSW) instruction is issued to return from the first interrupt.

しpsw命令の中で、続出したpswの命令中断表示ビ
ットがオンであるとき、処理76により。
When the instruction interrupt indication bit of successive psw among the psw instructions is on, processing 76 is performed.

MS固定領域の内容をCPU内のレジスタやアドレスス
タック等へ再設定し、処理77によって。
The contents of the MS fixed area are reset to registers, address stacks, etc. in the CPU, and processing 77 is performed.

PSWの命令中断表示ピントをオフにする。これにより
、命令中断からの再開がなされることになる。処理78
におけるMSアクセスでは、テーブルが有効になってい
ることから、中断した命令の処理を続行できることとな
る。
Turn off the PSW command interruption display focus. As a result, the instruction is resumed from where the instruction was interrupted. Processing 78
In the MS access in , since the table is valid, processing of the interrupted instruction can be continued.

ところで、マイクロプログラムによる命令制御の場合、
1つの機械語命令を、命令フェッチ、アドレス計算、主
記憶リード、汎用レジスタへのセント等の一連のマイク
ロ命令によって処理する。
By the way, in the case of instruction control using a microprogram,
One machine language instruction is processed by a series of microinstructions such as instruction fetch, address calculation, main memory read, and general register cent.

例えば、長い文字列の転送命令等においては、長期間5
マイクロ命令が走行することになる。第5図図示処理7
1において、cpu情報をMSの固定領域に退避してい
るのは、未処理のマイクロ命令から実行を再開すること
により、処理の重複を避けるためである。
For example, in a long character string transfer command, etc.,
Microinstructions will be executed. Figure 5 Illustrated process 7
In No. 1, the CPU information is saved in a fixed area of the MS in order to avoid duplication of processing by restarting execution from unprocessed microinstructions.

しかしながら1従来力式によれば、命令フェッチの際に
発生した変換例外のときでも、第5図に示した処理71
.処理73.処理75および処理76によるCPU11
fllliの退避/復元の処理を必ず実行しなければな
らないこととなる。命令フェフチの場合には、まだ命令
の処理を開始したばかりであるので、上記一連のCPU
情報の退避/復元は不必要であり、中断点から再開させ
るための処理時間が長くなるという問題がある。また、
命令フェッチの場合に限らず、第1オペランドまたは第
2オペランドで変換例外が発生した場合でも。
However, according to the conventional power formula 1, even when a conversion exception occurs during instruction fetch, the process 71 shown in FIG.
.. Processing 73. CPU 11 by processing 75 and processing 76
This means that the process of saving and restoring fllli must be executed. In the case of instruction fetish, since the instruction processing has just started, the above series of CPUs
Saving/restoring information is unnecessary, and there is a problem in that the processing time required to restart from the interrupted point becomes long. Also,
Not only in the case of instruction fetch, but also when a conversion exception occurs in the first or second operand.

命令の種別によっては、cpu情報の退避/復元を行わ
ずに、命令の最初から、やり直したほうが。
Depending on the type of instruction, it may be better to start over from the beginning of the instruction without saving/restoring the CPU information.

処理速度が向上する場合もある。In some cases, processing speed may be improved.

C問題点を解決するための手段〕 本発明は上記問題点の解決を図り、アドレス変換例外が
生じたとき、cpu情報を退避/復元して命令中断点か
ら再開させたほうがよいか、または命令を先頭から再実
行させたほうがよいかを切分ける手段を設けることによ
り、処理速度の向上を図っている。即ち1本発明の仮想
記憶制御方式は、中央処理装置が処理する各命令につい
てマイクロプログラミングにより実行する仮想記憶制御
方式において、アドレス変換例外検出時にその時点にお
ける上記中央処理装置の状態に関する情報を主記憶上の
固定領域に格納するか否かを実行中の命令の中断点また
は/および命令種別によって切分ける手段と、上記固定
領域に情報を格納したか否かを記憶する格納表示手段と
、アドレス変換例外検出による割込み処理において上記
固定領域の内容を他の主記憶上の領域に移動させる際に
上記格納表示手段によって移動させる情報を切分けて転
送する命令手段と、該転送する命令手段により移動され
た情報を上記固定領域へ復帰させる際に上記格納表示手
段により復帰させる情報を切分けて転送する命令手段と
、命令中断再開時において上記格納表示手段が上記固定
領域に情報を格納したことを示すとき該固定領域に格納
した上記中央処理装置の状態に関する情報に従って命令
を再開し、上記格納表示手段が上記固定領域に情報を格
納していないことを示すとき中断した命令の先頭から命
令を再開する手段とを備えていることを特徴としている
Means for Solving Problem C] The present invention aims to solve the above problem. When an address translation exception occurs, it is better to save/restore CPU information and restart from the instruction interruption point, or By providing a means to determine whether it is better to re-execute the process from the beginning, the processing speed is improved. In other words, the virtual memory control method of the present invention is a virtual memory control method in which each instruction processed by a central processing unit is executed by microprogramming, and when an address translation exception is detected, information regarding the state of the central processing unit at that time is stored in the main memory. means for determining whether or not to store information in the above fixed area based on the interruption point of the instruction being executed and/or the instruction type; storage display means for storing information as to whether information is stored in the above fixed area; and address conversion. A command means for separating and transmitting the information to be moved by the storage and display means when moving the contents of the fixed area to another area in the main memory in interrupt processing due to exception detection; a command means for separating and transferring the information to be restored by the storage and display means when restoring the information to the fixed area; and a command means for indicating that the storage and display means has stored the information in the fixed area when the instruction is resumed after interruption. When the instruction is restarted according to the information regarding the state of the central processing unit stored in the fixed area, and when the storage display means indicates that no information is stored in the fixed area, the instruction is resumed from the beginning of the interrupted instruction. It is characterized by having the means.

〔作用〕[Effect]

本発明は、−律にCPU情報をMS固定領域に格納する
という従来方式の不備な点に鑑み1次の■および■を切
分けることにより、処理速度の点から最適なアドレス変
換例外に関する処理を選択するようにしている。
In view of the shortcomings of the conventional method in which CPU information is typically stored in the MS fixed area, the present invention separates the first order (■) and (2), and thereby performs processing related to address translation exceptions that is optimal from the viewpoint of processing speed. I try to choose.

■ アドレス変換例外を発生させた原因が、命令フェッ
チの場合、または主記憶へのアクセス量が少ない命令の
種類である場合に、命令フェッチから再開させる。
■ If the cause of the address translation exception is an instruction fetch, or if the type of instruction requires a small amount of access to the main memory, restart from the instruction fetch.

■ アドレス変換例外が第1オペランド/第2オペラン
ドで発生し、かつ転送や主記憶比較の命令等であって、
主記憶へのアクセス回数が多いものである場合には、従
来例の通り、CPU情報の退避/復元処理を実行して、
命令の中断点から再開させる。
■ If an address conversion exception occurs in the first operand/second operand, and the instruction is a transfer or main memory comparison instruction,
If the number of accesses to the main memory is large, as in the conventional example, execute the CPU information save/restore process,
Resumes the instruction from the point where it left off.

即ち1本発明の場合、CPU情報をMS固定領域に格納
するか否かの判断を、アドレス変換例外発生時に行う。
That is, in the case of the present invention, it is determined whether or not to store CPU information in the MS fixed area when an address translation exception occurs.

そして9例えば固定領域上に格納表示フラグを設けてお
き、CPU情報を退避する処理を実行したとき、この格
納表示フラグをオンにする。また、実行しないときには
、格納表示フラグをオフにする。このフラグがオフのと
きには。
9. For example, a storage display flag is provided on a fixed area, and when a process for saving CPU information is executed, this storage display flag is turned on. Also, when not executing, the storage display flag is turned off. When this flag is off.

現PSWの命令アドレス(IA)を命令開始アドレスに
戻しておくことにより、再開するときに命令フェッチか
ら実行する。以下2図面を参照しつつ、実施例に従って
説明する。
By returning the instruction address (IA) of the current PSW to the instruction start address, execution starts from instruction fetch when restarting. Embodiments will be described below with reference to two drawings.

〔実施例〕〔Example〕

第1図は本発明の一実施例構成ブロック図、第2図は第
1図図示アドレス変換例外処理部の処理を説明する図、
第3図は第1図図示ページ管理部の処理を説明する図、
第4図は第1図図示命令再開部の処理を説明する図を示
す。
FIG. 1 is a block diagram of the configuration of an embodiment of the present invention, FIG. 2 is a diagram explaining the processing of the address translation exception handling section shown in FIG. 1,
FIG. 3 is a diagram explaining the processing of the illustrated page management section in FIG. 1;
FIG. 4 is a diagram illustrating the processing of the instruction resuming unit shown in FIG. 1.

図中、1は命令実行部であって、中央処理装置において
機械語命令をマイクロプログラムにより実行するもの、
2はプログラム状態語(PSW)。
In the figure, 1 is an instruction execution unit that executes machine language instructions using a microprogram in the central processing unit;
2 is a program state word (PSW).

3はPSW2の中に設けられている命令中断表示ビット
、4はアドレス変換例外が起きたときにその処理を行う
アドレス変換例外処理部、5は記憶制御部(図示省略)
からの通知により、アドレス変換例外が起きたことを検
出するアドレス変換例外検出部、6はCPU情報をセー
ブするか否かを切分ける格納切分は部、7はCPU情報
をMSの固定領域にセーブするCPU情報退避部、8は
格納表示フラグをオンまたはオフにする格納表示設定部
、9は命令中断表示ビット3をオンにする中断表示部、
10はプログラム割込みを生じさせる割込み発生部、1
1は割込み復帰においてLPSW命令によって起動され
る命令再開部、12は格納表示フラグのオン/オフを判
定する格納表示判定部、13はcpu情報をMSの固定
領域から読出してリストアするCPU情報復元部、14
はPSW2が保持する命令アドレスに従って命令をフェ
ッチする命令フェッチ部を表す。
3 is an instruction interruption display bit provided in PSW2, 4 is an address translation exception handling unit that processes an address translation exception when it occurs, and 5 is a storage control unit (not shown).
6 is a storage section that determines whether or not to save CPU information. 7 is a storage section that stores CPU information in a fixed area of the MS. 8 is a storage display setting section that turns on or off the storage display flag; 9 is an interruption display section that turns on instruction interruption display bit 3;
10 is an interrupt generation unit that generates a program interrupt;
Reference numeral 1 denotes an instruction restart unit activated by the LPSW instruction upon return from an interrupt, 12 a storage display determination unit that determines on/off of a storage display flag, and 13 a CPU information restoration unit that reads CPU information from a fixed area of the MS and restores it. , 14
represents an instruction fetch unit that fetches instructions according to the instruction address held by PSW2.

また、符号20は主記憶(MS)、21は主記憶20に
おける固定領域、22はCPU情報が固定領域に格納さ
れたときオン、格納されなかったときオフにされる格納
表示フラグ、23はCPU情報が退避されるCPU情報
格納部、24はタスク毎に固有の空間が割当てられるタ
スク内領域。
Further, reference numeral 20 denotes a main memory (MS), 21 a fixed area in the main memory 20, 22 a storage display flag that is turned on when CPU information is stored in the fixed area and turned off when it is not stored, and 23 a CPU A CPU information storage section 24 in which information is saved is an intra-task area to which a unique space is allocated for each task.

30はオペレーティング・システムにおいて仮想記憶制
御を行うページ管理部、31は格納表示判定部、32は
CPU情報格納部23からタスク内領域24への情報転
送を行う情報転送部、33は仮想記憶のページについて
ロールイン/ロールアウトを行うページング処理部、3
4はタスク内領域24からcpu情報格納部23への情
報転送を行う情報復元部、35は磁気ディスク装置等に
設けられる外部ページ記憶部を表す。
30 is a page management unit that performs virtual memory control in the operating system; 31 is a storage display determination unit; 32 is an information transfer unit that transfers information from the CPU information storage unit 23 to the intra-task area 24; and 33 is a page of virtual memory. Paging processing unit that rolls in/rolls out 3
Reference numeral 4 represents an information restoration unit that transfers information from the intra-task area 24 to the CPU information storage unit 23, and 35 represents an external page storage unit provided in a magnetic disk device or the like.

本発明では、レジスタやアドレス変換例外等の情報につ
いてのcpu情報格納部23への格納。
In the present invention, information such as registers and address translation exceptions is stored in the CPU information storage unit 23.

cpu情報格納部23からタスク内領域24への情報転
送、ベージング処理後においてタスク内領域24からC
P IJ情報格納部23への情報の書き戻し、cpu情
報格納部23からのCPU情報のりストア等の処理を行
うか否かを、アドレス変換例外が起きた位置や命令の態
様によって1選択できるようになっている。そのため1
例えば固定領域21に格納表示フラグ22が設けられ、
上記CPU情報の退避/復元処理がなされるとき、格納
表示フラグ22をオン、CPU情報の退避/復元処理を
省略するとき、格納表示フラグ22をオフに設定するよ
うになっている。
C
It is possible to select whether or not to perform processing such as writing back information to the P IJ information storage unit 23, storing CPU information from the CPU information storage unit 23, etc., depending on the position where an address translation exception occurs and the type of instruction. It has become. Therefore 1
For example, a storage display flag 22 is provided in the fixed area 21,
When the CPU information saving/restoring process is performed, the storage display flag 22 is set to ON, and when the CPU information saving/restoring process is omitted, the storage display flag 22 is set to OFF.

格納切分は部6は、アドレス変換例外が起きた位置によ
り、または命令が主記憶20へのアクセス回数の多いも
のであるか否かによって、cpu情報の退避/復元を行
うか否かを切分けるものである。CPU情報が退避され
て、格納表示フラグ22が、格納表示設定部8によって
オンにされたとき、情報転送部32および情報復元部3
4は。
The storage division section 6 determines whether or not to save/restore CPU information depending on the position where an address translation exception occurs or whether the instruction accesses the main memory 20 frequently. It is something that separates. When the CPU information is saved and the storage display flag 22 is turned on by the storage display setting section 8, the information transfer section 32 and the information restoration section 3
4 is.

cpu情報格納部23とタスク内領域24間における情
報転送を行う。また、命令再開部11は。
Information is transferred between the CPU information storage unit 23 and the intra-task area 24. Further, the instruction restart unit 11.

cpu情報情報部元部13り、CPU情報格納部23か
らのCPU情報のりストアを行い、従来と同様に中断し
た命令についての再開を行う。
The CPU information source section 13 stores the CPU information from the CPU information storage section 23, and resumes the interrupted instruction in the same manner as before.

格納切分は部6により、CPU情報退避部7による処理
が不要であるとされた場合、格納表示設定部8により、
格納表示フラグ22がオフに設定される。この場合、C
PU情報格納部23からタスク内領域24への情報転送
はなされず、命令再開時には命令再開部11により、P
SW2に設定された命令の開始アドレスから命令の再実
行がなされる。即ち、命令フェッチ部14が起動され。
When the storage section 6 determines that the processing by the CPU information saving section 7 is unnecessary, the storage display setting section 8
The storage display flag 22 is set to OFF. In this case, C
Information is not transferred from the PU information storage unit 23 to the intra-task area 24, and when the instruction is restarted, the instruction restart unit 11
The instruction is re-executed from the instruction start address set in SW2. That is, the instruction fetch unit 14 is activated.

命令フェッチから処理が行われる。Processing starts from instruction fetch.

第2図は、第1図図示アドレス変換例外処理部4の処理
をフローチャートの形で示しているものである。
FIG. 2 shows the processing of the address conversion exception handling unit 4 shown in FIG. 1 in the form of a flowchart.

第2図図示処理40によるMSアクセスにおいて、アド
レス関連テーブルのインバリッドが検出されると、アド
レス変換例外処理部4が起動され。
When an invalidity of the address related table is detected in the MS access by the process 40 shown in FIG. 2, the address translation exception handling unit 4 is activated.

アドレス変換例外処理部4は、まず処理41により、命
令フェッチの段階で変換例外が起きたかどうかを判定す
る。命令フェッチにおける例外でないとき、処理42へ
移り、命令コードを参照することにより、命令が情報格
納を必要とする命令であるかどうかを判定する。情報格
納の要否については、予め命令の種別によって定められ
る。
The address translation exception processing unit 4 first determines in process 41 whether a translation exception has occurred at the instruction fetch stage. If it is not an exception in instruction fetch, the process moves to step 42, and by referring to the instruction code, it is determined whether the instruction is an instruction that requires information storage. The necessity of storing information is determined in advance depending on the type of command.

情報の格納が必要である命令である場合、処理43によ
り、第1図図示CPU情報格納部23への情報のセーブ
を行う。そして、処理44により格納表示フラグ22を
オンにセットする。
If the instruction requires storing information, the information is saved in the CPU information storage section 23 shown in FIG. 1 in step 43. Then, in process 44, the storage display flag 22 is set on.

処理41の判定において、命令フェッチにおける例外で
あることが検出されたとき、または処理=12により、
情報格納が不要であると判定されたときには、処理45
により、PSWの命令アドレス(IA)部に命令開始ア
ドレスを設定し、処理46により、格納表示フラグ22
をオフにする。
In the judgment of process 41, when an exception in instruction fetch is detected, or by process=12,
When it is determined that information storage is unnecessary, process 45
The instruction start address is set in the instruction address (IA) field of the PSW, and the storage display flag 22 is set in the process 46.
Turn off.

最後に処理47により、第1図に示したPSW2の中の
命令中断表示と・ノド3をオンにして、プログラム割込
みを生じさせる。
Finally, in step 47, the instruction interrupt display and node 3 in the PSW 2 shown in FIG. 1 are turned on to generate a program interrupt.

プログラム割込みにより、第1図図示ページ管理部30
が起動される。ページ管理部30は9例えば第3図に示
すように処理する。
Due to a program interrupt, the illustrated page management section 30 in FIG.
is started. The page management unit 30 performs processing as shown in FIG. 3, for example.

本発明では1例えば第3図図示処理50〜処理52を実
行する命令Sと、処理54〜処理56を実行する命令R
とが予め用意される。ページ管理部30は、最初に命令
Sを発行する。この命令Sでは1次のように処理が行わ
れる。まず処理50により、格納表示フラグ22のオン
/オフを判定し、オンである場合に、処理51によって
、CPU情報格納部23からタスク内領域24への情報
転送を行う。オフである場合には、この処理51による
転送を省略する。そして、処理52によって、格納表示
フラグ22をタスク内の領域へ転記する。
In the present invention, for example, an instruction S for executing processes 50 to 52 illustrated in the third diagram, and an instruction R for executing processes 54 to 56 are provided.
are prepared in advance. The page management unit 30 first issues the command S. This instruction S performs the following processing. First, in process 50, it is determined whether the storage display flag 22 is on or off, and if it is on, information is transferred from the CPU information storage unit 23 to the intra-task area 24 in process 51. If it is off, the transfer in this process 51 is omitted. Then, in process 52, the storage display flag 22 is transferred to the area within the task.

ページ管理部30は、その後、処理53によって、ペー
ジのロールアウト/ロールイン処理を行い、変換例外を
起こしたアドレスが含まれるページに実アドレスを割り
付ける。
Thereafter, in process 53, the page management unit 30 performs page rollout/rollin processing and allocates a real address to the page that includes the address that caused the conversion exception.

次に命令Rを発行すると、命令Rにより以下のように処
理される。命6Rは、まず処理54によリ、処理52に
おいてタスク内の領域に転記された格納表示フラグのオ
ン/オフを判定する。該フラグがオンであるとき、処理
55により、先にタスク内の領域に転送された情報を、
CPU情報格納部23へ戻す。格納表示フラグがオフで
あるときには、この処理55は行わない。そして、処理
56により、タスク内にセーブした格納表示フラグを、
固定領域21上の格納表示フラグ22ヘリスドアする。
Next, when command R is issued, the following processing is performed by command R. In order 6R, first, in process 54, it is determined whether the storage display flag transferred to the area within the task in process 52 is on/off. When the flag is on, processing 55 transfers the information previously transferred to the area within the task.
It is returned to the CPU information storage section 23. This process 55 is not performed when the storage display flag is off. Then, through process 56, the storage display flag saved in the task is
The storage display flag 22 on the fixed area 21 is displayed on the helis door.

その後、LPSW命令を発行すれば。After that, if you issue the LPSW command.

第1図図示命令中断表示ビット3がオンであることから
、命令再開部11が起動される。
Since the instruction interruption display bit 3 shown in FIG. 1 is on, the instruction restart unit 11 is activated.

命令再開部11は2例えば第4図に示すように処理する
。即ち、まず処理60によって、格納表示フラグ22が
オンであるか、オフであるかを判定する。オンである場
合、処理61により、CPU情報格納部23からCPU
情報のりストアを行う。そして、処理62により、命令
中断表示ビット3をオフにし、処理63によって、先に
アドレス変換例外が生じたアドレスへアクセスする。実
アドレスの割付けによって、テーブルがバリッドになっ
ているので、中断した命令の処理を中断点から続行でき
ることとなる。この処理ルートは。
The instruction resuming unit 11 performs two processes, for example, as shown in FIG. That is, first, in process 60, it is determined whether the storage display flag 22 is on or off. If it is on, processing 61 causes the CPU information storage section 23 to
Performs information storage. Then, in step 62, the instruction interruption indication bit 3 is turned off, and in step 63, the address where the address translation exception occurred is accessed. Since the table is made valid by assigning real addresses, processing of the interrupted instruction can be continued from the point of interruption. This processing route is.

実質的に従来と同様である。This is substantially the same as before.

一方、処理60による判定により、格納表示フラグ22
がオフであることが検出された場合、処理64によって
、命令中断表示ビット3をオフにした後、pswが示す
命令を先頭から再実行する。
On the other hand, as determined by the process 60, the storage display flag 22
If it is detected that psw is off, the instruction interruption display bit 3 is turned off in step 64, and then the instruction indicated by psw is re-executed from the beginning.

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

以上説明した如く1本発明によれば、MS固定領域への
CPU情報のセーブ/リストアおよびタスク内領域への
情報転送を行わなくても済む命令については、その分の
処理時間短縮が可能になる。
As explained above, according to the present invention, processing time can be reduced by that amount for instructions that do not require saving/restoring CPU information to the MS fixed area and transferring information to the intra-task area. .

また、命令フェッチ時において発生したアドレス変換例
外に関しても、同様に処理時間の短縮が見込まれる。従
って1本発明によれば、比較的簡単な手段によって、従
来より効率的な仮想記憶制御方式を提供することができ
るようになる。
Further, processing time can be similarly expected to be shortened with respect to address translation exceptions that occur during instruction fetching. Therefore, according to the present invention, it is possible to provide a more efficient virtual storage control method than the conventional one by using relatively simple means.

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

第1図は本発明の一実施例構成ブロック図、第2図は第
1図図示アドレス変換例外処理部の処理を説明する図、
第3図は第1図図示ページ管理部の処理を説明する図、
第4図は第1図図示命令再開部の処理を説明する図、第
5図は従来の仮想記憶制御方式による処理の例を示す。 図中、lは命令実行部、2はPSW、3は命令中断表示
ビット、4はアドレス変換例外処理部。 6は格納切分は部、7はCPU情報退避部、8は格納表
示設定部、11は命令再開部、12は格納表示判定部、
20は主記憶、21は固定領域、22は格納表示フラグ
、30はページ管理部、33はベージング処理部を表す
。 特許出願人   冨士通株式会社 代理人弁理士  森1)寛(外1名) $ 2 図
FIG. 1 is a block diagram of the configuration of an embodiment of the present invention, FIG. 2 is a diagram explaining the processing of the address translation exception handling section shown in FIG. 1,
FIG. 3 is a diagram explaining the processing of the illustrated page management section in FIG. 1;
FIG. 4 is a diagram for explaining the processing of the instruction resuming unit shown in FIG. 1, and FIG. 5 shows an example of processing by the conventional virtual storage control system. In the figure, 1 is an instruction execution unit, 2 is a PSW, 3 is an instruction interruption display bit, and 4 is an address conversion exception handling unit. 6 is a storage section, 7 is a CPU information saving section, 8 is a storage display setting section, 11 is an instruction restart section, 12 is a storage display judgment section,
20 is a main memory, 21 is a fixed area, 22 is a storage display flag, 30 is a page management section, and 33 is a paging processing section. Patent applicant Fujitsu Co., Ltd. Representative Patent Attorney Hiroshi Mori 1) (1 other person) $ 2 Figure

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置が処理する各命令についてマイクロプログ
ラミングにより実行する仮想記憶制御方式において、ア
ドレス変換例外検出時にその時点における上記中央処理
装置の状態に関する情報を主記憶上の固定領域に格納す
るか否かを実行中の命令の中断点または/および命令種
別によって切分ける手段と、上記固定領域に情報を格納
したか否かを記憶する格納表示手段と、アドレス変換例
外検出による割込み処理において上記固定領域の内容を
他の主記憶上の領域に移動させる際に上記格納表示手段
によって移動させる情報を切分けて転送する命令手段と
、該転送する命令手段により移動された情報を上記固定
領域へ復帰させる際に上記格納表示手段により復帰させ
る情報を切分けて転送する命令手段と、命令中断再開時
において上記格納表示手段が上記固定領域に情報を格納
したことを示すとき該固定領域に格納した上記中央処理
装置の状態に関する情報に従って命令を再開し、上記格
納表示手段が上記固定領域に情報を格納していないこと
を示すとき中断した命令の先頭から命令を再開する手段
とを備えていることを特徴とする仮想記憶制御方式。
In a virtual memory control method executed by microprogramming for each instruction processed by a central processing unit, when an address translation exception is detected, it is determined whether information regarding the state of the central processing unit at that time is stored in a fixed area on main memory. means for separating the instructions according to the interruption point and/or instruction type; storage and display means for storing information as to whether or not information has been stored in the fixed area; a command means for separating and transferring the information to be moved by the storage/display means when moving the information to another area in the main memory; a command means for separating and transferring information to be restored by the storage and display means, and a central processing unit that stores the information in the fixed area when the storage and display means indicates that the information has been stored in the fixed area when the instruction is resumed after interruption; and means for restarting the instruction from the beginning of the interrupted instruction when the storing and displaying means indicates that no information is stored in the fixed area. Virtual memory control method.
JP59238872A 1984-11-13 1984-11-13 Virtual memory control method Granted JPS61117635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59238872A JPS61117635A (en) 1984-11-13 1984-11-13 Virtual memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59238872A JPS61117635A (en) 1984-11-13 1984-11-13 Virtual memory control method

Publications (2)

Publication Number Publication Date
JPS61117635A true JPS61117635A (en) 1986-06-05
JPH0554141B2 JPH0554141B2 (en) 1993-08-11

Family

ID=17036511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59238872A Granted JPS61117635A (en) 1984-11-13 1984-11-13 Virtual memory control method

Country Status (1)

Country Link
JP (1) JPS61117635A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6280743A (en) * 1985-10-01 1987-04-14 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Processing method of exception of address conversion
JPH05143331A (en) * 1991-11-20 1993-06-11 Pfu Ltd Instruction interruption information control system for virtual storage control
KR101401110B1 (en) * 2007-12-17 2014-05-30 두산인프라코어 주식회사 Tool magazine of machine tool

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6280743A (en) * 1985-10-01 1987-04-14 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Processing method of exception of address conversion
JPH05143331A (en) * 1991-11-20 1993-06-11 Pfu Ltd Instruction interruption information control system for virtual storage control
KR101401110B1 (en) * 2007-12-17 2014-05-30 두산인프라코어 주식회사 Tool magazine of machine tool

Also Published As

Publication number Publication date
JPH0554141B2 (en) 1993-08-11

Similar Documents

Publication Publication Date Title
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US5003458A (en) Suspended instruction restart processing system based on a checkpoint microprogram address
RU2003123118A (en) NEW PROCESSOR MODE TO REDUCE THE FUNCTIONING OF THE GUEST SOFTWARE RUNNING ON THE VIRTUAL MACHINE SUPPORTED BY THE MONITOR OF THE VIRTUAL MACHINE
US5146569A (en) System for storing restart address of microprogram, determining the validity, and using valid restart address to resume execution upon removal of suspension
JPS58121457A (en) Information processing device
JPS61117635A (en) Virtual memory control method
JP2671160B2 (en) Exception handling method
JPS60214044A (en) Microcomputer
JP2562838B2 (en) Processor and store buffer control method
JPH0133856B2 (en)
JPS59172044A (en) Command control method
JP2574918B2 (en) Interrupt return processing method
JPH05165663A (en) Data processing device
JPS59144955A (en) Information processor
JP3022398B2 (en) Virtual computer system
JPS62125437A (en) Additional processor control method
JPS62254237A (en) Inter-printer type branch instruction executing system
JP2902847B2 (en) Self-modifying code execution method
JP2506591B2 (en) Auxiliary processor
JPS581873A (en) Virtual storage controller
JPH0113131B2 (en)
JPS62264345A (en) Processing system in address conversion exception mode of vector processor
JPH01258154A (en) Control system for micro instruction execution
Neumann Disk-based program swapping in 8080-based microcomputers
JPS6130296B2 (en)