1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

SPU: Fixup breakpoints

This commit is contained in:
Eladash 2024-04-12 21:47:29 +03:00 committed by Elad Ashkenazi
parent a9fd2f76d2
commit 060ddca1ab
2 changed files with 2 additions and 2 deletions

View File

@ -1842,7 +1842,7 @@ void spu_thread::cpu_work()
const u32 pos_at = pc / 4;
const u32 pos_bit = 1u << (pos_at % 8);
if (local_breakpoints[pos_at] & pos_bit)
if (local_breakpoints[pos_at / 8] & pos_bit)
{
// Ignore repeatations until a different instruction is issued
if (pc != current_bp_pc)

View File

@ -151,7 +151,7 @@ void debugger_list::ShowAddress(u32 addr, bool select_addr, bool direct)
const u32 pos_at = pc / 4;
const u32 pos_bit = 1u << (pos_at % 8);
return !!((*spu_bps_list)[pos_at] & pos_bit);
return !!((*spu_bps_list)[pos_at / 8] & pos_bit);
}
default: return false;
}