mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
f07f246734
commit
8e98c27daa
5 changed files with 24 additions and 19 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
/* icount - Instruction Counter API */
|
||||
|
||||
int use_icount;
|
||||
ICountMode use_icount = ICOUNT_DISABLED;
|
||||
|
||||
void icount_update(CPUState *cpu)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue