summaryrefslogtreecommitdiff
path: root/src/target/arm7tdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/arm7tdmi.c')
-rw-r--r--src/target/arm7tdmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm7tdmi.c b/src/target/arm7tdmi.c
index f6f0cef7..5f16f71f 100644
--- a/src/target/arm7tdmi.c
+++ b/src/target/arm7tdmi.c
@@ -644,11 +644,11 @@ void arm7tdmi_build_reg_cache(target_t *target)
}
if (arch_info->has_monitor_mode)
- (*cache_p)->next->reg_list[0].size = 6;
+ (*cache_p)->next->reg_list[EICE_DBG_CTRL].size = 6;
else
- (*cache_p)->next->reg_list[0].size = 3;
+ (*cache_p)->next->reg_list[EICE_DBG_CTRL].size = 3;
- (*cache_p)->next->reg_list[1].size = 5;
+ (*cache_p)->next->reg_list[EICE_DBG_STAT].size = 5;
}