JPH0283750A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0283750A
JPH0283750A JP63235062A JP23506288A JPH0283750A JP H0283750 A JPH0283750 A JP H0283750A JP 63235062 A JP63235062 A JP 63235062A JP 23506288 A JP23506288 A JP 23506288A JP H0283750 A JPH0283750 A JP H0283750A
Authority
JP
Japan
Prior art keywords
instruction
address
recorded
information
program
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
JP63235062A
Other languages
Japanese (ja)
Inventor
Katsumi Hayashida
克己 林田
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering Co 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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP63235062A priority Critical patent/JPH0283750A/en
Publication of JPH0283750A publication Critical patent/JPH0283750A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily obtain the executing information necessary for debugging jobs by providing a register which designates a program area to be recorded, an address comparator, an information memory, a word length memory for executed instructions, and an adder which produces the addresses of both memories. CONSTITUTION:The upper and lower limit registers 5 and 6 designate the instruction address areas of a program which records the history information. A comparator 7 decides the address areas designated by the registers 5 and 6. An adder 8 adds 1 every time an information processor 1 carries out an instruction. An information memory 3 has a recording area of a flag which identifies whether the relevant instruction is equal to a branch instruction or not and whether a program instruction is produced or not. Then the processor 1 compares and decides the addresses with each other in an instruction address area for each execution of an instruction and designates an address with the output of an adder 8 within a designated area. Then the history information and the instruction word length are recorded to the memories 3 and 4 respectively for each execution of an instruction. In such a constitution, the generation of an interruption and the failure of branch can be identified. Thus the availability of the memory part is improved and a program can be extended. Furthermore the instruction word length is easily decided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装置内で処理したプログラムの履歴
情報を効率良く記録する情報処理装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing apparatus that efficiently records history information of programs processed within the information processing apparatus.

〔従来の技術〕[Conventional technology]

従来、プログラムの履歴情報を記録する機能として、特
開昭59−161751号公報に記載のようにプログラ
ムの記録対象領域を指定する上・下限アドレスレジスタ
と、現実行命令アドレスと該上・下限アドレスレジスタ
との比較回路と命令アドレス対応に該当命令の履歴情報
を記録するメモリ部を備え、記録対象領域内の命令を実
行した時、該メモリ部に該当命令の実行・未実行・分岐
成功・不成功を識別するフラグを記録実行する方式があ
る。
Conventionally, as a function for recording program history information, as described in Japanese Patent Laid-Open No. 59-161751, upper and lower limit address registers are used to specify the recording target area of the program, the actual execution instruction address and the upper and lower limit addresses. It is equipped with a register comparison circuit and a memory section that records the history information of the corresponding instruction corresponding to the instruction address.When an instruction in the recording target area is executed, the memory section records whether the corresponding instruction was executed, not executed, branched successfully, or failed. There is a method of recording and executing a flag that identifies success.

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

履歴情報を記録すべきプログラム中の命令を実行中、プ
ログラム割込みが発生した場合、プログラム割込み発生
命令の命令実行情報は、プログラム割込みの発生要因に
より、記録されるケースと記録されないケースに分かれ
る。このような場合@記従来技術では、プログラム割込
みが発生し、命令実行情報が記録されたケースは、実行
した命令が正常終了したか否か、ブロクラム割込みが発
生したが命令実行と記録されたのか否かが識別できない
。ブロクラム割込みか発生して命令実行情報が記録され
なかったケースでは、前命令が分岐命令で分岐成功とな
り該当命令か命令未実行と記録されたのか否か、命令実
行中にプログラム割込みが発生し命令実行情報か記録さ
ねなかったのか否がか識別できない。又、前記従来技術
では分岐命令実行時、分岐不成功のケースは命令実行と
して記録されるために、分岐命令以外の命令を実行して
命令実行と記録されたのか否か、分岐命令を実行して分
岐不成功ケースなのか否がか識別できない。又、前記従
来技術では履歴情報として命令実行・未実行と分岐成功
・不成功を識別する2ピツ1〜のフラグを命令2バイト
単位に持っているために、記録すべきプログラム領域の
下限ア1〜レスかLとすると、フラグを記録するメモリ
部内のアドレスはL十〇、L−1−2,L+4・・・・
・となりメモリ部内のL+1.、T−7+37丁7+5
 ・・のアドレスで示される領域は未使用となってしま
