summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-09-30 18:29:58 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-09-30 19:46:17 +0200
commitf5dfaff4174854c9ed22267bea1064bde1f23264 (patch)
tree80512d670ec66e097c838ad137425d6a0f2be49f
parente4d039bc0779e8602b66ea488de230d8b85fef9b (diff)
debugcpu: Fixed watchpoints for CPUs with a negative address shift. [Ryan Holtz]
-rw-r--r--src/emu/debug/debugcpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index c546cc66ffd..3ebd9951a8a 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -2747,7 +2747,7 @@ device_debug::watchpoint::watchpoint(device_debug* debugInterface,
std::fill(std::begin(m_end_address), std::end(m_end_address), 0);
std::fill(std::begin(m_masks), std::end(m_masks), 0);
- offs_t ashift = m_space.addr_shift();
+ int ashift = m_space.addr_shift();
endianness_t endian = m_space.endianness();
offs_t subamask = m_space.alignment() - 1;
offs_t unit_size = ashift <= 0 ? 8 << -ashift : 8 >> ashift;
@@ -2939,7 +2939,7 @@ void device_debug::watchpoint::triggered(read_or_write type, offs_t address, u64
// adjust address, size & value_to_write based on mem_mask.
offs_t size = 0;
- offs_t ashift = m_space.addr_shift();
+ int ashift = m_space.addr_shift();
offs_t unit_size = ashift <= 0 ? 8 << -ashift : 8 >> ashift;
u64 unit_mask = make_bitmask<u64>(unit_size);