From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UofO7-0005da-Om for qemu-devel@nongnu.org; Mon, 17 Jun 2013 15:46:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UofO1-0004Gw-Oh for qemu-devel@nongnu.org; Mon, 17 Jun 2013 15:46:51 -0400 Received: from mail-yh0-x236.google.com ([2607:f8b0:4002:c01::236]:47874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UofO1-0004FP-GP for qemu-devel@nongnu.org; Mon, 17 Jun 2013 15:46:45 -0400 Received: by mail-yh0-f54.google.com with SMTP id f73so1179953yha.41 for ; Mon, 17 Jun 2013 12:46:45 -0700 (PDT) Sender: Richard Henderson Message-ID: <51BF67A0.3030307@twiddle.net> Date: Mon, 17 Jun 2013 12:46:40 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1371398269-6213-1-git-send-email-afaerber@suse.de> <1371398269-6213-3-git-send-email-afaerber@suse.de> In-Reply-To: <1371398269-6213-3-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH qom-cpu v2 02/29] kvm: Change cpu_synchronize_state() argument to CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: qemu-devel@nongnu.org On 06/16/2013 08:57 AM, Andreas Färber wrote: > @@ -627,7 +627,7 @@ static void vapic_write(void *opaque, hwaddr addr, uint64_t data, > hwaddr rom_paddr; > VAPICROMState *s = opaque; > > - cpu_synchronize_state(env); > + cpu_synchronize_state(CPU(x86_env_get_cpu(env))); ENV_GET_CPU, surely. > @@ -66,7 +66,7 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr addr, > unsigned char command; > uint32_t eax; > > - cpu_synchronize_state(env); > + cpu_synchronize_state(CPU(x86_env_get_cpu(env))); Likewise. > @@ -78,7 +78,7 @@ void dump_slb(FILE *f, fprintf_function cpu_fprintf, CPUPPCState *env) > int i; > uint64_t slbe, slbv; > > - cpu_synchronize_state(env); > + cpu_synchronize_state(CPU(ppc_env_get_cpu(env))); Likewise. > @@ -9534,7 +9534,7 @@ void cpu_dump_state (CPUPPCState *env, FILE *f, fprintf_function cpu_fprintf, > > int i; > > - cpu_synchronize_state(env); > + cpu_synchronize_state(CPU(ppc_env_get_cpu(env))); Likewise. r~