]> Git Repo - qemu.git/commitdiff
exec: do not define use_icount for user-mode emulation
authorPaolo Bonzini <[email protected]>
Tue, 4 Feb 2020 16:10:36 +0000 (17:10 +0100)
committerPaolo Bonzini <[email protected]>
Wed, 12 Feb 2020 15:28:01 +0000 (16:28 +0100)
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]>
Message-id: <20200204161036[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
exec.c

diff --git a/exec.c b/exec.c
index 67e520d18ea5b65932f899b6c5981c74cfc15992..5fc37460534cbddfa3f7f5eaeeb5671bfec57c18 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -98,15 +98,15 @@ CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);
 /* current CPU in the current thread. It is only valid inside
    cpu_exec() */
 __thread CPUState *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;
 
This page took 0.030225 seconds and 4 git commands to generate.