Debugger: Make I/O register names be addresses instead of values
Jeffrey Pfau jeffrey@endrift.com
Fri, 13 Feb 2015 00:49:13 -0800
2 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -52,6 +52,7 @@ - GBA: Refactor gba-sensors and gba-gpio into gba-hardware
- GBA: Refactor gba directory, dropping gba- prefix and making supervisor directory - Debugger: Add support for soft breakpoints - Util: Use proper locale for reading and writing float values + - Debugger: Make I/O register names be addresses instead of values 0.1.1: (2015-01-24) Bugfixes:
M
src/gba/supervisor/cli.c
→
src/gba/supervisor/cli.c
@@ -78,12 +78,12 @@ return false;
} static uint32_t _GBACLIDebuggerLookupIdentifier(struct CLIDebuggerSystem* debugger, const char* name, struct CLIDebugVector* dv) { - struct GBACLIDebugger* gbaDebugger = (struct GBACLIDebugger*) debugger; + UNUSED(debugger); int i; for (i = 0; i < REG_MAX; i += 2) { const char* reg = GBAIORegisterNames[i >> 1]; if (reg && strcasecmp(reg, name) == 0) { - return GBALoad16(gbaDebugger->context->gba->cpu, BASE_IO | i, 0); + return BASE_IO | i; } } dv->type = CLIDV_ERROR_TYPE;