う。又、下限アドレスLの命令が4ハイl−命令の場合
、この命令を実行すると2ヒツI・のフラグは先頭2ハ
イドに対してメモリ部に記録され、後半2ハイドに対し
ては、何も記録されない。つまり、メモリ部内のL+O
の領域に2ピッ1−のフラグが記録されL + 2番地
の領域は未使用となる。下限アドレスLの命令が6ハイ
I・命令の場合も同様に先頭2バイ1〜に対して2ビ′
ツ1−のフラグがδ己録される。つまり、メモリ部内の
1.十〇番地の領域に2ピツ1〜のフラグが記録され、
L+2番地の領域と1.+4番地の領域は未使用となっ
てしまう。このように前記従来技術では履歴情報を記録
するメモリ部が効率良く使用てきないという欠点がある
。又、)前記従来技術では、実行した命令の命令語長4
調へる場合、メモリ部内に記録された識別フラグを調へ
、そhによって命令語長を判断しなけれはならないとい
う欠点かある。本発明の目的は、前記従来の如き欠点を
解消し、履歴情報を記録するメモリ部を効率良く使用し
、プログラム実行で発生するイベンI〜の確認を可能に
し、プログラムのデパックに必要なプログラム実行情報
を容易に採取可能とする機能を実現することにある。
When a program interrupt occurs while executing an instruction in a program for which history information is to be recorded, the instruction execution information of the program interrupt generating instruction is divided into cases where it is recorded and cases where it is not recorded, depending on the cause of the program interrupt. In such a case, in the conventional technology, when a program interrupt occurs and instruction execution information is recorded, it is necessary to check whether the executed instruction terminated normally or whether a program interrupt occurred but was recorded as an instruction execution. It is not possible to determine whether or not. In the case where a program interrupt occurred and instruction execution information was not recorded, the previous instruction was a branch instruction and the branch was successful and the corresponding instruction was recorded as unexecuted. It is not possible to determine whether execution information was not recorded or not. In addition, in the prior art, when a branch instruction is executed, a case of branch failure is recorded as an instruction execution, so it is necessary to check whether an instruction other than the branch instruction was executed and recorded as an instruction execution. It is not possible to identify whether this is a branch failure case or not. In addition, in the conventional technology, since each instruction has flags of 2 bits 1 to 1 for identifying executed/unexecuted instructions and successful/unsuccessful branching as history information, the lower limit of the program area to be recorded is ~If the answer is L, the address in the memory section where the flag is recorded is L10, L-1-2, L+4...
・L+1 in the next memory section. , T-7+37-7+5
The area indicated by the address . . . becomes unused. Also, if the instruction at the lower limit address L is a 4-high l- instruction, when this instruction is executed, the 2-hi I flag is recorded in the memory section for the first 2 hides, and nothing is written for the latter 2 hides. Not recorded. In other words, L+O in the memory section
A flag of 2 pips 1- is recorded in the area, and the area at address L+2 becomes unused. Similarly, if the instruction at the lower limit address L is a 6-high I instruction, 2 bits' for the first 2 bytes 1~
The flag of TS1- is recorded. In other words, 1. A flag of 2 pits 1~ is recorded in the area of address 10,
The area at address L+2 and 1. The area at address +4 becomes unused. As described above, the prior art has a drawback in that the memory section for recording history information cannot be used efficiently. Furthermore, in the prior art, the instruction word length of the executed instruction is 4.
There is a drawback in that when the instruction word length is determined, the identification flag recorded in the memory section must be stored and the length of the instruction word must be determined based on the identification flag recorded in the memory section. An object of the present invention is to eliminate the above-mentioned conventional drawbacks, efficiently use the memory section for recording history information, enable confirmation of events I~ that occur during program execution, and enable program execution necessary for program depacking. The objective is to realize a function that allows information to be easily collected.

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

記録すべきプログラム中の命令を実行中にプログラム割
込みか発生すると、そのプログラム割込みの発生要因に
より、該当命令の実行情報が記録されるケースと記録さ
れないケースに別れる。つまり、プログラム割込み要因
が発生するまでの命令実行状態により区別される。そこ
で、プログラム割込みが発生する可能性かある命令か否
かを識別するブロクラム割込み発生命令識別フラグと、
その命令を実行した時にプログラム割込みが発生したか
否かを識別するプログラム割込み発生識別フラグを設け
ることにより解決できると考える。
When a program interrupt occurs during the execution of an instruction in a program to be recorded, depending on the cause of the program interrupt, there are cases in which the execution information of the relevant instruction is recorded and cases in which it is not recorded. In other words, they are distinguished by the instruction execution state until the program interrupt factor occurs. Therefore, a block diagram interrupt generation instruction identification flag is provided to identify whether an instruction has a possibility of generating a program interrupt or not.
We believe that this problem can be solved by providing a program interrupt occurrence identification flag that identifies whether a program interrupt has occurred when the instruction is executed.

分岐命令実行時に分岐不成功となった場合、分岐命令以
外の命令を実行したケースと同一の情報が記録されるた
めに分岐命令を実行し、分岐不成功となったのか否か、
分岐命令以外の命令を実行したのか否か識別できない。
If a branch fails when executing a branch instruction, the same information as when an instruction other than a branch instruction is executed is recorded, so whether the branch instruction was executed and the branch failed or not is recorded.
It is not possible to determine whether an instruction other than a branch instruction has been executed.

これを識別するためには、実行した命令が分岐動作命令
か否かを識別する分岐動作命令識別フラグを設けること
により解決できると考える。履歴情報を記録するメモリ
部を効率よく使用するためには、従来技術で未使用部に
なっているメモリ領域を使用すれば良いと考える。つま
り、従来技術のように命令2バイ1〜単位に履歴情報を
記録するのでなく、履歴情報を記録すべきプログラム領
域の開始アドレスを先頭アドレスとして]命令分の履歴
情報を記録する毎に先頭アドレスに1−づつ加算する加
算器を用意し、連続的なアドレスを生成し、これで示さ
れるメモリ部内の連続した記録領域に履歴情報を記録す
ることによって従来未使用だったメモリ領域を使用する
ことで解決できると考える。又、実行した命令の命令語
長を記録するメモリ部を設け、前記加p二器を併用し、
命令語長を記録することにより容易に実行した命令の命
令語長を知ることができる。
I believe that this problem can be solved by providing a branch instruction identification flag that identifies whether or not the executed instruction is a branch instruction. In order to efficiently use the memory section for recording history information, it is considered that it is sufficient to use the memory area that is an unused section in the conventional technology. In other words, instead of recording history information in units of instructions 2 by 1 as in the conventional technology, the start address of the program area where history information is to be recorded is set as the start address. By preparing an adder that adds 1- to 1-by-1, generating continuous addresses, and recording history information in the continuous recording area in the memory section indicated by these addresses, memory areas that were previously unused can be used. I think it can be solved. Further, a memory section is provided for recording the instruction word length of the executed instruction, and the above-mentioned adder is used in combination,
By recording the instruction word length, the instruction word length of the executed instruction can be easily known.

〔作用〕[Effect]

履歴情報を記録すべきプログラム領域の命令を実行した
場合、実行命令がプログラム割込みを発生する可能性が
あるか否かを命令コードで判断し、発生する可能性があ
る場合プログラム割込み発生命令識別フラグを1としメ
モリ部に書き込む。又、この命令を実行した時にプログ
ラム割込みが発生した場合は、プログラム割込み発生識
別フラグを1としメモリ部に書き込む。これにより命令
実行中にプログラム割込みが発生し、その発生要因によ
り命令実行・未実行識別フラグが記録されたか否かに係
ず、メモリ部に記録された上記2ビツトの識別フラグを
調べることにより命令実行中にプログラム割込みが発生
し、命令実行情報が記録されなかったのか否か、命令が
正常終了したか否か、命令が未実行となったのか否かの
識別が可能となる。又、分岐命令実行時は、分岐動作命
令識別フラグを1としメモリ部に記録する。これにより
、令を実行し分岐不成功となったのか否かの識別がメモ
リ部の分岐動作命令識別フラグを調べることにより識別
可能となる。又、履歴情報を記録すべきプログラム領域
の開始アドレスを先頭アドレスとして、加算器にて1づ
つ加え、連続したアドレスを生成させ、このアドレスで
示される履歴情報を記録するメモリ部に識別フラグを記
録することにより、メモリ部の使用効率を上げることが
できる。つまり、履歴情報を記録すべきプログラム領域
の開始アドレス・をLとすると、従来技術では命令2ハ
イI・単位に識別フラグを記録するために、L+O,L
+2.L+4・・・のアドレスで示されるメモリ領域に
記録していた。しかしLを先頭アドレスとしてこれに1
づつ加算する加算器を用いることによりL+O,L+1
.L+2といった連続的なアドレスを生成し、このアド
レスで示されるメモリ領域に識別フラグを記録すること
により従来未使用であった領域を使用し、メモリ部の使
用効率を上げ、記録すべきプログラム領域を拡大するこ
とができる。又、この加算器を併用し命令語長を記録す
るメモリ部を設け、命令語長を記録することにより、従
来技術ではメモリ部に記録された識別フラグを調べて判
断していた命令語長を命令語長を記録する専用のメモリ
部に記録された情報を調べることにより命令語長を容易
に知ることができ、加算器による連続したアドレスで示
されるメモリ部の連続した領域へ命令語長を記録するこ
とにより、メモリ部の使用効率を上げ、記録すべきプロ
グラム領域を拡大することができる。
When an instruction in a program area where history information is to be recorded is executed, it is determined based on the instruction code whether or not the executed instruction has a possibility of generating a program interrupt, and if there is a possibility that a program interrupt will occur, a program interrupt generation instruction identification flag is set. is set to 1 and written to the memory section. If a program interrupt occurs when this instruction is executed, the program interrupt occurrence identification flag is set to 1 and written into the memory section. As a result, a program interrupt occurs during instruction execution, and regardless of whether the instruction execution/non-execution identification flag is recorded due to the cause of the occurrence, the instruction can be detected by checking the 2-bit identification flag recorded in the memory section. It becomes possible to identify whether a program interrupt occurred during execution and instruction execution information was not recorded, whether the instruction ended normally, or whether the instruction remained unexecuted. When a branch instruction is executed, the branch operation instruction identification flag is set to 1 and recorded in the memory section. This makes it possible to identify whether or not a branch has failed after executing an instruction by checking the branch operation instruction identification flag in the memory section. Also, using the start address of the program area where history information is to be recorded as the first address, add one by one using an adder to generate continuous addresses, and record an identification flag in the memory section that records the history information indicated by this address. By doing so, it is possible to improve the usage efficiency of the memory section. In other words, if the start address of the program area where history information is to be recorded is L, then in the prior art, in order to record the identification flag in units of instruction 2 high I, L+O,L
+2. It was recorded in the memory area indicated by the address L+4... However, with L as the first address, this is 1
By using an adder that adds up L+O, L+1
.. By generating a continuous address such as L+2 and recording an identification flag in the memory area indicated by this address, previously unused areas can be used, increasing the efficiency of memory use and reducing the program area to be recorded. Can be expanded. In addition, by using this adder in combination with a memory section for recording the instruction word length, and recording the instruction word length, the instruction word length can be determined by checking the identification flag recorded in the memory section in the conventional technology. The length of the instruction word can be easily determined by checking the information recorded in the memory section dedicated to recording the length of the instruction word, and the length of the instruction word is stored in consecutive areas of the memory section indicated by consecutive addresses by the adder. By recording, it is possible to increase the usage efficiency of the memory unit and expand the program area to be recorded.

〔実施例〕 以下、本発明の一実施例を図面を用いて説明する。第1
図は本発明による履歴情報記録部100を情報処理装置
1に対して接続したものである。
[Example] An example of the present invention will be described below with reference to the drawings. 1st
The figure shows a history information recording unit 100 according to the present invention connected to an information processing device 1.

履歴情報記録部100は、履歴情報を記録すべきプログ
ラム領域の上限アドレスを指定する上限アドレスレジス
タ5.下限アドレスを指定する下限アドレスレジスタ6
、アドレス比較回路7、及び履歴情報を記録する情報記
録メモリ部3.情報処理装置1で実行した命令の命令語
長を記録する命令語長記録メモリ部4.情報記録メモリ
部3と命令語長記録メモリ部4の記録アドレスを生成す
る加算器8により構成されている。
The history information recording unit 100 has an upper limit address register 5. Lower limit address register 6 that specifies the lower limit address
, an address comparison circuit 7, and an information recording memory section 3 for recording history information. An instruction word length recording memory unit 4 for recording the instruction word length of an instruction executed by the information processing device 1. It is comprised of an adder 8 that generates recording addresses for the information recording memory section 3 and the instruction word length recording memory section 4.

以下、第1図の動作を説明する。情報処理装置1で実行
されている命令の次命令アドレス4バイトを経路aを介
して情報記録装置100が受は取る。その次命令アドレ
スXは経路在にてアドレス比較回路7に人力される。ア
ドレス比較回路7に入力されたべ命令アドレスXは予め
記録すべきプログラム領域として上限アドレスレジスタ
6、下限アドレスレジスタ5に設定されている上限アド
レスU、下限アドレスLと比較され、L≦X≦Uの条件
が成立したとき、経路りにて書き込み許可信号が情報記
録メモリ部3.命令語長記録メモリ部4と書き込み信号
生成回路9に入力される。情報記録メモリ部3に記録さ
れるデータは、情報処理装置1から経路Qにて分岐命令
時の分岐成功・不成功を識別する分岐成功・不成功識別
フラグ。
The operation shown in FIG. 1 will be explained below. The information recording device 100 receives 4 bytes of the next instruction address of the instruction being executed by the information processing device 1 via path a. The next instruction address X is manually input to the address comparison circuit 7 in the path. The instruction address X input to the address comparison circuit 7 is compared with the upper limit address U and lower limit address L, which are set in the upper limit address register 6 and lower limit address register 5 as the program area to be recorded in advance, and L≦X≦U. When the conditions are met, a write permission signal is sent to the information recording memory section 3. The command word length recording memory unit 4 and write signal generation circuit 9 are inputted. The data recorded in the information recording memory section 3 is a branch success/failure identification flag for identifying branch success/failure at the time of a branch instruction from the information processing device 1 on the path Q.

経路mにて命令の実行・未実行を識別する命令実行・未
実行識別フラグ、経路ルにて実行命令が分岐動作命令か
否か識別する分岐動作命令識別フラり、経路σにてプロ
タラム割込み発生命令か否かを識別するプログラム割込
み発生命令識別フラグ経路fにて命令実行時にプログラ
ム割込みが発生したか否かを識別するプログラム割込み
発生識別フラグのil’ 5ヒノ1−の識別フラグであ
る。この5ヒノ1〜の識別フラグのうち、経路Qにて送
出される分岐成功・不成功識別フラグと経路mにて送出
される命令実行・未実行訊別フラグの書き込みは経路/
1にで送出される分岐動作命哨識別フラグと経路ノ、に
て送出される書き込み許可信号を用い、書き込み信号生
成回路9にて決定される。つまり現実行命令の次命令ア
l−レスX′h′XL≦X≦Uて、現実行命令か分岐動
作命令以外の場合、経路rにて書き込み信号か送出され
経路Inにて送出される命令実行・未実行識別フラグか
情報記録メモリ部3に記録さJ]、る。現実行命令の次
命令アドレスXか1−1≦X≦Uて、現実行命令が分岐
動作命令の場合、経路lにて書き込み信号が送出され、
経路aにて送出された分岐成功・不成功識別フラグを情
報記録メモリ部3に記録する。5ヒツIへの識別フラグ
のうち、経路lにて送出される分岐動作命令識別フラグ
・経路。にて送出されるプログラム割込み発生命令識別
フラグ・経路、にて送出されるプロノラム割込み発生識
別フラグば、経路7.にて送出された書き込み許可信号
か発行された場合に情報記録メモリ部3に記録される。
An instruction execution/non-execution identification flag is used to identify whether an instruction has been executed or not executed on path m, a branch operation instruction identification flag is used on path 1 to identify whether an executed instruction is a branch operation instruction, and a protaram interrupt is generated on path σ. Program interrupt occurrence instruction identification flag for identifying whether a program interrupt has occurred during execution of an instruction on path f. Among the identification flags from 5 hino 1 to 5, the branch success/failure identification flag sent out on path Q and the instruction execution/non-execution discrimination flag sent out on path m are written in path/
The write signal generation circuit 9 uses the branch operation sentinel identification flag sent out at step 1 and the write permission signal sent out at path no. In other words, if the next instruction address of the actual execution instruction is X'h'XL≦X≦U, and the instruction is not an actual execution instruction or a branch operation instruction, a write signal is sent on the path r, and the instruction is sent out on the path In. An execution/non-execution identification flag is recorded in the information recording memory section 3. If the next instruction address of the actual execution instruction is X or 1-1≦X≦U, and the actual execution instruction is a branch operation instruction, a write signal is sent on path l,
The branch success/failure identification flag sent on route a is recorded in the information recording memory section 3. 5 Branch operation instruction identification flag/path sent out on path l among the identification flags to hit I. The program interrupt generation instruction identification flag sent out in path 7. The pronoram interrupt generation identification flag sent out in path 7. When the write permission signal sent in is issued, it is recorded in the information recording memory section 3.

情報記録メモリ部3内の記録アドレスは、加算器8によ
り決定される。情報処理装置子より経路Pにて情報記録
動作の開始を指示する信号が発行され、この信号が発行
された場合にセレクタ11−に入力されている次命令ア
ドレスXの後半2ハイl−Yとセレクタ12に人力され
ている0を選択する。経路49にて情報記録動作の開始
を指示する信号か発行さ扛た時の次命令アドレスXは下
限アドレスレジスタ5て指定された下限アドレス丁、と
同しである。つまりセLノクタ1千にて選択されたYは
ド限アドレスLの後半2ハイi−である。セレクタ11
−にて選択されたYとセレクタ1−2にて選択されたO
は各々経路心、経路スにて加算器8へ人力され加算動作
を行う。加算結果Yは、経路fを介して情報記録装置3
に送られ、次命令アI−レスXの後半2バイ1− Yが
情報記録メモリ部3の識別フラグを記録すべき領域の先
頭アドレスとなる。経路9にて情報記録動作の開始を指
示する信号が発行されない場合は、セレクタ1−1−に
経路fにて入力されたYとセレクタ12に入力された1
を選択し、各々経路り、経路イで加算器8に入力され加
算動作を行う。
The recording address in the information recording memory section 3 is determined by the adder 8. A signal instructing the start of information recording operation is issued from the information processing device through path P, and when this signal is issued, the second half of the next instruction address X input to the selector 11- is 0 manually entered in the selector 12 is selected. The next instruction address X when the signal instructing the start of the information recording operation is issued on the path 49 is the same as the lower limit address designated by the lower limit address register 5. In other words, the Y selected by the SEL node 1,000 is the latter half 2 high i- of the do limit address L. Selector 11
Y selected by - and O selected by selector 1-2
are manually inputted to the adder 8 at the path center and path S to perform the addition operation. The addition result Y is sent to the information recording device 3 via the path f.
The second half 2 bytes 1-Y of the next instruction address If the signal instructing the start of the information recording operation is not issued on the path 9, the Y input to the selector 1-1- on the path f and the 1 input to the selector 12 are
are selected and input to the adder 8 through the respective routes and routes A, and an addition operation is performed.

