sim: mn10300: fix LAST_TIMER_REG typo
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 05:00:49 +0000 (00:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 05:02:18 +0000 (00:02 -0500)
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.

sim/mn10300/dv-mn103tim.c

index 95ebc82..b1844a6 100644 (file)
@@ -86,7 +86,7 @@ enum timer_register_types {
   TM6MDB,
   TM6CA,
   TM6CB,
-  LAST_TIMER_REG = TM6BC,
+  LAST_TIMER_REG = TM6CB,
 };