exec: do not define use_icount for user-mode emulation
PATCH 1/1 exec: do not define use_icount for user-mode emulation
use_icount is also defined by stubs/cpu-get-icount.c, we do not need to have a useless definition in exec.c.
Signed-off-by Paolo Bonzini <[email protected]>
--- exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
exec.c +4 -4
@@ -98,15 +98,15 @@ CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);/* current CPU in the current thread. It is only valid inside cpu_exec() */ __threadCPUState *current_cpu; -/* 0 = Do not count executed instructions. -1 = Precise instruction counting. -2 = Adaptive rate instruction counting. */ -int use_icount;uintptr_t qemu_host_page_size;intptr_t qemu_host_page_mask;#if !defined(CONFIG_USER_ONLY ) +/* 0 = Do not count executed instructions. +1 = Precise instruction counting. +2 = Adaptive rate instruction counting. */ +int use_icount;typedef struct PhysPageEntry PhysPageEntry ;
Signature · 1 line
2.21.0
Quoted 4 lines · Paolo Bonzini
use_icountis also defined bystubs/cpu-get-icount.c, we do not need to have a useless definition inexec.c.Signed-off-by Paolo Bonzini <[email protected]>
Reviewed-by Alex Bennée <[email protected]>
Quoted 27 lines
--- exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)exec.c +4
-4@@ -98,15 +98,15 @@ CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);/* current CPU in the current thread. It is only valid inside cpu_exec() */ __threadCPUState *current_cpu; -/* 0 = Do not count executed instructions. -1 = Precise instruction counting. -2 = Adaptive rate instruction counting. */ -int use_icount;uintptr_t qemu_host_page_size;intptr_t qemu_host_page_mask;#if !defined(CONFIG_USER_ONLY ) +/* 0 = Do not count executed instructions. +1 = Precise instruction counting. +2 = Adaptive rate instruction counting. */ +int use_icount;typedef struct PhysPageEntry PhysPageEntry ;
Signature · 1 line
Alex Bennée