mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
3604a76fea
commit
34f4aa83f9
5 changed files with 215 additions and 142 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue