From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZBEH-0008HX-9N for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZBEG-0003fc-5s for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:14:01 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZBEG-0003fX-0F for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:14:00 -0400 Received: by padhk3 with SMTP id hk3so28659183pad.3 for ; Mon, 07 Sep 2015 22:13:14 -0700 (PDT) Sender: Richard Henderson References: <1441216660-8717-1-git-send-email-rth@twiddle.net> <1441216660-8717-2-git-send-email-rth@twiddle.net> From: Richard Henderson Message-ID: <55EE6E68.5090309@twiddle.net> Date: Mon, 7 Sep 2015 22:13:12 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 01/11] target-arm: Share all common TCG temporaries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 09/07/2015 09:57 AM, Peter Maydell wrote: > On 2 September 2015 at 18:57, Richard Henderson wrote: >> This is a bug fix for aarch64. At present, we have branches using >> the 32-bit (translate.c) versions of cpu_[NZCV]F, but we set the flags >> using the 64-bit (translate-a64.c) versions of cpu_[NZCV]F. From >> the view of the TCG code generator, these are unrelated variables. >> >> The bug is hard to see because we currently only read these variables >> from branches, and upon reaching a branch TCG will first spill live >> variables and then reload the arguments of the branch. Since the >> 32-bit versions were never live until reaching the branch, we'd re-read >> the data that had just been spilled from the 64-bit versions. >> >> There is currently no such problem with the cpu_exclusive_* variables, >> but there's no point in tempting fate. >> >> Signed-off-by: Richard Henderson > > Reviewed-by: Peter Maydell > > Should this be cc:qemu-stable@nongnu.org ? Possibly. It's certainly low risk. r~