aboutsummaryrefslogtreecommitdiff
path: root/target-lm32/cpu-qom.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2013-09-17 18:33:16 +0200
committerMichael Walle <michael@walle.cc>2014-02-04 19:34:30 +0100
commit34f4aa83f96722aa2c36fbe179108863ebe6e3e9 (patch)
tree93627b7981d9458d0d4de5d971baecbd2a688a1b /target-lm32/cpu-qom.h
parent3604a76fea6ff37738d4a8f596be38407be74a83 (diff)
target-lm32: move model features to LM32CPU
This allows us to completely remove CPULM32State from DisasContext. Instead, copy the fields we need to DisasContext. Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'target-lm32/cpu-qom.h')
-rw-r--r--target-lm32/cpu-qom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-lm32/cpu-qom.h b/target-lm32/cpu-qom.h
index 723f6049c3..9f15093879 100644
--- a/target-lm32/cpu-qom.h
+++ b/target-lm32/cpu-qom.h
@@ -60,6 +60,12 @@ typedef struct LM32CPU {
/*< public >*/
CPULM32State env;
+
+ uint32_t revision;
+ uint8_t num_interrupts;
+ uint8_t num_breakpoints;
+ uint8_t num_watchpoints;
+ uint32_t features;
} LM32CPU;
static inline LM32CPU *lm32_env_get_cpu(CPULM32State *env)