From: Mike Frysinger Date: Thu, 21 Dec 2023 05:00:49 +0000 (-0500) Subject: sim: mn10300: fix LAST_TIMER_REG typo X-Git-Tag: binutils-2_42~473 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0960c785ac2e4e166c19e4eaa36ff4ac913e7eb6;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/sim/mn10300/dv-mn103tim.c b/sim/mn10300/dv-mn103tim.c index 95ebc82b9e0..b1844a68e37 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, };