OSDN Git Service

target-moxie: set do_interrupt to a target-specific helper function
authorDunrong Huang <huangdr@cloud-times.com>
Sun, 31 Mar 2013 01:35:53 +0000 (09:35 +0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 31 Mar 2013 18:26:31 +0000 (18:26 +0000)
commit5357406415571b3f03d05b60a143afdea2b9b1b9
tree20761639777b4ade7f1470a4cb39195bae4ad0f2
parent5e3a0f418c4d57399778cee0b55aebfb663b6425
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>
target-moxie/cpu.c
target-moxie/cpu.h
target-moxie/helper.c