diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
commit | e95c8d51c2a47d7ccb422f83446cb91a18f8f37d (patch) | |
tree | 8a8e42f76ff8a7a6f02bda71f52306230e575c9c /cpu-exec.c | |
parent | 4971b827da65526bbe3e6a2ee2d9ba182f056ac5 (diff) | |
download | hqemu-e95c8d51c2a47d7ccb422f83446cb91a18f8f37d.zip hqemu-e95c8d51c2a47d7ccb422f83446cb91a18f8f37d.tar.gz |
full system SPARC emulation (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1087 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -208,6 +208,11 @@ int cpu_exec(CPUState *env1) env->exception_next_eip, 0); #elif defined(TARGET_PPC) do_interrupt(env); +#elif defined(TARGET_SPARC) + do_interrupt(env->exception_index, + 0, + env->error_code, + env->exception_next_pc, 0); #endif } env->exception_index = -1; @@ -261,6 +266,14 @@ int cpu_exec(CPUState *env1) env->interrupt_request &= ~CPU_INTERRUPT_TIMER; } } +#elif defined(TARGET_SPARC) + if (interrupt_request & CPU_INTERRUPT_HARD) { + do_interrupt(0, 0, 0, 0, 0); + env->interrupt_request &= ~CPU_INTERRUPT_HARD; + } else if (interrupt_request & CPU_INTERRUPT_TIMER) { + //do_interrupt(0, 0, 0, 0, 0); + env->interrupt_request &= ~CPU_INTERRUPT_TIMER; + } #endif if (interrupt_request & CPU_INTERRUPT_EXITTB) { env->interrupt_request &= ~CPU_INTERRUPT_EXITTB; |