From patchwork Sat Jul 10 15:31:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 472343 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1366118jao; Sat, 10 Jul 2021 08:39:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4QRFpvgiQueqRulqa3M2AibzoqhBJy/ea1RvCH0WGXoEkspoDLQkxGdcxGyxr2H6XZaMo X-Received: by 2002:ad4:5de4:: with SMTP id jn4mr41973266qvb.41.1625931589606; Sat, 10 Jul 2021 08:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625931589; cv=none; d=google.com; s=arc-20160816; b=e0AgTuyhYL6v+7qvRjtRRst7sFO3ewTncPxZehl7RBtp87g044/4T8eiqvrvOrA+T4 iy2PumqTYiSFkiI0jNd6C3dzw/35y1WK7pJ00ocA25PsRXqQk6cEtiH/Mypo4VFv4nGC bxd19x5rfjqXVODanc4q+dChZk54IDyq2wJZ18BsJXThE0GXtqUBm+Btcy4IYHSHNMzQ 8+gY2J/qBI1K/BubtbtMndfKT1FCdSyr53ugUbfsFzRJPIWWwOj9LONau+BlCn5+Rk0F Ny8kMMOwZYUIeDEEX3kPBoV+mKXsR6v0K4mUzdOabLVVn1pW9AvPVxTwqId+y/IDReXd CsZQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=0TpBf4qKV0D0B2PVgq/Ik4yquVh/66Vd5JijaCSKrFk=; b=YbAo4CLZJfEcmrrA9Epi9ZMOWaNMtItrVpbLhvVRLFk397U/V1HTVukk0BndO+hdhc rHN9AuHZ40JCKcwD3NKv6ARmMH6/8YhWlAUH9nYSn+DCQtM3MLT4RxXB3E4Z0Ab61DXG oJn68gOn5vmg5vyMc9ItjbDPjZdpLIGpLIrnZfzK76vCDl7wE8FBa/gtGvQ0nSMN7yPF 3aTpZrmbdl3U4Ty6JgC6ukyBTnu/QBXiCgv3XMLJd8oIsTwZ8cYztOE+BfhYpf8KyfXK iRsqAjRFTal5l7MTF6+IVJPpKeWgC//44zETk1HtBU/HRyX/4iEjW832BMg2bij41vyx /Prw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BGBFyYHD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gw1si7612800qvb.223.2021.07.10.08.39.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jul 2021 08:39:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BGBFyYHD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2F52-0007zi-T6 for patch@linaro.org; Sat, 10 Jul 2021 11:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Exd-00064I-V7 for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:09 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:36765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2Exc-0002SG-C0 for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:09 -0400 Received: by mail-pg1-x536.google.com with SMTP id f5so13163192pgv.3 for ; Sat, 10 Jul 2021 08:32:07 -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=0TpBf4qKV0D0B2PVgq/Ik4yquVh/66Vd5JijaCSKrFk=; b=BGBFyYHDYLo2NrsJ6QyUsaleBRRm7lCJq1UeKjqx+znKYk8yn0Ls0TIAPWcL8g1rrR 5oDuQ1OcFCFSG1HLyH0OSgLdmvmoRBhH3mUZln4N1cIp5vmXKXctcNA6UyrWAgpsHCGU xwzODdpOTCzQbp8SAWfDwqillga+d2L6y1j186JSSik6EeEg9TRhxJEOv5kkjVwLlZoz NaTn/GqR83m31KoR6j/QvFzw9Gx0gH/CZxMRp+ww3WtcneJiExI3q4XY1KeSlm2ssNk8 UsHjk2BgkkABMEZy36AwL2HqC3seImF+DJPwMlh6euqzAkcgb8XBzgOB0zdr2XEUFpab SfMw== 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=0TpBf4qKV0D0B2PVgq/Ik4yquVh/66Vd5JijaCSKrFk=; b=glTcPfvfQ+Fopp0DyZcoW5icM98vJaveWdJAQmibNlyBPTtFBXrbEeMFH8nbSINMrC qOIThTT3LgNnsSFKhwpx6y75kBBs8I6wfkovnFs5kCbB0Pb3uhE7BJdBr0kXtb0FmRN2 FsYjGKnS+xcFWzwdaIeXN92jWyh13TeJnooWnDdvEa66+vOYLQnijO0UqReSwKYL1nGL PDCtKLI8GVtg8Vy5E9rKTnn6f3VqWKVkmHTrxLyF06zkmSV8QE/KG1d7+dfU87hoL6MH uP37WHSTOyFq7EXZ27pCm1JGHGOIB5/g+O2wEdBlXJyOWZabtnsQHTvWbY7tjCLmtZbI gZig== X-Gm-Message-State: AOAM530KftKdiJu7StfiJoV6X5f5OWaQcqIKDbyyfcfceHWlI6+8BUyM 8btdWXZslB+FLiIHK+KwKQzj8rgJpPiCLw== X-Received: by 2002:a63:eb04:: with SMTP id t4mr45165865pgh.84.1625931127054; Sat, 10 Jul 2021 08:32:07 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id u23sm11975374pgk.38.2021.07.10.08.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 08:32:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 33/41] target/xtensa: Use translator_use_goto_tb Date: Sat, 10 Jul 2021 08:31:35 -0700 Message-Id: <20210710153143.1320521-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210710153143.1320521-1-richard.henderson@linaro.org> References: <20210710153143.1320521-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Max Filippov Signed-off-by: Richard Henderson --- target/xtensa/translate.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.25.1 diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index d5da35f4fc..7094cfcf1d 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -405,11 +405,7 @@ static void gen_jump(DisasContext *dc, TCGv dest) static int adjust_jump_slot(DisasContext *dc, uint32_t dest, int slot) { - if (((dc->base.pc_first ^ dest) & TARGET_PAGE_MASK) != 0) { - return -1; - } else { - return slot; - } + return translator_use_goto_tb(&dc->base, dest) ? slot : -1; } static void gen_jumpi(DisasContext *dc, uint32_t dest, int slot)