Fix the swichover code. It's only for FULL_SYSTEM
cpu/base_cpu.cc: #ifdef FULL_SYSTEM --HG-- extra : convert_revision : 427ee93d545596da00d6c4688a7e32d584054948
This commit is contained in:
parent
7f688ba6a9
commit
31ccbde829
1 changed files with 2 additions and 0 deletions
|
@ -185,9 +185,11 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef FULL_SYSTEM
|
||||||
for (int i = 0; i < NumInterruptLevels; ++i)
|
for (int i = 0; i < NumInterruptLevels; ++i)
|
||||||
interrupts[i] = oldCPU->interrupts[i];
|
interrupts[i] = oldCPU->interrupts[i];
|
||||||
intstatus = oldCPU->intstatus;
|
intstatus = oldCPU->intstatus;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue