Fix the swichover code. It's only for FULL_SYSTEM
authorNathan Binkert <binkertn@umich.edu>
Mon, 1 Mar 2004 03:56:42 +0000 (22:56 -0500)
committerNathan Binkert <binkertn@umich.edu>
Mon, 1 Mar 2004 03:56:42 +0000 (22:56 -0500)
cpu/base_cpu.cc:
    #ifdef FULL_SYSTEM

--HG--
extra : convert_revision : 427ee93d545596da00d6c4688a7e32d584054948

cpu/base_cpu.cc

index 19dd115987b107ecdb50d37521cb7fa0aa158964..367662f2593c137ffb02bd9c7c8a7b156239e26c 100644 (file)
@@ -185,9 +185,11 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU)
 #endif
     }
 
+#ifdef FULL_SYSTEM
     for (int i = 0; i < NumInterruptLevels; ++i)
         interrupts[i] = oldCPU->interrupts[i];
     intstatus = oldCPU->intstatus;
+#endif
 }