Skip to content

Commit

Permalink
exec: do not define use_icount for user-mode emulation
Browse files Browse the repository at this point in the history
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: <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
  • Loading branch information
bonzini committed Feb 12, 2020
1 parent 1b29af2 commit fe3dada
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fe3dada

Please sign in to comment.