SimulatorController.cc: Tiny code simplification.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1509 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-08-27 12:00:26 +00:00
parent 55e8db971c
commit 36e4a77b4e

View File

@ -136,13 +136,11 @@ bool SimulatorController::addSuppressedInterrupt(unsigned interruptNum)
if (isSuppressedInterrupt(interruptNum+32))
return false; // already added: nothing to do here
if (interruptNum == ANY_INTERRUPT) {
if (interruptNum == ANY_INTERRUPT)
m_SuppressedInterrupts.push_back(interruptNum);
return true;
} else {
else
m_SuppressedInterrupts.push_back(interruptNum+32);
return true;
}
return true;
}
bool SimulatorController::removeSuppressedInterrupt(unsigned interruptNum)