PowerPC: Parametrize HID2 macro.
This commit is contained in:
5 files changed
+12
-11
No files matched your search
@@ -64,10 +64,11 @@ bool IsPairedSingleInstruction(UGeckoInstruction inst)
|
||||
// but HID2.LSQE is not set.
|
||||
bool IsInvalidPairedSingleExecution(UGeckoInstruction inst)
|
||||
{
|
||||
if (!HID2.PSE && IsPairedSingleInstruction(inst))
|
||||
if (!HID2(PowerPC::ppcState).PSE && IsPairedSingleInstruction(inst))
|
||||
return true;
|
||||
|
||||
return HID2.PSE && !HID2.LSQE && IsPairedSingleQuantizedNonIndexedInstruction(inst);
|
||||
return HID2(PowerPC::ppcState).PSE && !HID2(PowerPC::ppcState).LSQE &&
|
||||
IsPairedSingleQuantizedNonIndexedInstruction(inst);
|
||||
}
|
||||
|
||||
void UpdatePC()
|
||||
|
||||
@@ -525,7 +525,7 @@ void Interpreter::dcbz(UGeckoInstruction inst)
|
||||
|
||||
void Interpreter::dcbz_l(UGeckoInstruction inst)
|
||||
{
|
||||
if (!HID2.LCE)
|
||||
if (!HID2(PowerPC::ppcState).LCE)
|
||||
{
|
||||
GenerateProgramException(ProgramExceptionCause::IllegalInstruction);
|
||||
return;
|
||||
|
||||
@@ -310,7 +310,7 @@ static void Helper_Dequantize(PowerPC::PowerPCState* ppcs, u32 addr, u32 instI,
|
||||
|
||||
void Interpreter::psq_l(UGeckoInstruction inst)
|
||||
{
|
||||
if (HID2.LSQE == 0)
|
||||
if (HID2(PowerPC::ppcState).LSQE == 0)
|
||||
{
|
||||
GenerateProgramException(ProgramExceptionCause::IllegalInstruction);
|
||||
return;
|
||||
@@ -322,7 +322,7 @@ void Interpreter::psq_l(UGeckoInstruction inst)
|
||||
|
||||
void Interpreter::psq_lu(UGeckoInstruction inst)
|
||||
{
|
||||
if (HID2.LSQE == 0)
|
||||
if (HID2(PowerPC::ppcState).LSQE == 0)
|
||||
{
|
||||
GenerateProgramException(ProgramExceptionCause::IllegalInstruction);
|
||||
return;
|
||||
@@ -341,7 +341,7 @@ void Interpreter::psq_lu(UGeckoInstruction inst)
|
||||
|
||||
void Interpreter::psq_st(UGeckoInstruction inst)
|
||||
{
|
||||
if (HID2.LSQE == 0)
|
||||
if (HID2(PowerPC::ppcState).LSQE == 0)
|
||||
{
|
||||
GenerateProgramException(ProgramExceptionCause::IllegalInstruction);
|
||||
return;
|
||||
@@ -353,7 +353,7 @@ void Interpreter::psq_st(UGeckoInstruction inst)
|
||||
|
||||
void Interpreter::psq_stu(UGeckoInstruction inst)
|
||||
{
|
||||
if (HID2.LSQE == 0)
|
||||
if (HID2(PowerPC::ppcState).LSQE == 0)
|
||||
{
|
||||
GenerateProgramException(ProgramExceptionCause::IllegalInstruction);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user