Don't let interupts interupt microcode at undesired points.

--HG--
extra : convert_revision : a8ddc6b213b1a1b0d9c5cd194b88ac0c6bfb2a21
This commit is contained in:
Gabe Black 2006-10-23 02:39:02 -04:00
parent a8973c6054
commit e9908e3c85
2 changed files with 4 additions and 2 deletions

View file

@ -448,7 +448,8 @@ AtomicSimpleCPU::tick()
for (int i = 0; i < width; ++i) {
numCycles++;
checkForInterrupts();
if (!curStaticInst || !curStaticInst->isDelayedCommit())
checkForInterrupts();
Fault fault = setupFetchRequest(ifetch_req);

View file

@ -427,7 +427,8 @@ TimingSimpleCPU::write(int32_t data, Addr addr, unsigned flags, uint64_t *res)
void
TimingSimpleCPU::fetch()
{
checkForInterrupts();
if (!curStaticInst || !curStaticInst->isDelayedCommit())
checkForInterrupts();
Request *ifetch_req = new Request();
ifetch_req->setThreadContext(cpu_id, /* thread ID */ 0);