Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3000779B2 - Information collection method of processor execution status - Google Patents
[go: Go Back, main page]

JP3000779B2 - Information collection method of processor execution status - Google Patents

Information collection method of processor execution status

Info

Publication number
JP3000779B2
JP3000779B2 JP4042669A JP4266992A JP3000779B2 JP 3000779 B2 JP3000779 B2 JP 3000779B2 JP 4042669 A JP4042669 A JP 4042669A JP 4266992 A JP4266992 A JP 4266992A JP 3000779 B2 JP3000779 B2 JP 3000779B2
Authority
JP
Japan
Prior art keywords
processor
information
trace
instruction
address
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.)
Expired - Lifetime
Application number
JP4042669A
Other languages
Japanese (ja)
Other versions
JPH05241893A (en
Inventor
淳 藤平
連利 中野
和雄 長堀
久光 谷平
央 宮本
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 JP4042669A priority Critical patent/JP3000779B2/en
Publication of JPH05241893A publication Critical patent/JPH05241893A/en
Application granted granted Critical
Publication of JP3000779B2 publication Critical patent/JP3000779B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置におけるソ
フトウェアデバッグの情報収集方法に関する。情報処理
装置においては使用するソフトウェアが該装置に適合し
ているかどうかをチェックするため随時ソフトウェアを
デバッグすることが必要である。このソフトウェアのデ
バッグの方法としてはプログラムの走行アドレスをトレ
ースする方法があり、特に実際に動作させる装置にこの
機能が備わっているとデバッグに有用である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for collecting information for software debugging in an information processing apparatus. In an information processing apparatus, it is necessary to debug the software at any time in order to check whether software to be used is compatible with the apparatus. As a method of debugging the software, there is a method of tracing the running address of a program. In particular, it is useful for debugging if a device actually operated has this function.

【0002】しかしながら近年情報処理装置のアーキテ
クチャの進歩により、命令の先取りが行われるようにな
ると、メモリパス上に現れる命令フェッチ(取得)アド
レスとプロセッサの実行アドレスの対応は困難になり、
更に半導体テクノロジ(技術)の進歩によりキャッシュ
メモリ(主メモリの一部コピー)を1チップ内に集積し
た処理装置では、内蔵キャッシュメモリにヒットしたア
クセスは外部に現れないため、走行アドレスをトレース
することは不可能に近い。
However, in recent years, when the prefetching of instructions is performed due to the advance of the architecture of the information processing apparatus, it becomes difficult to correspond the instruction fetch (acquisition) address appearing on the memory path to the execution address of the processor.
Further, in a processing device in which a cache memory (a partial copy of the main memory) is integrated in one chip due to advances in semiconductor technology, accesses hitting the built-in cache memory do not appear to the outside. Is almost impossible.

【0003】一つの命令実行毎或いは、分岐命令実行毎
にデバッグトラップを発生させてソフトウェアにより情
報収集する方法もあるが、実動作状態でリアルタイムに
情報収集する方法は無く、プロセッサの実動作状態での
プログラムの走行アドレスをトレースする必要が生じて
きている。
[0003] There is also a method of generating information by software by generating a debug trap every time one instruction is executed or each time a branch instruction is executed. However, there is no method for collecting information in real time in an actual operation state. It has become necessary to trace the running address of the program.

【0004】[0004]

【従来の技術】従来の情報処理装置の実行状態における
情報収集方法のブロック構成図を図4に示す。図におい
て、21はプロセッサ(CPU)、22は主記憶装置(M
M)、23は入出力制御装置(IOC)、24はトレース制
御装置、25はアドレスバス、26はデータバス、27は制御
信号線を示す。入出力制御装置23にはディスク装置(H
D)、磁気テープ(MT)、コンソール(キーボード、
ディスプレイ)等の入出力装置が接続されている。
2. Description of the Related Art FIG. 4 is a block diagram showing a conventional information collecting method in an execution state of an information processing apparatus. In the figure, 21 is a processor (CPU), 22 is a main storage device (M
M) and 23 are input / output control devices (IOC), 24 is a trace control device, 25 is an address bus, 26 is a data bus, and 27 is a control signal line. A disk device (H
D), magnetic tape (MT), console (keyboard,
Input / output device such as a display) is connected.

【0005】プロセッサ21からは制御信号線27により各
種制御信号が主記憶装置22や入出力制御装置23等に送ら
れ、アドレスバス25によりアドレス信号が主記憶装置22
や入出力制御装置23やトレースメモリ24に送られ、デー
タバス26によりこれら各装置との間でデータ信号の送受
を行っている。トレース制御装置24はRAMと制御部か
ら構成され、プロセッサ21からのアドレス信号及びデー
タ信号をすべて受信し、受信した内容をトレースしてお
き制御信号により取り出すことが出来る。
Various control signals are sent from the processor 21 to a main storage device 22 and an input / output control device 23 via a control signal line 27, and an address signal is sent to the main storage device 22 via an address bus 25.
The data signal is sent to the input / output control device 23 and the trace memory 24, and a data bus is used to send and receive data signals to and from these devices. The trace control unit 24 is composed of a RAM and a control unit, receives all address signals and data signals from the processor 21, traces the received contents, and can take out the received contents by control signals.

【0006】CPU21はMM22に実行するアドレス命令
を送出し、MM22から命令を表すデータが出力される。
MM22から出力されたデータをCPU21で取り込み、入
出力装置やメモリに対する命令や演算に対する命令を実
行することができる。これらの命令アドレスやデータは
アドレスバス25やデータバス26により送受信されるが、
トレースメモリ24ではこれらのバスを監視してアドレス
命令やデータをトレース(蓄積)することができる。
The CPU 21 sends an address command to be executed to the MM 22, and data representing the command is output from the MM 22.
The data output from the MM 22 is fetched by the CPU 21 to execute an instruction for an input / output device or a memory or an instruction for an operation. These instruction addresses and data are transmitted and received via the address bus 25 and the data bus 26.
The trace memory 24 can monitor these buses and trace (accumulate) address instructions and data.

【0007】[0007]

【発明が解決しようとする課題】しかし、CPUからの
命令の先取りが行われると、メモリバス上に現れる命令
フェッチアドレスと実行アドレスの対応が難しくなり、
また、キャッシュメモリを1チップ内に集積したCPU
では、内蔵キャッシュにヒットしたアクセスは外部に現
れないため、走行アドレスをトレースすることは不可能
である。したがって、実動作状態でリアルタイムに情報
収集する方法がない。
However, if prefetching of an instruction from the CPU is performed, it becomes difficult to correspond the instruction fetch address and the execution address appearing on the memory bus.
Also, a CPU in which cache memory is integrated in one chip
In this case, since the access hitting the internal cache does not appear to the outside, it is impossible to trace the running address. Therefore, there is no method for collecting information in real time in an actual operation state.

【0008】本発明は、命令の先取りやキャッシュメモ
リの内蔵などによりバスの監視では実行状態の情報収集
が出来ないシステムに対して、実際の動作状態をリアル
タイムに情報収集する手段を開発することを目的とす
る。
An object of the present invention is to develop a means for real-time information collection of an actual operation state in a system in which execution state information cannot be collected by monitoring a bus due to prefetching of an instruction or a built-in cache memory. Aim.

【0009】[0009]

【課題を解決するための手段】本発明の原理構成図を図
1に示す。図において、1は通常モード用の第1のプロ
セッサ、2は主記憶装置、3は入出力制御装置、8はト
レースモード用の第2のプロセッサ、4はトレースメモ
リ、5はアドレスバス、6はデータバス、7は制御信号
線を示す。通常モード用の第1のプロセッサ1とトレー
スモード用の第2のプロセッサ8とは、同一構成の1チ
ップの集積回路であり、同一の内部動作を行う処理装置
である。
FIG. 1 is a block diagram showing the principle of the present invention. In the figure, 1 is a first processor for a normal mode, 2 is a main storage device, 3 is an input / output control device, 8 is a second processor for a trace mode, 4 is a trace memory, 5 is an address bus, and 6 is an address bus. The data bus 7 indicates a control signal line. The first processor 1 for the normal mode and the second processor 8 for the trace mode are one-chip integrated circuits having the same configuration, and are processing devices that perform the same internal operation.

【0010】第1のプロセッサ1は通常モードに設定さ
れデータ処理を行う。第2のプロセッサ8はトレースモ
ードに設定され、内部動作は第1のプロセッサ1と同一
で制御信号等の出力信号の替わりに実行アドレス情報を
出力する。実行アドレス情報はトレースメモリ4に格納
される。トレースメモリ4の内容は図示されない手段に
より、第1のプロセッサ1から、または専用のコンソー
ル等から読み出される。
The first processor 1 is set to the normal mode and performs data processing. The second processor 8 is set to the trace mode, and the internal operation is the same as that of the first processor 1 and outputs execution address information instead of an output signal such as a control signal. The execution address information is stored in the trace memory 4. The contents of the trace memory 4 are read from the first processor 1 or from a dedicated console or the like by means not shown.

【0011】[0011]

【作用】プロセッサ設定用に通常モードとトレースモー
ドを設け、外部から例えば端子の電位によってモードの
設定が行われるようにする。トレースモードにおいて、
プロセッサは入力信号に基づいて通常モードと全く同じ
データ処理を行い、通常モードにおいては外部の制御の
ためなどに用いられている出力端子を、実行中のアドレ
スとラッチタイミングの出力のために切り換える。入出
力端子は出力モードのときはハイ・インピーダンス状態
となる。
A normal mode and a trace mode are provided for setting a processor, and the mode is set externally by, for example, the potential of a terminal. In trace mode,
The processor performs the same data processing as in the normal mode based on the input signal, and switches the output terminal used for external control or the like in the normal mode for outputting the address being executed and the latch timing. The input / output terminal is in a high impedance state in the output mode.

【0012】トレースモードのプロセッサ8の入力端子
と入出力端子に、通常モードのプロセッサ1の入力端子
と入出力端子に接続されている信号線を接続して、トレ
ースモードのプロセッサ8と通常モードのプロセッサ1
を並列に配置して動作させることにより、通常モードの
プロセッサ1がデータ処理の結果を出力するのと同時
に、トレースモードのプロセッサ8が実行アドレスを出
力するようにして、実動作状態でリアルタイムの情報収
集が可能となる。
A signal line connected to the input terminal and the input / output terminal of the processor 1 in the normal mode is connected to the input terminal and the input / output terminal of the processor 8 in the trace mode. Processor 1
Are arranged in parallel, and the processor 1 in the normal mode outputs the result of the data processing, and at the same time, the processor 8 in the trace mode outputs the execution address. Collection becomes possible.

【0013】なおプロセッサはリセットによって、動作
に影響を与えるような内部の不定要素を無くすように構
成されているものとする。
[0013] It is assumed that the processor is configured to eliminate internal indeterminate elements that affect the operation by resetting.

【0014】[0014]

【実施例】本発明のプロセッサのブロック構成図の実施
例を図2と図3に示す。図2の実施例(その1)はトレ
ースメモリを外部に接続する場合を示し、図3の他の実
施例(その2)はトレースメモリを内蔵する場合を示
す。図において、11はプロセッサ(CPU)、12は命令
制御部(IU)、13は命令実行部(EU)、14はメモリ
アクセス制御部(SU)、15はバスアクセス制御部(B
U)、16はキャッシュメモリ(CM)、17はトレースメ
モリ(TM)を示す。
2 and 3 show an embodiment of a block diagram of a processor according to the present invention. The embodiment (part 1) of FIG. 2 shows a case where a trace memory is connected to the outside, and the other embodiment (part 2) of FIG. 3 shows a case where a trace memory is built-in. In the figure, 11 is a processor (CPU), 12 is an instruction control unit (IU), 13 is an instruction execution unit (EU), 14 is a memory access control unit (SU), and 15 is a bus access control unit (B
U) and 16 indicate a cache memory (CM), and 17 indicates a trace memory (TM).

【0015】図2の実施例(その1)において、バスア
クセス制御部15にセレクタ(SEL)を有し、モード切
換信号により通常モードかトレースモードかをセレクタ
が選択する。通常モードの場合はメモリアクセス制御部
14からの制御線cを選択し、トレースモードの場合は命
令制御部12のプログラムカウンタ(PC)からの内部情
報iを選択し、制御信号を外部のトレースメモリに接続
してラッチタイミングを送出すると共に実行アドレスを
送出する。
In the embodiment of FIG. 2 (part 1), the bus access control unit 15 has a selector (SEL), and the selector selects a normal mode or a trace mode by a mode switching signal. Memory access control unit in normal mode
14 is selected, and in the case of the trace mode, the internal information i from the program counter (PC) of the instruction control unit 12 is selected, and the control signal is connected to an external trace memory to send the latch timing. Together with the execution address.

【0016】命令実行部13は演算ユニット(AU)とレ
ジスタセット(R)からなり、メモリアクセス制御部14
に命令を出し、メモリアクセス制御部14は命令制御部12
と命令実行部13からの命令をキャッシュメモリ16にアク
セスすると共に、バスアクセス制御部15によりバスを経
由して主メモリにアクセスする。したがって通常モード
の場合もトレースモードの場合も実行アドレスは同一で
ある。
The instruction execution unit 13 comprises an operation unit (AU) and a register set (R).
Command, and the memory access control unit 14
The instruction from the instruction execution unit 13 accesses the cache memory 16 and the bus access control unit 15 accesses the main memory via the bus. Therefore, the execution address is the same in both the normal mode and the trace mode.

【0017】図3の他の実施例(その2)において、ト
レースメモリ17はプロセッサ11に内蔵されており、命令
制御部12のプログラムカウンタ(PC)からの内部情報
iを常時蓄積しておき、バスアクセス制御部15を出力指
示信号DUMPにより制御することにより、トレースメ
モリ17に蓄積されている内部情報を出力指示することが
出来る。出力指示はソフトウェアにより指示することも
出来る。なお、点線内の部分はピギーバック搭載(二重
チップ搭載)とすることも可能である。
In another embodiment (part 2) of FIG. 3, the trace memory 17 is built in the processor 11, and the internal information i from the program counter (PC) of the instruction control unit 12 is always stored. By controlling the bus access control unit 15 with the output instruction signal DUMP, the internal information stored in the trace memory 17 can be output. The output instruction can be given by software. Note that the portion within the dotted line can be mounted with a piggyback (double chip mounted).

【0018】[0018]

【発明の効果】命令先取りのための命令プリフェッチや
キャッシュメモリの内蔵などにより、バスの監視では実
行状態の情報収集ができないシステムに対して、実際の
動作状態をリアルタイムに情報収集する手段が得られ
る。
According to the present invention, a means for collecting information on an actual operation state in real time can be obtained for a system in which execution state information cannot be collected by monitoring a bus, due to an instruction prefetch for instruction prefetching and a built-in cache memory. .

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

【図1】 本発明の原理構成図FIG. 1 is a diagram showing the principle configuration of the present invention.

【図2】 実施例のブロック構成図(その1)FIG. 2 is a block diagram of an embodiment (part 1);

【図3】 実施例のブロック構成図(その2)FIG. 3 is a block diagram of an embodiment (part 2);

【図4】 従来例のブロック構成図FIG. 4 is a block diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 第1のプロセッサ 2,22 主記憶装置 3,23 入出力制御装置 4,24,17 トレースメモリ 5,25 アドレスバス 6,26 データバス 7,27 制御信号線 8 第2のプロセッサ 11,21 プロセッサ 12 命令制御部 13 命令実行部 14 メモリアクセス制御部 15 バスアクセス制御部 16 キャッシュメモリ DESCRIPTION OF SYMBOLS 1 First processor 2, 22 Main storage device 3, 23 I / O controller 4, 24, 17 Trace memory 5, 25 Address bus 6, 26 Data bus 7, 27 Control signal line 8 Second processor 11, 21 Processor 12 Instruction control unit 13 Instruction execution unit 14 Memory access control unit 15 Bus access control unit 16 Cache memory

───────────────────────────────────────────────────── フロントページの続き (72)発明者 谷平 久光 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 宮本 央 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平3−129440(JP,A) 特開 平2−310738(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 11/28 310 G06F 11/34 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hisamitsu Yanahira 1015 Uedanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Prefecture Inside Fujitsu Co., Ltd. 56) References JP-A-3-129440 (JP, A) JP-A-2-310738 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 11/28 310 G06F 11 / 34

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 通常モード用の第1のプロセッサ(1)
と主記憶装置(2)と入出力制御装置(3)との間を、
アドレスバス(5)とデータバス(6)と制御信号線
(7)により接続して情報処理動作を行う情報処理装置
において、 該通常モード用の第1のプロセッサ(1)と同一構成の
1チップの集積回路で同一の内部動作を行うトレースモ
ード用の第2のプロセッサ(8)と、該第2のプロセッ
サ(8)に接続されるトレースメモリ(4)を設け、 該第1のプロセッサ(1)は通常モードに設定されデー
タ処理を行い、該第2のプロセッサ(8)はトレースモ
ードに設定され、該第2のプロセッサ(8)の内部動作
は該第1のプロセッサ(1)と同一で制御信号等の出力
信号の替わりに実行アドレス情報を出力し、該実行アド
レス情報はトレースメモリ(4)に格納されることを特
徴とするプロセッサの実行状態の情報収集方法。
A first processor for a normal mode (1)
And between the main storage device (2) and the input / output control device (3)
In an information processing apparatus which performs an information processing operation by being connected to an address bus (5), a data bus (6) and a control signal line (7), one chip having the same configuration as the first processor (1) for the normal mode And a trace memory (4) connected to the second processor (8) for performing the same internal operation in the integrated circuit of the first processor (1). ) Is set to the normal mode to perform data processing, the second processor (8) is set to the trace mode, and the internal operation of the second processor (8) is the same as that of the first processor (1). A method for collecting execution state information of a processor, comprising outputting execution address information instead of an output signal such as a control signal, and storing the execution address information in a trace memory (4).
【請求項2】 上記情報処理装置において、該第2のプ
ロセッサ(8)に接続されるトレースメモリ(4)を該
第2のプロセッサ(8)のチップ内に設け、該トレース
メモリ(4)内に格納されている情報の出力指示を外部
からの制御信号により行うことを特徴とするプロセッサ
の実行状態の情報収集方法。
2. In the information processing apparatus, a trace memory (4) connected to the second processor (8) is provided in a chip of the second processor (8). A method for collecting information on the execution state of a processor, wherein an instruction to output information stored in the processor is issued by an external control signal.
JP4042669A 1992-02-28 1992-02-28 Information collection method of processor execution status Expired - Lifetime JP3000779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4042669A JP3000779B2 (en) 1992-02-28 1992-02-28 Information collection method of processor execution status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4042669A JP3000779B2 (en) 1992-02-28 1992-02-28 Information collection method of processor execution status

Publications (2)

Publication Number Publication Date
JPH05241893A JPH05241893A (en) 1993-09-21
JP3000779B2 true JP3000779B2 (en) 2000-01-17

Family

ID=12642435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4042669A Expired - Lifetime JP3000779B2 (en) 1992-02-28 1992-02-28 Information collection method of processor execution status

Country Status (1)

Country Link
JP (1) JP3000779B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5850732B2 (en) * 2011-12-14 2016-02-03 ルネサスエレクトロニクス株式会社 Semiconductor device and control method thereof

Also Published As

Publication number Publication date
JPH05241893A (en) 1993-09-21

Similar Documents

Publication Publication Date Title
US6530076B1 (en) Data processing system processor dynamic selection of internal signal tracing
US5345580A (en) Microprocessor device and emulator device thereof
JP2731692B2 (en) Debug device
US5784625A (en) Method and apparatus for effecting a soft reset in a processor device without requiring a dedicated external pin
JPH055136B2 (en)
US5289587A (en) Apparatus for and method of providing the program counter of a microprocessor external to the device
US20060117224A1 (en) Trace and debug method and system for a processor
US5574937A (en) Method and apparatus for improving instruction tracing operations in a computer system
US6598150B2 (en) Asynchronously accessing the program counter values of a data processing system by applying an independent clock on the latching and scan-chain circuits
JP3000779B2 (en) Information collection method of processor execution status
JP3380827B2 (en) Emulator device
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
EP0436211A2 (en) Method and apparatus for observing internal memory-mapped registers
JP2578182B2 (en) Data processing device and data processing system
JPS59112350A (en) Supervising and controlling system of program
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPS62130437A (en) Lsi tracing system
JP2520158B2 (en) Debugging method of digital signal processor
JPS6358552A (en) Microprocessor
JPH05324396A (en) Program run history recording method
JPS59202546A (en) Debugging device
JPS6129956A (en) Memory control unit
JPH0863368A (en) Emulators and microcomputers
JPH02150931A (en) Information processor
JPH04350735A (en) Microprocessor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991012