aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r--sim/common/sim-base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h
index 7418826..ffbdc16 100644
--- a/sim/common/sim-base.h
+++ b/sim/common/sim-base.h
@@ -201,6 +201,10 @@ typedef struct {
SIM_DESC state;
#define CPU_STATE(cpu) ((cpu)->base.state)
+ /* Processor specific core data */
+#define CPU_CORE(cpu) (& (cpu)->base.core)
+ sim_cpu_core core;
+
/* Trace data. See sim-trace.h. */
TRACE_DATA trace_data;
#define CPU_TRACE_DATA(cpu) (& (cpu)->base.trace_data)