加算結果Y + 1−は経路fにて情報記録メモリ部3
に送られ、これか情報記録メモリ部3内の識別フラグの
記録アドレスとなる。このように次命令アドレスXの後
半2バイトYを先頭アドレスとして、加算器8にて1つ
つ加算し経路fにて次々と情報記録メモリ部3内の連続
した71−レスを示し、識別ヒラI−を連続したメモリ
領域に記録することによって情報記録メモリ部3を効率
良く利用できる。
The addition result Y + 1- is transferred to the information recording memory section 3 via path f.
This becomes the recording address of the identification flag in the information recording memory section 3. In this way, the second half 2 bytes Y of the next instruction address By recording - in a continuous memory area, the information recording memory section 3 can be used efficiently.

命令語長記録メモリ部4は、情報処理装置1より実行命
令の命令語長を表す3ビツトの情報を経路、にて受は取
り、経路力にて書き込み許可信号が発行された場合のみ
命令語長記録メモリ部4に経路9にて送出される3ピノ
1−の情報を記録する。
The instruction word length recording memory unit 4 receives 3-bit information representing the instruction word length of an execution instruction from the information processing device 1 via a path, and stores the instruction word only when a write permission signal is issued via the path. The information of 3 pins 1- sent out via path 9 is recorded in the long recording memory section 4.

命令語長記録メモリ部4の記録アト1ノスば加算器8を
併用し、経路fにて示され、情報記録メモリ部3内の識
別フラグを記録するアドレスと同一・アドレスへ記録さ
れる。命冷語長記録メモリ部4へ記録される命令語長を
表す3ヒツ[・の情報は図7に示す2ハイI−命令、4
バイ1−命令、6バイト命令の各々のピノ)〜パターン
で記録される。情報記録メモリ部3と命令語長記録メモ
リ部4の内容は、各々経路Z7.経路rにて情報処理装
置を介して主記憶装置へと読み出すことができる。
The instruction word length recording memory section 4 is recorded at the same address as the address at which the identification flag is recorded, as shown by the path f, by using the adder 8 as well. The information of 3hi which represents the instruction word length recorded in the meirei word length recording memory section 4 is shown in FIG.
Each byte instruction and 6-byte instruction are recorded in patterns. The contents of the information recording memory section 3 and the instruction word length recording memory section 4 are stored in the path Z7. It can be read out to the main storage device via the information processing device via path r.

第2.第3.第4図に示す分岐動作命令識)3リフラグ
とプロゲラ71割込み発生命令識別フラグとプログラム
割込み発生識別フラグを設けることにより命令実行の識
別を可とすることができる。又、第5図で示す実行した
命令の命令語長を表す3ビツトの情報とこれを記録する
第1図の命令語長記録メモリ部4を設けることにより、
実行した命令の命令語長を知ることができる。
Second. Third. Instruction execution can be identified by providing a branch operation instruction identification flag 3, a program interrupt generation instruction identification flag, and a program interrupt generation identification flag shown in FIG. Furthermore, by providing the 3-bit information representing the instruction word length of the executed instruction shown in FIG. 5 and the instruction word length recording memory section 4 shown in FIG. 1 for recording this information,
You can know the instruction word length of the executed instruction.

第6図、第7図を用いて本発明による識別フラグを第1
−図の情報記録メモリ部3に記録した例である。L’ 
十〇番地の内容はプログラム割込み発生命令以外の命令
を実行したケース、L′+1番地の内容はプログラム割
込み発生する可能性のある命令を実行したか、プログラ
ム割込みは発生しなかったと識別される。L′+2番地
の内容はプログラム割込みが発生する可能性のある命令
を実行し、プログラム割込みが発生したか命令実行情報
は記録されたと識別される。L’+4番地の内容は前命
令か分岐命令で分岐成功となり命令未実行になったと識
別できる。L′+5番地の内容はブロクラム割込みが発
生する可能性がある命令を実行し、プログラム割込みが
発生したため、命令実行情報力福己録されなかったと識
別できる。このようにプログラム割込み発生命令識別フ
ラグとプログラム割込み発生識別フラグを設けることに
より、命令実行中にプログラム割込みが発生したケース
を識別可とすることができる。又、第6図のU′−4番
地の内容とU′−3番地の内容は従来では両方とも命令
実行として記録されるが分岐動作命令識別フラグを用い
ることによってU’−4番地の内容は分岐動作命令以外
の命令を実行と識別され、U′−3番地の内容は分岐動
作命令を実行し、分岐不成功と識別することができる。
The first identification flag according to the present invention is shown in FIGS. 6 and 7.
- This is an example recorded in the information recording memory section 3 shown in the figure. L'
The contents of address 10 are identified as a case in which an instruction other than a program interrupt generation instruction was executed, and the contents of address L'+1 are identified as either an instruction that may cause a program interrupt was executed or a program interrupt did not occur. The contents of address L'+2 execute an instruction that may cause a program interrupt, and it is determined that whether a program interrupt has occurred or whether instruction execution information has been recorded. The contents of address L'+4 can be identified as a previous instruction or a branch instruction that resulted in a successful branch and the instruction was not executed. It can be determined that the contents of address L'+5 were not recorded because an instruction that could cause a program interrupt was executed and a program interrupt occurred. By providing the program interrupt occurrence instruction identification flag and the program interrupt occurrence identification flag in this way, it is possible to identify cases where a program interrupt occurs during instruction execution. Furthermore, the contents of address U'-4 and the contents of address U'-3 in Fig. 6 are conventionally recorded as instruction execution, but by using the branch operation instruction identification flag, the contents of address U'-4 can be changed. An instruction other than a branch action instruction is identified as being executed, and the contents of address U'-3 can be identified as a branch action instruction being executed and an unsuccessful branch.

識別フラグを記録する情報記録メモリ部4を効率良く使
用するために第1図の加算器8を設け、先頭アドレスに
1づつ加算することにより連続したアドレスを発生させ
、第6図に示すように連続した記録領域に識別フラグを
記録する。
In order to efficiently use the information recording memory section 4 for recording identification flags, the adder 8 shown in FIG. 1 is provided to generate continuous addresses by adding 1 to the first address, as shown in FIG. Record the identification flag in a continuous recording area.

第7図は第1図に示す命令語長記録メモリ部4の実際の
記録例である。このメモリ部も第1図の加算器8を併用
することによって連続したメモリ領域に第5図で示す命
令語長を表す3ピッ1−の情報を記録する。
FIG. 7 shows an actual recording example of the instruction word length recording memory section 4 shown in FIG. By using the adder 8 of FIG. 1 in combination with this memory section, information of 3 pips 1- representing the instruction word length shown in FIG. 5 is recorded in a continuous memory area.

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

本発明によれば、以下の効果が実現できる。 According to the present invention, the following effects can be achieved.

1)従来技術では識別不可であった、命令実行中にプロ
グラム割込みか発生したケース及び分岐命令実行時の分
岐不成功ケースを識別化とすることができる。
1) Cases in which a program interrupt occurs during instruction execution and cases in which a branch fails during execution of a branch instruction, which could not be identified using conventional techniques, can be identified.

2)従来技術では未使用であった履歴情報を記録・ 1
6 するメモリ部の領域を使用することにより、メモリ部の
使用効率を上げ、記録すべきプログラム領域を拡大する
ことができる。
2) Record history information that was unused in conventional technology.
6. By using the area of the memory section, it is possible to improve the usage efficiency of the memory section and expand the program area to be recorded.

3)従来技術ではメモリ部に記録された履歴情報を調べ
なければ判定できなかった実行した命令の命令語長が、
命令語長を記録するメモリ部を用いることによって容易
に知ることができる。
3) In the conventional technology, the instruction word length of the executed instruction could not be determined without checking the history information recorded in the memory section.
This can be easily determined by using a memory unit that records the instruction word length.

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

第1図は本発明の一実施例の構成図、第2図は従来使用
していた識別フラグの説明図、第3図は従来技術の実際
の記録例示図、第4.第5.第6図は本発明による識別
フラグの表現例示図、第7図は本発明によるBFfl情
報として記録される命令語長を表す3ピツ1〜の表現例
示図である。 1・情報処理装置、  2・・主記憶装置、3・・・情
報記録メモリ部、 4・・・命令語長記録メモリ部、 5・・・下限アドレスレジスタ、 6・・」二限アドレスレジスタ、 7・・アドレス比較回路、8 ・加算器、9 ・書き込
み信号生成回路、 10・インバータ、    11 ・セレクタ、12・
・セレクタ、    100・・・履歴情報記録部。 LかLへ功・不成功宮哉別7ラクパ 第 7図 −363=
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of identification flags used conventionally, FIG. 3 is a diagram illustrating an actual recording example of the prior art, and FIG. Fifth. FIG. 6 is a diagram illustrating the expression of the identification flag according to the present invention, and FIG. 7 is a diagram illustrating the expression of the three bits 1 to 1 representing the instruction word length recorded as BFfl information according to the present invention. 1. Information processing device, 2. Main storage device, 3. Information recording memory section, 4. Instruction word length recording memory section, 5. Lower limit address register, 6.. 2 limit address register, 7. Address comparison circuit, 8. Adder, 9. Write signal generation circuit, 10. Inverter, 11. Selector, 12.
- Selector, 100... History information recording section. Successful/unsuccessful Miyaya to L or L 7 Rakupa Figure 7-363=

Claims (1)

【特許請求の範囲】[Claims] 1、情報処理装置内で走行するプログラムの履歴情報を
記録する装置において、履歴情報を記録すべきプログラ
ムの命令アドレス領域を指定する上・下限アドレス・レ
ジスタと、現在実行中の命令アドレスが前記上・下限ア
ドレス・レジスタで指定された領域内か否かを判定する
比較回路と、命令実行毎に1づつ加算する加算器と、命
令実行毎に、該当命令が分岐命令、プログラム割込み発
生の有無を識別するフラグを記録する領域を有する情報
記録メモリ部を用い、情報処理装置が1命令実行する毎
に、その命令アドレスが指定領域内か否かを前記比較回
路で判定し、指定領域内にあると、前記加算器の出力で
示される値をアドレスとして用い、このアドレスによっ
て指定される前記情報記録メモリに履歴情報を命令実行
毎に記録する機能を有することを特徴とする情報処理装
置。
1. In a device that records history information of a program running in an information processing device, there are upper and lower limit address registers that specify the instruction address area of the program in which history information is to be recorded, and an address register that specifies the instruction address area of the program currently being executed.・A comparison circuit that determines whether or not it is within the area specified by the lower limit address register, an adder that adds 1 each time an instruction is executed, and a circuit that determines whether the corresponding instruction is a branch instruction or a program interrupt occurs each time an instruction is executed. Using an information recording memory section having an area for recording identification flags, each time the information processing device executes one instruction, the comparison circuit determines whether the instruction address is within the specified area, and whether or not the instruction address is within the specified area. An information processing apparatus characterized by having a function of using the value indicated by the output of the adder as an address and recording history information in the information recording memory specified by this address every time an instruction is executed.
JP63235062A 1988-09-21 1988-09-21 Information processor Pending JPH0283750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63235062A JPH0283750A (en) 1988-09-21 1988-09-21 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63235062A JPH0283750A (en) 1988-09-21 1988-09-21 Information processor

Publications (1)

Publication Number Publication Date
JPH0283750A true JPH0283750A (en) 1990-03-23

Family

ID=16980512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63235062A Pending JPH0283750A (en) 1988-09-21 1988-09-21 Information processor

Country Status (1)

Country Link
JP (1) JPH0283750A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device

Similar Documents

Publication Publication Date Title
US4961161A (en) Arithmetic processor performing mask and trap operations for exceptions
US5146586A (en) Arrangement for storing an execution history in an information processing unit
JPS593642A (en) Control register processing system
US6785883B1 (en) Software system for tracing data
JPH0283750A (en) Information processor
JP3157242B2 (en) Error handling method in micro program control
JPH04181331A (en) Instruction retry system
JPH0585925B2 (en)
JPS6270947A (en) Control system for debug interruption
JPS6212545B2 (en)
JPS5922147A (en) Checking system of retrial processing
JPS59163663A (en) Detecting method of breakdown of simple file
JPS6273345A (en) Information processor
JPH0210435A (en) Address trap circuit
JPS5938852A (en) Fault processing system
JPH02297235A (en) Memory data protecting circuit
JP2635169B2 (en) Micro program controller
JPH01300352A (en) Dump area instruction control system
JPS60178544A (en) Program error processing system
JPH1078884A (en) Method for restoring data using virtual storage
JPH04160655A (en) Execution detecting system
JPS619740A (en) Detector for protrusion of program area
JPH02302855A (en) Memory control system
JPH0535499A (en) Data processing device and method
JPS59161751A (en) Recording device for instruction run address