Commit 1a0c3292b58704843ab97e71c9836f653a31090b

Authored by bellard
1 parent 824d560f

sparc fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1290 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 3 deletions
cpu-exec.c
@@ -204,8 +204,7 @@ int cpu_exec(CPUState *env1) @@ -204,8 +204,7 @@ int cpu_exec(CPUState *env1)
204 #elif defined(TARGET_PPC) 204 #elif defined(TARGET_PPC)
205 do_interrupt(env); 205 do_interrupt(env);
206 #elif defined(TARGET_SPARC) 206 #elif defined(TARGET_SPARC)
207 - do_interrupt(env->exception_index,  
208 - env->error_code); 207 + do_interrupt(env->exception_index);
209 #endif 208 #endif
210 } 209 }
211 env->exception_index = -1; 210 env->exception_index = -1;
@@ -287,7 +286,7 @@ int cpu_exec(CPUState *env1) @@ -287,7 +286,7 @@ int cpu_exec(CPUState *env1)
287 } 286 }
288 #elif defined(TARGET_SPARC) 287 #elif defined(TARGET_SPARC)
289 if (interrupt_request & CPU_INTERRUPT_HARD) { 288 if (interrupt_request & CPU_INTERRUPT_HARD) {
290 - do_interrupt(env->interrupt_index, 0); 289 + do_interrupt(env->interrupt_index);
291 env->interrupt_request &= ~CPU_INTERRUPT_HARD; 290 env->interrupt_request &= ~CPU_INTERRUPT_HARD;
292 } else if (interrupt_request & CPU_INTERRUPT_TIMER) { 291 } else if (interrupt_request & CPU_INTERRUPT_TIMER) {
293 //do_interrupt(0, 0, 0, 0, 0); 292 //do_interrupt(0, 0, 0, 0, 0);