A32: Add ExceptionRaised IR instruction and use it

This commit is contained in:
MerryMage 2018-01-28 12:55:47 +00:00
parent 7ffbebf290
commit f023bbb893
7 changed files with 32 additions and 2 deletions

View file

@ -86,6 +86,10 @@ void IREmitter::CallSupervisor(const IR::U32& value) {
Inst(Opcode::A32CallSupervisor, value);
}
void IREmitter::ExceptionRaised(const Exception exception) {
Inst(Opcode::A64ExceptionRaised, Imm32(PC()), Imm64(static_cast<u64>(exception)));
}
IR::U32 IREmitter::GetCpsr() {
return Inst<IR::U32>(Opcode::A32GetCpsr);
}