From patchwork Thu Jul 13 14:19:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 107686 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2278032qge; Thu, 13 Jul 2017 07:22:17 -0700 (PDT) X-Received: by 10.237.59.78 with SMTP id q14mr5676179qte.143.1499955737832; Thu, 13 Jul 2017 07:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499955737; cv=none; d=google.com; s=arc-20160816; b=pzYfsra093Wx6TqCif9tKKz4TeqThPUKpxU/Y2rWol0nogR4WL6UTsItJfC42ELqg9 w+LoIomakDCuZEXQzdbQqqxg/DS2/LPylN6UfPIcmjc/k+qhRlZAIoM9KzryuE1mxQLo q7uiIqswtjn1S9f2Ow9bSvflBYSN4G9+dlEw/dz5YbMSyLREwCN2kjwpEfyuM9ZSogdH k5iZbBltvrM/WwQDPbAVSe16MCvjeu30Mz0RzTQg17pGyitgf5CLVpjQF2uP7/PrLuj6 PKYmitjHXuJyE3MpQ+dbluuVruJsbDMDkGiDa4Ic16qHlj5oI0J5cgEOeZka3t557YMk LDQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=liCe85V904f4u71sULXskHELisZZqwQo3QCIbYOEZro=; b=JQxJvEjHk5seFAXlgtDcF4XBAPt1Alcs9aEORIu8BGO/KjHjx2oU+Ubn+9a5izE280 8gX1GSoaZ2rfNJc5iq3majL9nAvhlR7De/foN+Ixqw7VMz2W/5PG9vMBxaHPBSdoecHt whO+fO65+ltESOvKrrOCo9ma01gW4/Lz7pkt6yCkcP7Q1DnB5FPJ8ThZCHjB5pCoa47x Mb57paPAZCW9vpdyOjyNujyyDhJnedwEcbaAdD93/JQaYzyLfurdUOx6A6RXLo4n5LcY hcMxvdBt9ZGD9AYPrqejphjCaGjX7AC1e8jTnPRhUm2Ckmc+SlTtT2jkKtFzTYu+sAdH XwiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=gQvsfGiQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id h63si5141672qkd.279.2017.07.13.07.22.17 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Jul 2017 07:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.b=gQvsfGiQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVf0R-000648-6X for patch@linaro.org; Thu, 13 Jul 2017 10:22:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVeyr-00053E-I1 for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:20:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVeyq-0007Bn-DN for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:20:37 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:33445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVeyq-0007AV-6U for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:20:36 -0400 Received: by mail-wr0-f179.google.com with SMTP id r103so53943315wrb.0 for ; Thu, 13 Jul 2017 07:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=liCe85V904f4u71sULXskHELisZZqwQo3QCIbYOEZro=; b=gQvsfGiQtEIWbv+HK5O2Qr8OrWRrHWeKdh7OEd4H2NgcPPPRygdB54JnKovfuDYC80 ZXxbpMhv+0gW2vLlkuzmQlV15ynnqoqojZcTZhun/YLn5fZcbCAgyJjA0OIRbgYnT3f1 xoD3BL8SIpIMAyDnNkfoO7uAqolwwSgn0QyMg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=liCe85V904f4u71sULXskHELisZZqwQo3QCIbYOEZro=; b=Zx0cNXqwJ0F/x3fMLqklFQ9RYnpmSbdeY3uclRXNGOsf+vUSV85ETfdKHYCGGXZb/0 d9Sp+EwsbQ91HXdKJq+K4Kz8Ud///ClKqPbmdisIn3xbT66IBkpYgkkYxt6bXLAE2MsM LFkDOUD0cORMx10aqsicbYZK7x7WAz32kEU7KGsL7KG0adKx64k820OtwQyFVqo3quY8 Sfd491OoKMCG8dJeSV8+zssvpMT0Vwh0ud/efA9lugznaSc+kYAmLAN1LQmhDV1zdr9a xk95va1gI+Qo+u+qjieY6Ik/s7qAY7cbmTRtvIruUBw6h6QsFX37eexeO09bwvGq4JW1 MRVw== X-Gm-Message-State: AIVw113PcqXKHPvqjxPE3AL4+yh8JeNaF1WrxvBbtJj6C+WCcwp79Ya3 sFBFHS5D4gfhiPWP3OGekQ== X-Received: by 10.223.170.194 with SMTP id i2mr2010964wrc.143.1499955575158; Thu, 13 Jul 2017 07:19:35 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z108sm4258811wrb.41.2017.07.13.07.19.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 07:19:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2D0503E07A1; Thu, 13 Jul 2017 15:19:29 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 13 Jul 2017 15:19:26 +0100 Message-Id: <20170713141928.25419-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170713141928.25419-1-alex.bennee@linaro.org> References: <20170713141928.25419-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.179 Subject: [Qemu-devel] [PATCH v4 4/6] target/arm/translate: ensure gen_goto_tb sets exit flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As the gen_goto_tb function can do both static and dynamic jumps it should also set the is_jmp field. This matches the behaviour of the a64 code. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson -- v4 - set s->is_jmp = DISAS_TB_JUMP in both cases --- target/arm/translate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.13.0 diff --git a/target/arm/translate.c b/target/arm/translate.c index 5f2cea8641..493a7b424a 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -4158,6 +4158,9 @@ static void gen_goto_ptr(void) tcg_temp_free(addr); } +/* This will end the TB but doesn't guarantee we'll return to + * cpu_loop_exec. Any live exit_requests will be processed as we + * enter the next TB. */ static void gen_goto_tb(DisasContext *s, int n, target_ulong dest) { if (use_goto_tb(s, dest)) { @@ -4168,6 +4171,7 @@ static void gen_goto_tb(DisasContext *s, int n, target_ulong dest) gen_set_pc_im(s, dest); gen_goto_ptr(); } + s->is_jmp = DISAS_TB_JUMP; } static inline void gen_jmp (DisasContext *s, uint32_t dest) @@ -4179,7 +4183,6 @@ static inline void gen_jmp (DisasContext *s, uint32_t dest) gen_bx_im(s, dest); } else { gen_goto_tb(s, 0, dest); - s->is_jmp = DISAS_TB_JUMP; } }