Stepping with the foreground monitor
The last feature of the foreground monitor that needs to be evaluated is the
single-stepping facility. The emulator uses the processor trace facility to reenter the
monitor after executing exactly one instruction, unless an exception occurs.
b
tsto any
tg stat=11xxxxxxxx1x000xy
t
s
000000008@s - BRA.B $00000008
PC = 000000008@s
When a step command is issued, the emulator sets the trace bits in the SR, and then
performs a normal monitor exit. The emulator modifies the trace vector to transfer
control to the monitor. A typical trace of a single step is shown below:
Line addr,H 68040 Mnemonic
----- -------- ------------------------------------------
-42 000010f0 $00------ log sdata byte read
-41 00001e74 $4E714E71 log sprog long read
-40 00000200 $0000040B mmu twalk data long read <- twalk stack
-39 00000400 $0000060B mmu twalk data long read
-38 0000063c $0000F01B mmu twalk data long read
-37 0000f0ec $0008007C log sdata long read <- unstack
-36 0000f0e8 $A7000000 log sdata long read <- unstack
-35 00000200 $0000040B twalk prog long read <- twalk monitor
-34 00000400 $0000060B twalk prog long read
-33 00000600 $0000009f twalk prog long read
-32 00000008 $60FE0000 log sprog long read <- stepped inst
-31 0000000c $00000000 log sprog long read
-30 00000008 $60FE0000 log sprog long read
-29 0000000c $00000000 log sprog long read
-28 0000f0ec $00000008 log sdata long write <- stack address
-27 0000f0ea $----2024 log sdata word write <- stack format
-26 0000f0e6 $----0000 log sdata word write <- stack PC high
-25 0000f0e8 $0008---- log sdata word write <- stack PC low
-24 00000200 $0000040B mmu twalk data long read <- twalk vector
-23 00000400 $0000060B mmu twalk data long read
-22 00000600 $0000009F mmu twalk data long read
-21 00000024 $00001680 log sdata long read <- vector fetch
-20 0000f0e4 $A700---- log sdata word write <- stack SR
-19 00001680 $2F0D4BFA log sprog long read <- monitor
-18 00001684 $FB523ABC log sprog long read
-17 00001688 $20246000 log sprog long read
-16 0000168c $00924BFA log sprog long read
-15 0000f0e0 $00000000 log sdata long write
Chapter 18: Connecting the Emulator to a Target System
Installing Emulator Features
663
Summary of Contents for 64783A
Page 30: ...xxx ...
Page 31: ...Part 1 Quick Start Guide 1 ...
Page 33: ...1 Getting Started 3 ...
Page 70: ...40 ...
Page 75: ...Part 2 Using The Emulator 45 ...
Page 140: ...110 ...
Page 141: ...4 Using the Emulator How to control the processor and view system resources 111 ...
Page 227: ...5 Using the Emulation Bus Analyzer How to record program execution in real time 197 ...
Page 290: ...260 ...
Page 331: ...8 Configuring the Emulator 301 ...
Page 382: ...352 ...
Page 383: ...9 Solving Problems What to do when the emulator doesn t behave as expected 353 ...
Page 397: ...Part 3 Reference 367 ...
Page 399: ...10 Using Memory Management Understanding logical and physical emulation and analysis 369 ...
Page 429: ...11 Emulator Commands The command syntax reference for the emulator softkey interface 399 ...
Page 443: ...copy Chapter 11 Emulator Commands copy 413 ...
Page 451: ...display Chapter 11 Emulator Commands display 421 ...
Page 457: ...DISPLAY MEMORY Chapter 11 Emulator Commands DISPLAY MEMORY 427 ...
Page 461: ...DISPLAY MMU Chapter 11 Emulator Commands DISPLAY MMU 431 ...
Page 464: ...DISPLAY TRACE Chapter 11 Emulator Commands DISPLAY TRACE 434 ...
Page 480: ...modify Chapter 11 Emulator Commands modify 450 ...
Page 501: ...set Chapter 11 Emulator Commands set 471 ...
Page 514: ... SYMB Chapter 11 Emulator Commands SYMB 484 ...
Page 582: ...552 ...
Page 583: ...13 Setting X Resources 553 ...
Page 598: ...568 ...
Page 606: ...576 ...
Page 613: ...16 Specifications and Characteristics 583 ...
Page 627: ...Part 4 Concept Guide 597 ...
Page 629: ...17 X Resources and the Graphical User Interface 599 ...
Page 639: ...Part 5 Installation and Service Guide 609 ...
Page 697: ...19 Installation and Service 667 ...
Page 746: ...Chapter 19 Installation and Service Verifying the Installation 716 ...
Page 755: ...20 Installing Updating Emulator Firmware 725 ...
Page 762: ...732 ...
Page 778: ...748 ...
Page 810: ...X server 554 604 X Window System 54 Index 780 ...