summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-04-20 02:38:35 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-04-20 02:38:35 +0000
commite91eb4007cadfeccef7dd26206632495f18e146a (patch)
tree4b6d8eaee84aec743c6c2b7f3bef54ef41d4bf73 /src/emu/debug/debugcpu.c
parent9017dbad99fed00f555580b30078d95edd44d6da (diff)
Flipped the damn mem_mask. It is no longer inverted when passed to
read/write handlers. Updated all drivers accordingly. Hope I didn't miss anything important! Blame OG and smf for goading me into it. :)
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r--src/emu/debug/debugcpu.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index 7ff14e6e603..e2d60e79ad3 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -1320,7 +1320,7 @@ static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address
within_debugger_code = TRUE;
/* adjust address, size & value_to_write based on mem_mask. */
- if( mem_mask != 0 )
+ if (mem_mask != 0)
{
const debug_cpu_info *info = &debug_cpuinfo[cpunum];
int address_offset = 0;
@@ -1340,13 +1340,9 @@ static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address
}
if (info->endianness == CPU_IS_LE)
- {
address += address_offset;
- }
else
- {
address += bus_size - size - address_offset;
- }
}
/* if we are a write watchpoint, stash the value that will be written */