aboutsummaryrefslogtreecommitdiff
path: root/target-lm32/cpu.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.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.h')
-rw-r--r--target-lm32/cpu.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h
index dbfe043551..101df8045c 100644
--- a/target-lm32/cpu.h
+++ b/target-lm32/cpu.h
@@ -177,23 +177,20 @@ struct CPULM32State {
DeviceState *juart_state;
/* processor core features */
- uint32_t features;
uint32_t flags;
- uint8_t num_bps;
- uint8_t num_wps;
};
#include "cpu-qom.h"
LM32CPU *cpu_lm32_init(const char *cpu_model);
-void cpu_lm32_list(FILE *f, fprintf_function cpu_fprintf);
int cpu_lm32_exec(CPULM32State *s);
/* you can call this signal handler from your SIGBUS and SIGSEGV
signal handlers to inform the virtual CPU of exceptions. non zero
is returned if the signal was handled by the virtual CPU. */
int cpu_lm32_signal_handler(int host_signum, void *pinfo,
void *puc);
+void lm32_cpu_list(FILE *f, fprintf_function cpu_fprintf);
void lm32_translate_init(void);
void cpu_lm32_set_phys_msb_ignore(CPULM32State *env, int value);
@@ -206,7 +203,7 @@ static inline CPULM32State *cpu_init(const char *cpu_model)
return &cpu->env;
}
-#define cpu_list cpu_lm32_list
+#define cpu_list lm32_cpu_list
#define cpu_exec cpu_lm32_exec
#define cpu_gen_code cpu_lm32_gen_code
#define cpu_signal_handler cpu_lm32_signal_handler