]> git.proxmox.com Git - qemu.git/blobdiff - linux-user/main.c
PowerPC system emulation fixes (Jocelyn Mayer)
[qemu.git] / linux-user / main.c
index 21ddf7aeb938ab4e5affc27609718c6efabb40c8..60182923046ee6e37ab2bb6fb59a51cbc2eb68cb 100644 (file)
@@ -94,15 +94,15 @@ int cpu_inl(CPUState *env, int addr)
     return 0;
 }
 
-#ifdef TARGET_I386
-/***********************************************************/
-/* CPUX86 core interface */
-
-int cpu_x86_get_pic_interrupt(CPUState *env)
+int cpu_get_pic_interrupt(CPUState *env)
 {
     return -1;
 }
 
+#ifdef TARGET_I386
+/***********************************************************/
+/* CPUX86 core interface */
+
 static void write_dt(void *ptr, unsigned long addr, unsigned long limit, 
                      int flags)
 {
@@ -441,7 +441,6 @@ void cpu_loop (CPUSPARCState *env)
 #endif
 
 #ifdef TARGET_PPC
-
 void cpu_loop(CPUPPCState *env)
 {
     target_siginfo_t info;
@@ -769,6 +768,8 @@ void cpu_loop(CPUPPCState *env)
         case EXCP_INTERRUPT:
             /* Don't know why this should ever happen... */
             break;
+       case EXCP_DEBUG:
+           break;
         default:
             fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n", 
                     trapnr);