diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index fd8be6fdaa..b621568e22 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -167,7 +167,8 @@ static const HardHashTableEntry hardcodedHashes[] = { { 0x3ea41eafb53fc99a, 388, "logf", }, { 0x3fe38bff09ac3da0, 436, "_strtoul_r", }, { 0x40a25c7e1fd44fe2, 24, "fabsf", }, - { 0x410d48d9b6580b4a, 36, "dl_write_ztest", }, + // Unsafe due to immediates. + //{ 0x410d48d9b6580b4a, 36, "dl_write_ztest", }, { 0x42dc17c8018f30f2, 44, "vtan.s", }, { 0x436b07caa2aab931, 352, "acos", }, { 0x444472537eedf966, 32, "vmzero_q", }, @@ -345,7 +346,8 @@ static const HardHashTableEntry hardcodedHashes[] = { { 0xcdf64d21418b2667, 24, "vzero_q", }, { 0xce1c95ee25b8e2ea, 448, "fmod", }, { 0xce4d18a75b98859f, 40, "vector_add_t_2", }, - { 0xceb5372d0003d951, 52, "dl_write_stenciltest", }, + // Unsafe due to immediates. + //{ 0xceb5372d0003d951, 52, "dl_write_stenciltest", }, { 0xcee11483b550ce8f, 24, "vocp_q", }, { 0xcfecf208769ed5fd, 272, "cosf", }, { 0xd12a3a91e0040229, 524, "dl_write_enable_disable", }, diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 6e89500603..3ee72464e1 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -771,7 +771,6 @@ void GPUCommon::Execute_Ret(u32 op, u32 diff) { void GPUCommon::Execute_End(u32 op, u32 diff) { easy_guard guard(listLock); - const u32 data = op & 0x00FFFFFF; const u32 prev = Memory::ReadUnchecked_U32(currentList->pc - 4); UpdatePC(currentList->pc); switch (prev >> 24) { @@ -779,8 +778,8 @@ void GPUCommon::Execute_End(u32 op, u32 diff) { { // TODO: see http://code.google.com/p/jpcsp/source/detail?r=2935# SignalBehavior behaviour = static_cast((prev >> 16) & 0xFF); - int signal = prev & 0xFFFF; - int enddata = data & 0xFFFF; + const int signal = prev & 0xFFFF; + const int enddata = op & 0xFFFF; bool trigger = true; currentList->subIntrToken = signal;