From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uthot-0006yB-TY for qemu-devel@nongnu.org; Mon, 01 Jul 2013 13:23:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uthom-0003qf-V5 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 13:23:19 -0400 Received: from mail-gh0-x22a.google.com ([2607:f8b0:4002:c05::22a]:42532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uthom-0003qP-PW for qemu-devel@nongnu.org; Mon, 01 Jul 2013 13:23:12 -0400 Received: by mail-gh0-f170.google.com with SMTP id z10so2095674ghb.29 for ; Mon, 01 Jul 2013 10:23:12 -0700 (PDT) Sender: Richard Henderson Message-ID: <51D1BAFC.6070708@twiddle.net> Date: Mon, 01 Jul 2013 10:23:08 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1372536117-28167-1-git-send-email-afaerber@suse.de> <1372536117-28167-25-git-send-email-afaerber@suse.de> In-Reply-To: <1372536117-28167-25-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH RFC qom-cpu 24/41] target-alpha: Change DisasContext::env to CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: jan.kiszka@web.de, qemu-devel@nongnu.org On 06/29/2013 01:01 PM, Andreas Färber wrote: > - CPUAlphaState *env; > + AlphaCPU *cpu; Actually, I take this back. I'd prefer that we simply pull out the two variables that we need and place them in the DisasContext. That's the way it should have been in the first place. > @@ -3394,7 +3394,7 @@ static inline void gen_intermediate_code_internal(AlphaCPU *cpu, > gen_opc_end = tcg_ctx.gen_opc_buf + OPC_MAX_SIZE; > > ctx.tb = tb; > - ctx.env = env; > + ctx.cpu = alpha_env_get_cpu(env); This should have been ctx.cpu = cpu anyway, apparently fixed in the next patch. r~