From 0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 00:00:49 -0500 Subject: 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. --- sim/mn10300/dv-mn103tim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim') 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, }; -- cgit v1.1