backend/arm64: Implement A32SetCpsrNZCV
This commit is contained in:
parent
67df13f886
commit
679efb9c44
1 changed files with 6 additions and 4 deletions
|
@ -237,10 +237,12 @@ void EmitIR<IR::Opcode::A32SetCpsr>(oaknut::CodeGenerator& code, EmitContext& ct
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::A32SetCpsrNZCV>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::A32SetCpsrNZCV>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
|
||||||
(void)inst;
|
auto Wnzcv = ctx.reg_alloc.ReadW(args[0]);
|
||||||
ASSERT_FALSE("Unimplemented");
|
RegAlloc::Realize(Wnzcv);
|
||||||
|
|
||||||
|
code.STR(Wnzcv, Xstate, offsetof(A32JitState, cpsr_nzcv));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Reference in a new issue