aboutsummaryrefslogtreecommitdiff
path: root/sim/ft32/ft32-sim.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ft32/ft32-sim.h')
-rw-r--r--sim/ft32/ft32-sim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/ft32/ft32-sim.h b/sim/ft32/ft32-sim.h
index 27cb81c..968ef34 100644
--- a/sim/ft32/ft32-sim.h
+++ b/sim/ft32/ft32-sim.h
@@ -40,4 +40,6 @@ struct ft32_cpu_state {
int exception;
};
+#define FT32_SIM_CPU(cpu) ((struct ft32_cpu_state *) CPU_ARCH_DATA (cpu))
+
#endif /* _FT32_SIM_H_ */