iR5900: Make const register write clearer

This was apparently sign extending anyway, but using SD makes it clear
that the 32-bit assignment will sign extend to 64-bit.
This commit is contained in:
Connor McLaughlin 2021-08-14 12:57:47 +10:00 committed by Kojin
parent a216f28c9d
commit d7de81aaaa
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ void recWritebackConstHILO(u64 res, int writed, int upper)
}
if (!writed || !_Rd_) return;
g_cpuConstRegs[_Rd_].UD[0] = (s32)(res & 0xffffffff); //that is the difference
g_cpuConstRegs[_Rd_].SD[0] = (s32)(res & 0xffffffffULL); //that is the difference
}
//// MULT