mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
SPU/Debugger: Use bitset for breakpoints
This commit is contained in:
parent
7dc4ccc87d
commit
12bfc7d56a
4 changed files with 19 additions and 5 deletions
|
@ -1839,7 +1839,10 @@ void spu_thread::cpu_work()
|
|||
|
||||
if (has_active_local_bps)
|
||||
{
|
||||
if (local_breakpoints[pc / 4])
|
||||
const u32 pos_at = pc / 4;
|
||||
const u32 pos_bit = 1u << (pos_at % 8);
|
||||
|
||||
if (local_breakpoints[pos_at] & pos_bit)
|
||||
{
|
||||
// Ignore repeatations until a different instruction is issued
|
||||
if (pc != current_bp_pc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue