backend/arm64: Implement A32SetCpsrNZCV

This commit is contained in:
Merry 2022-07-23 14:54:30 +01:00 committed by merry
parent 67df13f886
commit 679efb9c44

View file

@ -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<>