mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-06 15:10:00 +01:00
backend/rv64: Implement A32SetCpsrNZCV
This commit is contained in:
parent
09c6f22da9
commit
208acb3026
@ -248,4 +248,14 @@ void EmitIR<IR::Opcode::A32SetCpsrNZC>(biscuit::Assembler& as, EmitContext& ctx,
|
||||
as.SW(Xscratch0, offsetof(A32JitState, cpsr_nzcv), Xstate);
|
||||
}
|
||||
|
||||
template<>
|
||||
void EmitIR<IR::Opcode::A32SetCpsrNZCV>(biscuit::Assembler& as, EmitContext& ctx, IR::Inst* inst) {
|
||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||
|
||||
auto Xnzcv = ctx.reg_alloc.ReadX(args[0]);
|
||||
RegAlloc::Realize(Xnzcv);
|
||||
|
||||
as.SW(Xnzcv, offsetof(A32JitState, cpsr_nzcv), Xstate);
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::Backend::RV64
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user