PPCTables Housekeeping...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1399 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2008-12-04 19:17:37 +00:00
parent f3fb99446d
commit 6ea10dfa22
2 changed files with 22 additions and 27 deletions

View File

@ -579,10 +579,9 @@ void stwbrx(UGeckoInstruction _inst)
} }
// The following two instructions are for inter-cpu communications. On a single // The following two instructions are for SMP communications. On a single
// CPU, they cannot // CPU, they cannot fail unless an interrupt happens in between, which usually
// fail unless an interrupt happens in between, which usually won't happen with // won't happen with the JIT.
// the JIT.
bool g_bReserve = false; bool g_bReserve = false;
u32 g_reserveAddr; u32 g_reserveAddr;
@ -597,9 +596,6 @@ void lwarx(UGeckoInstruction _inst)
void stwcxd(UGeckoInstruction _inst) void stwcxd(UGeckoInstruction _inst)
{ {
// This instruction, too
//PanicAlert("stwcxd - suspicious instruction");
// Stores Word Conditional indeXed // Stores Word Conditional indeXed
u32 uAddress; u32 uAddress;
@ -612,8 +608,8 @@ void stwcxd(UGeckoInstruction _inst)
SetCRField(0, 2 | XER.SO); SetCRField(0, 2 | XER.SO);
return; return;
} }
} }
SetCRField(0, XER.SO); SetCRField(0, XER.SO);
} }

View File

@ -320,6 +320,8 @@ GekkoOPTemplate table31[] =
{534, Interpreter::lwbrx, Jit64::Default, {"lwbrx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0 | FL_IN_B}}, {534, Interpreter::lwbrx, Jit64::Default, {"lwbrx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0 | FL_IN_B}},
{790, Interpreter::lhbrx, Jit64::Default, {"lhbrx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0 | FL_IN_B}}, {790, Interpreter::lhbrx, Jit64::Default, {"lhbrx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0 | FL_IN_B}},
// Conditional load/store (Wii SMP)
{150, Interpreter::stwcxd, Jit64::Default, {"stwcxd", OPTYPE_STORE, 0}},
{20, Interpreter::lwarx, Jit64::Default, {"lwarx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0B}}, {20, Interpreter::lwarx, Jit64::Default, {"lwarx", OPTYPE_LOAD, FL_OUT_D | FL_IN_A0B}},
//load string (interpret these) //load string (interpret these)
@ -381,9 +383,6 @@ GekkoOPTemplate table31[] =
{306, Interpreter::tlbie, Jit64::Default, {"tlbie", OPTYPE_SYSTEM, 0}}, {306, Interpreter::tlbie, Jit64::Default, {"tlbie", OPTYPE_SYSTEM, 0}},
{370, Interpreter::tlbia, Jit64::Default, {"tlbia", OPTYPE_SYSTEM, 0}}, {370, Interpreter::tlbia, Jit64::Default, {"tlbia", OPTYPE_SYSTEM, 0}},
{566, Interpreter::tlbsync, Jit64::Default, {"tlbsync", OPTYPE_SYSTEM, 0}}, {566, Interpreter::tlbsync, Jit64::Default, {"tlbsync", OPTYPE_SYSTEM, 0}},
// Instructions used on Wii and thought not to be used by a Gekko
{150, Interpreter::stwcxd, Jit64::Default, {"stwcxd", OPTYPE_STORE, 0}},
}; };
GekkoOPTemplate table31_2[] = GekkoOPTemplate table31_2[] =