8-36
ZSIM Simulator
------------------------------------------ F(4:1)
(7)2007:6054:0:st r5, r4, 0
(6)2006:a051:0:add r5, 0x1
(5)2005:bc54:0:mov r5, r4
(4)2004:3400:1:movh r4, 0x0
------------------------------------------ G(4:1)
(3)2003:2460:0:movl r4, 0x60
(2)2002:a6d0:0:mov r13, 0x0
(1)2001:3cf7:0:movh r12, 0xf7
(0)2000:2cfb:1:movl r12, 0xfb
------------------------------------------ R(0:0)
------------------------------------------ E(0:0)
------------------------------------------ W(0:0)
zsim{7}>
show icache
I$[0]: 0x2000 V 0x2cfb V 0x3cf7 V 0xa6d0 V 0x2460
I$[1]: 0x2004 V 0x3400 V 0xbc54 V 0xa051 V 0x6054
I$[2]: ------ I ------ I ------ I ------ I ------
I$[3]: ------ I ------ I ------ I ------ I ------
I$[4]: ------ I ------ I ------ I ------ I ------
I$[5]: ------ I ------ I ------ I ------ I ------
I$[6]: ------ I ------ I ------ I ------ I ------
I$[7]: ------ I ------ I ------ I ------ I ------
zsim{8}> _
The simulator output below demonstrates use of the PC breakpoint. A
breakpoint is set for address 0x10 and the simulator is advanced.
Execution halts when the instruction associated with the breakpoint
address reaches the Group stage. The state of the pipeline and operand
registers are shown after the breakpoint halt occurs.
zsim{8}>
set break sym main
Breakpoint 1 on PC at address 0x2010 of main
zsim{9}>
enable trace write
***(info) Instruction trace is ON.
zsim{10}>
run
<6> (0) 0x2000 2cfb movl r12, 0xfb ! r12 = 0x00fb
<7> (1) 0x2001 3cf7 movh r12, 0xf7 ! r12 = 0xf7fb
<7> (2) 0x2002 a6d0 mov r13, 0x0 ! r13 = 0x0000
<8> (3) 0x2003 2460 movl r4, 0x60 ! r4 = 0x0060
<9> (4) 0x2004 3400 movh r4, 0x0 ! r4 = 0x0060
<10> (5) 0x2005 bc54 mov r5, r4 ! r5 = 0x0060
<11> (6) 0x2006 a051 add r5, 0x1 ! hwflag = 0x0030
<11> (6) 0x2006 a051 add r5, 0x1 ! r5 = 0x0061
<11> (7) 0x2007 6054 st r5, r4, 0 ! INT-DATA[0x0060] = 0x0061
<12> (9) 0x2009 2510 movl r5, 0x10 ! r5 = 0x0010
<13> (8) 0x2008 bb1d mov rpc, r13 ! rpc = 0x0000
<13> (10) 0x200a 3520 movh r5, 0x20 ! r5 = 0x2010
<14> (12) 0x200c a750 call r5 ! rpc = 0x200d
(PC BREAKPOINT #1)....................... CYCLE=000020 PC=0x2014
Trace information is displayed in six fields: