mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-03 13:14:42 +01:00
TranslateArm: Implement MRS, MSR (imm), MSR (reg)
This commit is contained in:
parent
30f3d869cc
commit
e164ede4dc
9 changed files with 95 additions and 10 deletions
|
|
@ -209,6 +209,16 @@ void EmitX64::EmitSetZFlag(IR::Block&, IR::Inst* inst) {
|
|||
}
|
||||
}
|
||||
|
||||
void EmitX64::EmitGetCpsr(IR::Block&, IR::Inst* inst) {
|
||||
X64Reg result = reg_alloc.DefRegister(inst, any_gpr);
|
||||
code->MOV(32, R(result), MJitStateCpsr());
|
||||
}
|
||||
|
||||
void EmitX64::EmitSetCpsr(IR::Block&, IR::Inst* inst) {
|
||||
X64Reg arg = reg_alloc.UseRegister(inst->GetArg(0), any_gpr);
|
||||
code->MOV(32, MJitStateCpsr(), R(arg));
|
||||
}
|
||||
|
||||
void EmitX64::EmitGetCFlag(IR::Block&, IR::Inst* inst) {
|
||||
X64Reg result = reg_alloc.DefRegister(inst, any_gpr);
|
||||
code->MOV(32, R(result), MJitStateCpsr());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue