Don't kill the registered irqs on reset.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 31 May 2007 16:18:58 +0000 (16:18 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 31 May 2007 16:18:58 +0000 (16:18 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2903 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/cpu.h

index 9fa0ca8..6dff8ef 100644 (file)
@@ -284,10 +284,8 @@ struct CPUMIPSState {
     int CCRes; /* Cycle count resolution/divisor */
     int Status_rw_bitmask; /* Read/write bits in CP0_Status */
 
-#if defined(CONFIG_USER_ONLY)
+#ifdef CONFIG_USER_ONLY
     target_ulong tls_value;
-#else
-    void *irq[8];
 #endif
 
     CPU_COMMON
@@ -298,6 +296,9 @@ struct CPUMIPSState {
     const char *initrd_filename;
 
     mips_def_t *cpu_model;
+#ifndef CONFIG_USER_ONLY
+    void *irq[8];
+#endif
 
     struct QEMUTimer *timer; /* Internal timer */
 };