void ut_state_t::reset()
{
- run = false;
- XPR.reset();
- FPR.reset();
+ memset(this, 0, sizeof(*this));
}
void hwacha_t::reset()
}
if (!matched)
- h->take_exception(HWACHA_CAUSE_ILLEGAL_INSTRUCTION, insn.bits());
+ h->take_exception(HWACHA_CAUSE_ILLEGAL_INSTRUCTION, uint32_t(insn.bits()));
return npc;
}
cause = c;
aux = a;
raise_interrupt();
- if (!(p->get_state()->sr & SR_EI))
- throw std::logic_error("hwacha exception posted, but SR_EI bit not set!");
- throw std::logic_error("hwacha exception posted, but IM[COP] bit not set!");
+ throw std::logic_error("unreachable!");
}