diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-06-25 16:56:54 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-07-22 05:52:09 +0200 |
commit | 345f4426a983b8a5d3fdcb83de1d74e806d4aa14 (patch) | |
tree | 4bca740db49806cf5fcf6960dd22553f28b26e4a /cpus.c | |
parent | 6cabe1f303b9d76458c00f00df7f477449a13b2f (diff) |
Drop redundant global cur_cpu variable
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -40,7 +40,6 @@ #define SIG_IPI SIGUSR1 #endif -static CPUState *cur_cpu; static CPUState *next_cpu; /***********************************************************/ @@ -776,10 +775,10 @@ bool tcg_cpu_exec(void) if (next_cpu == NULL) next_cpu = first_cpu; for (; next_cpu != NULL && !exit_request; next_cpu = next_cpu->next_cpu) { - CPUState *env = cur_cpu = next_cpu; + CPUState *env = next_cpu; qemu_clock_enable(vm_clock, - (cur_cpu->singlestep_enabled & SSTEP_NOTIMER) == 0); + (env->singlestep_enabled & SSTEP_NOTIMER) == 0); if (qemu_alarm_pending()) break; |