Message ID | 20170907224051.21518-17-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp766612ybm; Thu, 7 Sep 2017 15:54:56 -0700 (PDT) X-Received: by 10.200.50.93 with SMTP id y29mr1327893qta.301.1504824896804; Thu, 07 Sep 2017 15:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504824896; cv=none; d=google.com; s=arc-20160816; b=qHCGZLAkh3mElSbGZJZ1JcHU0k8jMKIWNfIpCtKL4giwas0abG+FFUJZwPccqI1Hl1 a+7qLm5c2DOYK97vyRCJWXufjKzS3prWk/fv7U35yWt/HolD/Pxo+XUnBVNSLPz6dz9u yPXDe5sptpNPaz/dH9xOmASS/FcUq6G35SgAqKqBBtiUS9zyy5z5qPiOs3/OJrk38vIc uGcVTXGB6mo0owVA4D9WVC4FngswEtmEZLtIQtR7LtIZgF7ZpiF4PcH75OLDiKo2+MZF /8hf2kgOTQ2jOSqIlSIoTY/kTyPD8DLkyxbHUNNtp+Pf2nUl43FbUvnHqlB5UfLTCHi6 VjLg== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=2N1o0vUjnZz5BCK8ZK7VFGbHwO2asiO5JbqCJsu9o+Y=; b=A7Ko0dSCOVuBYg4tWEY/M05qMsr2vtHrkAAtw1xQQupjK2oR1x3xD+tL7r9xh1AD+k XRrVRey+cpgpEb8R0KbXbwxJxBSLqq41bkfgU5lX01HA5Lze3yJ5zWAM6faCrCJG7vz+ Ae0OqdjK2Z/fDgWSRVvdsv5DjL8w8fdQldsFb3MsfmWFMlLkAeYWStxk4xBl6LWR3rS/ hTGSGht77BF6RFs1QLDb30PmUeyisFhZHmmn3MTSJBusbffzFJZ449vnTxGPSscWvS5E 0EoTXY6+66L3UuAWLqw4ZQZwp79XP35KcREuplq4s5u3GwUS9EGLueRM8LwZ0k39Cxd7 6dHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ic7ZBugQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j127si532493qkd.99.2017.09.07.15.54.56 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Sep 2017 15:54:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ic7ZBugQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:42569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1dq5hG-00066T-PY for patch@linaro.org; Thu, 07 Sep 2017 18:54:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dq5UB-0003CD-KM for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:41:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dq5U7-0008KH-07 for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:41:23 -0400 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]:35370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dq5U6-0008JY-R5 for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:41:18 -0400 Received: by mail-pf0-x230.google.com with SMTP id g13so1629864pfm.2 for <qemu-devel@nongnu.org>; Thu, 07 Sep 2017 15:41:18 -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; bh=2N1o0vUjnZz5BCK8ZK7VFGbHwO2asiO5JbqCJsu9o+Y=; b=ic7ZBugQCPbzUP5aStxddpM+ys7WR/lxY0abfdStBcRYMnsSNXKJT5Jrpv79G1WJPe ELlS8ZRCfoanSXMJGjh+s9yLCy5mYPoXCKvdcyU3DE+wxo8Qr9hxCFWe07Uk/8gyVaeH 7Se/wQQlOz9jqXSY148eQMQzbT5g4xfQPAxaQ= 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; bh=2N1o0vUjnZz5BCK8ZK7VFGbHwO2asiO5JbqCJsu9o+Y=; b=Bk78j1nctPxBEsv2JtI513K4L/zaZ9NmJb7w6hKaCS3YyVxwpXIXIC7v+GFNIGALlH y7FfhjLgB+7WrhC7GWGHLjXNjPPasykojwJWBUtr9zIUpqkhCZBVGC9Rb9iX8teWdRSQ eEF2OSwG1tDPpMyItEhiP3FRnZILWLg5mwvZdOxGUcgiJRYgqKOlR9UVN2mMpgdLegmc H30S/20gSZQ60jiSL+7MVBpZCmy7gdhqsN92gkUhW/ztbivIUT+XtjA8FG7lBVTTSxlB o+adp0uU8w/nrFpSohUJHaDucx9ZJHN+I1iERnXZwGNdkmh5A+11NsmzIGe34ThGeZZP 4JPw== X-Gm-Message-State: AHPjjUhEvwjJvOHSpn1FaGGS5gPAA2lep3SP5MS8PfTBlh+ThIX5wAbq UW/l4LEL99HQHygbooLXdQ== X-Google-Smtp-Source: ADKCNb4LqiJVX+xYU9Adv2kxiCFAuWu2qk4MFd6rriOIgZ5961o1yziJdSVJ5zOrbzex9XAgol+b9Q== X-Received: by 10.99.54.7 with SMTP id d7mr956281pga.115.1504824077525; Thu, 07 Sep 2017 15:41:17 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id h19sm770678pfh.142.2017.09.07.15.41.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2017 15:41:16 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 7 Sep 2017 15:40:44 -0700 Message-Id: <20170907224051.21518-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170907224051.21518-1-richard.henderson@linaro.org> References: <20170907224051.21518-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::230 Subject: [Qemu-devel] [PULL 16/23] tcg/arm: Tighten tlb indexing offset test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg constant pools and USE_DIRECT_JUMP cleanup
|
expand
|
diff --git a/tcg/arm/tcg-target.inc.c b/tcg/arm/tcg-target.inc.c index 66c369c239..6c12b169ce 100644 --- a/tcg/arm/tcg-target.inc.c +++ b/tcg/arm/tcg-target.inc.c @@ -1202,7 +1202,9 @@ static TCGReg tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi, } /* We checked that the offset is contained within 16 bits above. */ - if (add_off > 0xfff || (use_armv6_instructions && cmp_off > 0xff)) { + if (add_off > 0xfff + || (use_armv6_instructions && TARGET_LONG_BITS == 64 + && cmp_off > 0xff)) { tcg_out_dat_imm(s, COND_AL, ARITH_ADD, TCG_REG_R2, base, (24 << 7) | (cmp_off >> 8)); base = TCG_REG_R2;