aboutsummaryrefslogtreecommitdiff
path: root/target-moxie/cpu.c
diff options
context:
space:
mode:
authorDunrong Huang <huangdr@cloud-times.com>2013-03-31 09:35:53 +0800
committerBlue Swirl <blauwirbel@gmail.com>2013-03-31 18:26:31 +0000
commit5357406415571b3f03d05b60a143afdea2b9b1b9 (patch)
tree20761639777b4ade7f1470a4cb39195bae4ad0f2 /target-moxie/cpu.c
parent5e3a0f418c4d57399778cee0b55aebfb663b6425 (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.c')
-rw-r--r--target-moxie/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c
index c17d3f0bb5..c0855f0573 100644
--- a/target-moxie/cpu.c
+++ b/target-moxie/cpu.c
@@ -98,6 +98,7 @@ static void moxie_cpu_class_init(ObjectClass *oc, void *data)
cc->class_by_name = moxie_cpu_class_by_name;
dc->vmsd = &vmstate_moxie_cpu;
+ cc->do_interrupt = moxie_cpu_do_interrupt;
}
static void moxielite_initfn(Object *obj)