forked from Imagelibrary/binutils-gdb
Replace global IPC with function argument cia or current instruction
address. Pass cia into calls to sim_engine_stop so that breakpoints et.al. work.
This commit is contained in:
@@ -296,9 +296,7 @@ struct _sim_cpu {
|
||||
|
||||
/* The following are internal simulator state variables: */
|
||||
#define CPU_CIA(CPU) (PC)
|
||||
address_word ipc; /* internal Instruction PC */
|
||||
address_word dspc; /* delay-slot PC */
|
||||
#define IPC ((STATE_CPU (sd,0))->ipc)
|
||||
#define DSPC ((STATE_CPU (sd,0))->dspc)
|
||||
|
||||
/* Issue a delay slot instruction immediatly by re-calling
|
||||
|
||||
Reference in New Issue
Block a user