aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 00:00:49 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 00:02:18 -0500
commit0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6 (patch)
tree6be5ace6c49c802976e4b92464c6b474629aa4e0 /sim
parent2f84390fd496ef153d7402896466f6303f249479 (diff)
downloadgdb-0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6.zip
gdb-0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6.tar.gz
gdb-0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6.tar.bz2
sim: mn10300: fix LAST_TIMER_REG typo
The compiler pointed out that we're testing LAST_TIMER_REG and LAST_COUNTER which are the same value ... and that's because we set LAST_TIMER_REG to the wrong register. Fix the typo.
Diffstat (limited to 'sim')
-rw-r--r--sim/mn10300/dv-mn103tim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mn10300/dv-mn103tim.c b/sim/mn10300/dv-mn103tim.c
index 95ebc82..b1844a6 100644
--- a/sim/mn10300/dv-mn103tim.c
+++ b/sim/mn10300/dv-mn103tim.c
@@ -86,7 +86,7 @@ enum timer_register_types {
TM6MDB,
TM6CA,
TM6CB,
- LAST_TIMER_REG = TM6BC,
+ LAST_TIMER_REG = TM6CB,
};