forked from Imagelibrary/binutils-gdb
sim: replace CIA_{GET,SET} with CPU_PC_{GET,SET}
The CIA_{GET,SET} macros serve the same function as CPU_PC_{GET,SET}
except the latter adds a layer of indirection via the sim state. This
lets models set up different functions at runtime and doesn't reach so
directly into the arch-specific cpu state.
It also doesn't make sense to have two sets of macros that do exactly
the same thing, so lets standardize on the one that gets us more.
This commit is contained in:
@@ -69,7 +69,7 @@ extern void sim_engine_halt
|
||||
|
||||
#if !defined (SIM_ENGINE_HALT_HOOK)
|
||||
#define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) \
|
||||
if ((LAST_CPU) != NULL) CIA_SET (LAST_CPU, CIA)
|
||||
if ((LAST_CPU) != NULL) CPU_PC_SET (LAST_CPU, CIA)
|
||||
#endif
|
||||
|
||||
/* NB: If a port uses the SIM_CPU_EXCEPTION_* hooks, the default
|
||||
|
||||
Reference in New Issue
Block a user