From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzAYU-0004I8-Gd for qemu-devel@nongnu.org; Wed, 27 Feb 2019 20:32:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzAYR-0005yk-0J for qemu-devel@nongnu.org; Wed, 27 Feb 2019 20:32:09 -0500 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:34019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzAYH-0005mh-GN for qemu-devel@nongnu.org; Wed, 27 Feb 2019 20:32:01 -0500 Received: by mail-pg1-x541.google.com with SMTP id i130so8861010pgd.1 for ; Wed, 27 Feb 2019 17:31:47 -0800 (PST) References: <20190220235017.1060-1-richard.henderson@linaro.org> <20190220235017.1060-2-richard.henderson@linaro.org> From: Richard Henderson Message-ID: <6605b2a8-e46f-4b01-5f6b-6bc84eb9affc@linaro.org> Date: Wed, 27 Feb 2019 17:18:27 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] target/arm: Implement ARMv8.0-SB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 2/26/19 10:31 AM, Peter Maydell wrote: > On Wed, 20 Feb 2019 at 23:50, Richard Henderson > wrote: >> >> Signed-off-by: Richard Henderson > > >> @@ -9192,6 +9192,17 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn) >> */ >> gen_goto_tb(s, 0, s->pc & ~1); >> return; >> + case 7: /* sb */ >> + if (!dc_isar_feature(aa32_sb, s)) { >> + goto illegal_op; >> + } >> + /* >> + * TODO: There is no speculation barrier opcode >> + * for TCG; MB and end the TB instead. >> + */ >> + tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC); >> + s->base.is_jmp = DISAS_TOO_MANY; > > Why do we do the "end the TB" code differently here than we > do for the implementation of ISB in the case immediately > above ? No good reason, I suppose. This is how we end the TB for MSR, I think. But I can change it. r~