JPS61183742A - Program execution control device of floating operation processor - Google Patents
Program execution control device of floating operation processorInfo
- Publication number
- JPS61183742A JPS61183742A JP60021716A JP2171685A JPS61183742A JP S61183742 A JPS61183742 A JP S61183742A JP 60021716 A JP60021716 A JP 60021716A JP 2171685 A JP2171685 A JP 2171685A JP S61183742 A JPS61183742 A JP S61183742A
- Authority
- JP
- Japan
- Prior art keywords
- program
- execution
- floating
- processing
- control device
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline, look ahead
- G06F9/3867—Concurrent instruction execution, e.g. pipeline, look ahead using instruction pipelines
Abstract
Description
【発明の詳細な説明】
C発明の利用分野〕
本発明はフローティング演算レジスタをもつ電子計算機
システムにおける、プログラムの実行権移動時のO8の
処理に係り、特に、演算レジスタの退避回復処理に有効
なプログラム実行制御装置に関する。[Detailed Description of the Invention] C Field of Application of the Invention] The present invention relates to O8 processing when transferring the execution right of a program in an electronic computer system having floating arithmetic registers, and in particular, to an effective method for saving and recovering processing of arithmetic registers. The present invention relates to a program execution control device.
通常、フローティング演算プロセッサ(以降PPPと呼
ぶ)はフローティング演算レジスタ(以下FPRと呼ぶ
)をもち、PPPはFPRを用いてフローティング演算
を行ない終了後結果を出力する。マイクロプロセッサ(
以降CPUと呼ぶ)はPPPの出力結果を、メモリ内に
移すことにより、フローティング演算を実行したことに
なる。Usually, a floating arithmetic processor (hereinafter referred to as PPP) has a floating arithmetic register (hereinafter referred to as FPR), and the PPP uses the FPR to perform floating operations and outputs the result after completion. microprocessor (
The CPU (hereinafter referred to as CPU) executes a floating operation by moving the output result of PPP into memory.
ところが、演算結果が出力されない間にフローティング
演算の実行を依頼したプログラムがO8により中断され
、他のプログラムに実行が移動した場合計算途中のFP
Rの内容をどのように保障するのか問題となる。However, if the program that requested execution of the floating operation is interrupted by O8 while the operation result is not output, and the execution moves to another program, the FP in the middle of calculation
The question is how to guarantee the contents of R.
第2WIに従来のFPRの保障手順を示す。The second WI shows the conventional FPR guarantee procedure.
主メモリ100上にある○5101はCPUll0によ
って制御され、プログラムを管理するテーブル105と
106によりユーザプログラム102゜103を実行制
御する。プログラム102はプログラム103より実行
優先度が高く、08IOLが必要によりプログラム10
2を排除して実行させることができる。5101 on the main memory 100 is controlled by CPUll0, and executes control of user programs 102 and 103 by tables 105 and 106 for managing programs. Program 102 has a higher execution priority than program 103, and program 102 has higher execution priority than program 103.
2 can be excluded and executed.
FPP120はFPRI21をもち、実行中はフラグ1
22を立てている。FPRI21の内容はCPUI 1
0によってバス130を介してメモリ100に送ること
ができる。FPP120 has FPRI21, and flag is 1 during execution.
I'm putting up 22. The contents of FPRI21 are CPUI 1
0 can be sent to memory 100 via bus 130.
従来、レベルの低いプログラム103が実行中に、○5
101によって中断され、プログラム102に実行が移
る場合、その時点でFPP120を使用中であれば無条
件でFPR121をメモリ100上の退避エリア107
にすべて退避する処理140を行ない、その後、プログ
ラム102を起動し実行させる。プログラム102の実
行が終了後oS101は退避エリア107からFPRI
21にデータを送り、内容を回復する処理141を行
ない、再び、プログラム103を実行させる手順を実施
していた。この場合、プログラム102がFPP120
に一度もアクセスしないようなプログラムであったなら
ば処理140と141は不要であり、この処理のため、
システムのスループットに大きく影響することとなる。Conventionally, while the low-level program 103 is being executed, ○5
101 and execution moves to the program 102, if the FPP 120 is in use at that time, the FPR 121 is unconditionally moved to the save area 107 on the memory 100.
After that, the program 102 is started and executed. After the execution of the program 102 is finished, the oS 101 transfers the FPRI from the evacuation area 107.
21, a process 141 for restoring the contents was performed, and a procedure was performed for executing the program 103 again. In this case, the program 102
If the program never accesses , processes 140 and 141 are unnecessary.
This will greatly affect the system throughput.
なお、従来方式の処理手順について述べた文献に、SK
Y Co■puters社の“SKY COMPUTE
RS FAST FLOATING−POINTPRO
CESSORFORMULTIBUS SYSTEMS
SYSTEMINTEGRATION MANUAL
”がある。In addition, in the literature describing the processing procedure of the conventional method, SK
“SKY COMPUTE” by Y Coputers
RS FAST FLOATING-POINT PRO
CESSOR FORMULTIBUS SYSTEMS
SYSTEM INTEGRATION MANUAL
”There is.
(発明の目的)
本発明の目的は、プログラムの実行権が移動する際のF
PRの退避回復処理を可能な限り省略することによって
、プログラム実行のオーバーヘッドを少なくすることに
ある。(Object of the invention) The object of the invention is to
The objective is to reduce the overhead of program execution by omitting PR save and recovery processing as much as possible.
本発明の要点は、各プログラム内、または、プログラム
の実行を制御する主メモリ上のテーブル内に、そのプロ
グラムがPPPを使用するか否かを表わすフラグを設け
、そのフラグをO8がプログラムを起動する前に判定す
ることにある。The key point of the present invention is that a flag is provided in each program or in a table in main memory that controls the execution of the program to indicate whether the program uses PPP, and the O8 uses this flag to start the program. The point is to judge before doing.
以下、本発明の一実施例を第3図により説明する。 An embodiment of the present invention will be described below with reference to FIG.
100〜107,110,120〜122および130
は第2図で説明した従来の構成要素である。210およ
び220は各プログラムがPPPを使用するか否かを示
すフラグである。各フラグはテーブル105、または、
テーブル106に各喜合まれるか、あるいは、プログラ
ム102.またはプログラム103に各々含まれる。100-107, 110, 120-122 and 130
are the conventional components explained in FIG. Flags 210 and 220 indicate whether each program uses PPP. Each flag is shown in table 105 or
Each table 106 or program 102. or each included in the program 103.
230.231は本発明により省略可能となるFPRの
、それぞれ、退避処理および回復処理である。230 and 231 are FPR save processing and recovery processing, respectively, which can be omitted according to the present invention.
第1図はフラグ105、または、106を用いたO8の
FPR退避、回復処理の手順のフローチャートである。FIG. 1 is a flowchart of the O8 FPR saving and recovery processing procedure using the flag 105 or 106.
まず、○5101により起動され実行中のプログラム1
03はPPPを使用している。このプログラム103が
081o1により中断され、プログラム102に実行が
移動する時、フラグ210の値をO8101がプログラ
ム102を起動する前に参照しフラグ210がONであ
れば、oSlolはFPRI21の内容を主メモリ上の
退避エリア107に退避し、フラグ210がOFFであ
れば退避しない処理230を行なう、処理230実施後
、oSlolはプログラム102を起動し、実行させる
。プログラム102は実行終了後oS101に戻るので
、O8は処理230の経緯にもとづき、FPRが退避さ
れていれば回復し、退避されてなければ回復ししない処
理231を行なう。First, program 1 started and running by ○5101
03 uses PPP. When this program 103 is interrupted by 081o1 and execution moves to program 102, O8101 refers to the value of flag 210 before starting program 102, and if flag 210 is ON, oSlol saves the contents of FPRI 21 to the main memory. After executing process 230, which saves the data to the upper save area 107 and does not save if the flag 210 is OFF, oSlol starts and executes the program 102. Since the program 102 returns to oS101 after execution ends, O8 performs process 231, based on the process 230, to recover if the FPR has been saved, but not to recover if it has not been saved.
その後、08IOLは中断したプログラム103にプロ
グラムの制御を戻して実行させる。Thereafter, the 08IOL returns control to the interrupted program 103 and causes it to execute.
本実施例によれば、従来、PPPが使用中であれば、必
ず、FPRの退避回復を行なっていた処理が、フラグを
判定するわずかな手順によって省略することが可能であ
り、それにより、プログラムのスループットが向上する
。また、毎回退避回復する必要がないため、退避回復の
ためのエリアを必ずしも用意することがなくなり、主メ
モリ上のエリアを有効に利用できるという効果がある。According to this embodiment, it is possible to omit the process of saving and restoring the FPR without fail when PPP is in use, by just a few steps of determining the flag, and thereby the program throughput is improved. Furthermore, since it is not necessary to save and recover each time, there is no need to necessarily prepare an area for save and recover, and the area on the main memory can be used effectively.
本発明によれば、フローティング演算プロセッサが実行
中に、プログラムの実行権が移動してもフローティング
演算レジスタの内容の退避回復処理を毎回行なう必要が
なくなるので、プログラムのスループットを良くするこ
とができる。According to the present invention, even if the right to execute a program is transferred during execution of a floating arithmetic processor, it is not necessary to save and recover the contents of the floating arithmetic register every time, so that the throughput of the program can be improved.
第1図は本発明の退避回復処理の手順を示すフローチャ
ート、第2図は従来のフローティング演算レジスタの退
避回復処理の説明図、第3図は本発明によるフローティ
ング演算レジスタの退避回復処理の説明図である。
100・・・主メモリ、105,106・・・プログラ
ム管理テーブル、120・・・フローティング演算プロ
セッサ、121・・・フローティング演算レジスタ。
210.220・・・フローティング演算プロセッサを
使用するか否かを示すプログラムのフラグ。
230.231・・・フローティング演算レジスタの絶
2図
1%0
手続補正書(方式)
特許庁 長 官志 賀 学 殿
事件の表示
昭和60年特許願第21716 号
発 明 の 名 称 フローティング演算プロセッサの
プログラム実行制御装置
hli正をする者
4G件との関係 特許出願人
と; M、+5101株式会社 日 立 製 イ乍
折代 理 人
居 帽〒1001東京都千代田区丸の内−丁目5番1
号体式会社 日立製作所内 ・i話東*212−111
1+大代ノ<)明細書の発明の詳細な説明の欄
明細書第4頁第7行ないし第10行を抹消し以下のよう
に訂正する。
の処理手順について述べ文献に、ニス・ケイ・ヮイ コ
ンピューターズ社の“ニス・ケイ・ワイコンピューター
ズ ファスト フローティング−ポイント プロセッサ
ー フォー マルチバスシステムズ システムインチブ
レイション マニュアル” (SKY Compute
rs社の“SKY Co+aputersFast F
loating−point Processor F
or MultibusSystems System
Intagration Manual”)がある。FIG. 1 is a flowchart showing the steps of the save and restore process of the present invention, FIG. 2 is an explanatory diagram of the conventional save and restore process for floating arithmetic registers, and FIG. 3 is an explanatory diagram of the save and restore process for floating arithmetic registers according to the present invention. It is. 100... Main memory, 105, 106... Program management table, 120... Floating arithmetic processor, 121... Floating arithmetic register. 210.220... Program flag indicating whether to use a floating arithmetic processor. 230.231... Floating arithmetic register failure 2 figure 1% 0 Procedural amendment (method) Indication of the case of Manabu Shiga, Commissioner of the Patent Office 1985 Patent Application No. 21716 Name of the invention Floating arithmetic processor Relationship between the person who corrects the program execution control device hli and the 4G matter Patent applicant and; M, +5101 Made by Hitachi, Ltd.
Osamu Oriyo Hitoi Hat Address: 5-1 Marunouchi-chome, Chiyoda-ku, Tokyo 1001
Number type company Hitachi, Ltd. ・i story East *212-111
1+Oshirono<) Lines 7 to 10 of page 4 of the specification in the Detailed Description of the Invention section of the specification are deleted and corrected as follows. A document that describes the processing procedure of SKY Compute is “SKY Compute Fast Floating-Point Processor for Multibus Systems System Inhibition Manual” by NIS
rs company “SKY Co+aputers Fast F”
floating-point Processor F
or Multibus Systems
There is a "Integration Manual").
Claims (1)
ステムにおいて、 プログラムが前記フローティング演算プロセッサを使用
するか否かを表わすフラグを前記プログラムを制御する
主メモリ上のエリアに設けることにより、前記フローテ
ィング演算プロセッサを使用して実行中の前記プログラ
ムが、実行を中断される時に、前記フローティング演算
プロセッサ内の計算レジスタの内容を前記主メモリ上の
前記エリアに退避する処理と前記プログラムが再開され
る時の退避内容を前記計算レジスタへ回復する処理を、
前記フラグの値にもとづいて停止することを特徴とする
フローティング演算プロセッサのプログラム実行制御装
置。[Claims] 1. In an electronic computer system having a floating arithmetic processor, a flag indicating whether or not a program uses the floating arithmetic processor is provided in an area on the main memory that controls the program. When the execution of the program being executed using the floating arithmetic processor is interrupted, the process of saving the contents of the calculation register in the floating arithmetic processor to the area on the main memory and restarting the program The process of restoring the saved contents of time to the calculation register,
A program execution control device for a floating arithmetic processor, characterized in that the program execution control device stops based on the value of the flag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60021716A JPS61183742A (en) | 1985-02-08 | 1985-02-08 | Program execution control device of floating operation processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60021716A JPS61183742A (en) | 1985-02-08 | 1985-02-08 | Program execution control device of floating operation processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61183742A true JPS61183742A (en) | 1986-08-16 |
Family
ID=12062794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60021716A Pending JPS61183742A (en) | 1985-02-08 | 1985-02-08 | Program execution control device of floating operation processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61183742A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08179947A (en) * | 1994-06-30 | 1996-07-12 | Sun Microsyst Inc | Application binary interface and method for interfacing of binary application program with digital computer |
JP2008545205A (en) * | 2005-06-30 | 2008-12-11 | インテル コーポレイション | System and method for optimizing OS context switching by instruction group trapping |
-
1985
- 1985-02-08 JP JP60021716A patent/JPS61183742A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08179947A (en) * | 1994-06-30 | 1996-07-12 | Sun Microsyst Inc | Application binary interface and method for interfacing of binary application program with digital computer |
JP2008545205A (en) * | 2005-06-30 | 2008-12-11 | インテル コーポレイション | System and method for optimizing OS context switching by instruction group trapping |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0319034B1 (en) | Method of recovering failure of online control program | |
JPS61183742A (en) | Program execution control device of floating operation processor | |
JP3122371B2 (en) | Computer system | |
JP3332098B2 (en) | Redundant processor unit | |
JPS6336023B2 (en) | ||
JPH03252748A (en) | Remote output system with monitoring function | |
JPS6159539A (en) | Register saving/restoration system of sub processor | |
JPS58217056A (en) | Task control system of multiprocessor system | |
JPS6121532A (en) | Scheduling method | |
JPH05165652A (en) | Task switching control method | |
KR910005757Y1 (en) | Handshaking circuit in multi-processor | |
JPS62125437A (en) | Control method for additional processor | |
JPS5717058A (en) | Control system of microprogram | |
JPS6380335A (en) | Starting system for background job | |
JPS62140144A (en) | Fault processing system | |
JPH0348940A (en) | Electronic computer system | |
JPH04171539A (en) | Duplex computer system | |
JPS63106850A (en) | Page fault restart processing system | |
JPS61226820A (en) | Data processing resuming system by power restoration | |
JPS61245244A (en) | Information system for input and output interruption of virtual computer system | |
JPS62168242A (en) | Debug system for subprocessor | |
JPS5932041A (en) | Program starting method | |
JPS6246341A (en) | I/o control method for additional processor | |
JPH04342031A (en) | Dealing system with flinching state in use of shaped file | |
JPS6030976B2 (en) | Advance control type information processing device |