aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-08 12:35:25 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-19 12:28:59 +0100
commit8e98c27daacba2fac0cb868f905489b9a744a152 (patch)
treec19e514413c554a39e965d2ccaec8780816ea35f /system
parentf07f246734e271b368bfc9afc4cbc437999d58ea (diff)
downloadqemu-8e98c27daacba2fac0cb868f905489b9a744a152.zip
qemu-8e98c27daacba2fac0cb868f905489b9a744a152.tar.gz
qemu-8e98c27daacba2fac0cb868f905489b9a744a152.tar.bz2
system/cpu-timers: Introduce ICountMode enumerator
Rather than having to lookup for what the 0, 1, 2, ... icount values are, use a enum definition. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20231208113529.74067-4-philmd@linaro.org>
Diffstat (limited to 'system')
-rw-r--r--system/cpu-timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cpu-timers.c b/system/cpu-timers.c
index bdf3a41..0b31c9a 100644
--- a/system/cpu-timers.c
+++ b/system/cpu-timers.c
@@ -154,7 +154,7 @@ static bool adjust_timers_state_needed(void *opaque)
static bool icount_shift_state_needed(void *opaque)
{
- return icount_enabled() == 2;
+ return icount_enabled() == ICOUNT_ADAPTATIVE;
}
/*