aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-02-04 17:10:36 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-12 16:28:01 +0100
commitfe3dada3172310c7d3db666b4223d89e6c6f7fa3 (patch)
treec08992a301e740ddbaa9062a6ae1e711d791e32c /exec.c
parent1b29af2f41227aaa45f6331a993fe4afe45d53c2 (diff)
downloadqemu-fe3dada3172310c7d3db666b4223d89e6c6f7fa3.zip
qemu-fe3dada3172310c7d3db666b4223d89e6c6f7fa3.tar.gz
qemu-fe3dada3172310c7d3db666b4223d89e6c6f7fa3.tar.bz2
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 <pbonzini@redhat.com> Message-id: <20200204161036.20889-1-pbonzini@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exec.c b/exec.c
index 67e520d..5fc3746 100644
--- 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;