[PATCH/ccommitted,2/3] sim: mn10300: fix LAST_TIMER_REG typo

Message ID 20231221050315.23130-2-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,1/3] sim: bfin: clean up astat reg name decode a little |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Mike Frysinger Dec. 21, 2023, 5:03 a.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/sim/mn10300/dv-mn103tim.c b/sim/mn10300/dv-mn103tim.c
index 95ebc82b9e04..b1844a68e37e 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,
 };