mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-11-23 18:13:37 +00:00
arm_dynarmic: Implement GetVFPSystemReg/SetVFPSystemReg.
This commit is contained in:
parent
57ce84d471
commit
1b95f61d82
1 changed files with 12 additions and 5 deletions
|
@ -87,14 +87,21 @@ void ARM_Dynarmic::SetVFPReg(int index, u32 value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 ARM_Dynarmic::GetVFPSystemReg(VFPSystemRegister reg) const {
|
u32 ARM_Dynarmic::GetVFPSystemReg(VFPSystemRegister reg) const {
|
||||||
// TODO(bunnei): ImplementMe
|
if (reg == VFP_FPSCR) {
|
||||||
UNIMPLEMENTED();
|
return jit->Fpscr();
|
||||||
return 0;
|
}
|
||||||
|
|
||||||
|
// Dynarmic does not implement and/or expose other VFP registers, fallback to interpreter state
|
||||||
|
return interpreter_state->VFP[reg];
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM_Dynarmic::SetVFPSystemReg(VFPSystemRegister reg, u32 value) {
|
void ARM_Dynarmic::SetVFPSystemReg(VFPSystemRegister reg, u32 value) {
|
||||||
// TODO(bunnei): ImplementMe
|
if (reg == VFP_FPSCR) {
|
||||||
UNIMPLEMENTED();
|
jit->SetFpscr(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dynarmic does not implement and/or expose other VFP registers, fallback to interpreter state
|
||||||
|
interpreter_state->VFP[reg] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 ARM_Dynarmic::GetCPSR() const {
|
u32 ARM_Dynarmic::GetCPSR() const {
|
||||||
|
|
Loading…
Reference in a new issue