mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-07 23:18:10 +01:00
a32_jitstate: Remove fpsr_idc
We do not really have accurate FPSR state in any case.
This commit is contained in:
parent
6f49c0ef8e
commit
0de3993373
7 changed files with 16 additions and 46 deletions
|
|
@ -156,12 +156,10 @@ constexpr u32 FPSCR_NZCV_MASK = 0xF0000000;
|
|||
u32 A32JitState::Fpscr() const {
|
||||
ASSERT((fpcr_mode & ~FPSCR_MODE_MASK) == 0);
|
||||
ASSERT((fpsr_nzcv & ~FPSCR_NZCV_MASK) == 0);
|
||||
ASSERT((fpsr_idc & ~(1 << 7)) == 0);
|
||||
|
||||
u32 FPSCR = fpcr_mode | fpsr_nzcv;
|
||||
FPSCR |= (guest_MXCSR & 0b0000000000001); // IOC = IE
|
||||
FPSCR |= (guest_MXCSR & 0b0000000111100) >> 1; // IXC, UFC, OFC, DZC = PE, UE, OE, ZE
|
||||
FPSCR |= fpsr_idc;
|
||||
FPSCR |= fpsr_exc;
|
||||
|
||||
return FPSCR;
|
||||
|
|
@ -180,7 +178,6 @@ void A32JitState::SetFpscr(u32 FPSCR) {
|
|||
guest_MXCSR |= MXCSR_RMode[(FPSCR >> 22) & 0x3];
|
||||
|
||||
// Cumulative flags IDC, IOC, IXC, UFC, OFC, DZC
|
||||
fpsr_idc = 0;
|
||||
fpsr_exc = FPSCR & 0x9F;
|
||||
|
||||
if (Common::Bit<24>(FPSCR)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue