cpu: get rid of the test workaround

now can we remove the pimpl?

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-27 22:40:44 +05:30
parent 03ebc6378a
commit 0f09874929
10 changed files with 551 additions and 420 deletions

View File

@@ -13,7 +13,7 @@ Psr::raw() const {
void
Psr::set_all(uint32_t raw) {
psr = raw & ~PSR_CLEAR_RESERVED;
psr = raw;
}
Mode
@@ -91,7 +91,7 @@ Psr::condition(Condition cond) const {
case Condition::LE:
return z() || (n() != v());
case Condition::AL:
return true && state() == State::Arm;
return true;
}
return false;