From: Jan Kiszka Date: Fri, 25 Jun 2010 14:56:54 +0000 (+0200) Subject: Drop redundant global cur_cpu variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=345f4426a983b8a5d3fdcb83de1d74e806d4aa14;p=qemu.git Drop redundant global cur_cpu variable Signed-off-by: Jan Kiszka Acked-by: Paolo Bonzini Reviewed-by: Marcelo Tosatti Signed-off-by: Aurelien Jarno --- diff --git a/cpus.c b/cpus.c index 5022788e53..7f66eda54e 100644 --- a/cpus.c +++ b/cpus.c @@ -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;