mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
Fix fatal error when attempting to set watchpoint covering unaligned portions of two adjacent native words
This commit is contained in:
parent
54b3e04d09
commit
788409adea
@ -2846,10 +2846,13 @@ device_debug::watchpoint::watchpoint(device_debug* debugInterface,
|
||||
}
|
||||
else
|
||||
{
|
||||
m_start_address[idx] = rstart;
|
||||
m_end_address[idx] = rend - subamask - 1;
|
||||
m_masks[idx] = mmask;
|
||||
idx++;
|
||||
if (rstart < rend - subamask)
|
||||
{
|
||||
m_start_address[idx] = rstart;
|
||||
m_end_address[idx] = rend - subamask - 1;
|
||||
m_masks[idx] = mmask;
|
||||
idx++;
|
||||
}
|
||||
m_start_address[idx] = rend - subamask;
|
||||
m_end_address[idx] = rend;
|
||||
m_masks[idx] = emask;
|
||||
|
Loading…
Reference in New Issue
Block a user