diff options
author | Dunrong Huang <huangdr@cloud-times.com> | 2013-03-31 09:35:53 +0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-03-31 18:26:31 +0000 |
commit | 5357406415571b3f03d05b60a143afdea2b9b1b9 (patch) | |
tree | 20761639777b4ade7f1470a4cb39195bae4ad0f2 /target-moxie/cpu.h | |
parent | 5e3a0f418c4d57399778cee0b55aebfb663b6425 (diff) |
target-moxie: set do_interrupt to a target-specific helper function
The value of "do_interrupt" member of CPUClass shoule be set to a
target-specific function, or it will lead to a segfault like below:
$ moxie-softmmu/qemu-system-moxie -M moxiesim
Segmentation fault
Cc: Anthony Green <green@moxielogic.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Andreas Färber <afaerber@suse.de>
Signed-off-by: Dunrong Huang <huangdr@cloud-times.com>
Signed-of-by: Anthony Green <green@moxielogic.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-moxie/cpu.h')
-rw-r--r-- | target-moxie/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/cpu.h b/target-moxie/cpu.h index b96236f76e..988729a06f 100644 --- a/target-moxie/cpu.h +++ b/target-moxie/cpu.h @@ -117,7 +117,7 @@ static inline MoxieCPU *moxie_env_get_cpu(CPUMoxieState *env) MoxieCPU *cpu_moxie_init(const char *cpu_model); int cpu_moxie_exec(CPUMoxieState *s); -void do_interrupt(CPUMoxieState *env); +void moxie_cpu_do_interrupt(CPUState *cs); void moxie_translate_init(void); int cpu_moxie_signal_handler(int host_signum, void *pinfo, void *puc); |