Fix some watchpoints (nw)

This commit is contained in:
Olivier Galibert 2018-07-13 15:20:08 +02:00
parent 7b42461543
commit 177731f5dc

View File

@ -2841,9 +2841,9 @@ device_debug::watchpoint::watchpoint(device_debug* debugInterface,
if (end != rend)
{
if (endian == ENDIANNESS_LITTLE)
emask &= make_bitmask<u64>((rend + subamask + 1 - end) * unit_size);
emask &= make_bitmask<u64>((subamask + 1 + end - rend) * unit_size);
else
emask &= ~make_bitmask<u64>((end - rend) * unit_size);
emask &= ~make_bitmask<u64>((rend - end) * unit_size);
}
if (rend == (rstart | subamask) || smask == emask)