From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23FD7C433DB for ; Thu, 11 Feb 2021 13:18:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8376A64E7A for ; Thu, 11 Feb 2021 13:18:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8376A64E7A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lABrb-0006lg-HW for qemu-devel@archiver.kernel.org; Thu, 11 Feb 2021 08:18:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lABZ2-0008DK-DI for qemu-devel@nongnu.org; Thu, 11 Feb 2021 07:59:20 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lABZ0-0008T8-Oi for qemu-devel@nongnu.org; Thu, 11 Feb 2021 07:59:20 -0500 Received: by mail-wr1-x435.google.com with SMTP id v14so4071490wro.7 for ; Thu, 11 Feb 2021 04:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=C5mj6NRrt0u/DreoETKEeLg2CeSxNg+EEqC7ggdCjng=; b=itf6PiAiojqn65r7+GKQsdtqZBz2FHfuvdH5k5NvkQ4MJyqTVj1qDeCBnt2TfxIiHz F8zWDpMjqa1+YS74YG+ufegp8dV4k0LUNYoBQquZ8ALJ/Gbc/H+OXAEhVCSyZo7fDTXB jw9c1OHi7YmvZv0AIhcKM01SSnzCsh4JKMFgKWBr9sfEBV8yped4wLZb0PDE4PlycVIc dYClkclw8+JaM0CTQZY4f+cMWyhmf5DeIkmMLawj7z4awolhT/Kh1k5lG/wD6/akob67 orpheQfkkUr3VEcDbaHrS+NjKdpdZlQgqG8tOHjcDT4DF/TpFLFZWe8DY+y4+9ni9rjP 9p6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C5mj6NRrt0u/DreoETKEeLg2CeSxNg+EEqC7ggdCjng=; b=AcRgy+4Zp8ixor8G0iRdm64/YUCShBpxiTLlASyhfMnyOcO65sHnM5kQYlWSP4yLng Cd4ZLotbh6aJV+dijrZKvJXfTjBjWr/Y2MdTHbOCihJKC+PDXKe6aeSd9ebcrcIm/JVG RHRAbZZL7X+Avg8nNtpMaPzWlLm7uh8/k7hb0bdnnieoldZCAVmKfafZaOrNl+HL+7/h EnDrhtYPtPTROsMttJ5XLQ0KK1pw1AyvbCy38P517UNjeWnst0loeGMBdJ3LrZ8Iflvx +p17gvBsn2kVW6TtkU6V8u+738JppvtqpypkhqY9DXTeSCrR/egV6C4fHruJl08hDzRv V4kA== X-Gm-Message-State: AOAM5330rDT7WIGACcnuuUbvLWzPS/hL36mkHzlCXCtWpimkfJrsyPjr sUbDFX/Filh2Ki5NFAaZFRjMZ/ZZnETvFw== X-Google-Smtp-Source: ABdhPJxemAGwdzCxfbeZY3UNAbSJi9NDPnHoDlJwMWELDmXSzKhc24NpoFHooBw30UowQ8PaXkjx9Q== X-Received: by 2002:a5d:4a0b:: with SMTP id m11mr5770958wrq.51.1613048357431; Thu, 11 Feb 2021 04:59:17 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id g15sm4955716wrx.1.2021.02.11.04.59.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 04:59:17 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 20/45] exec: Introduce cpu_untagged_addr Date: Thu, 11 Feb 2021 12:58:35 +0000 Message-Id: <20210211125900.22777-21-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210211125900.22777-1-peter.maydell@linaro.org> References: <20210211125900.22777-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x435.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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Provide an identity fallback for target that do not use tagged addresses. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20210210000223.884088-12-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- include/exec/cpu_ldst.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h index e62f4fba001..d9dc1de414a 100644 --- a/include/exec/cpu_ldst.h +++ b/include/exec/cpu_ldst.h @@ -69,6 +69,13 @@ typedef uint64_t abi_ptr; #define TARGET_ABI_FMT_ptr "%"PRIx64 #endif +#ifndef TARGET_TAGGED_ADDRESSES +static inline abi_ptr cpu_untagged_addr(CPUState *cs, abi_ptr x) +{ + return x; +} +#endif + /* All direct uses of g2h and h2g need to go away for usermode softmmu. */ #define g2h(x) ((void *)((uintptr_t)(abi_ptr)(x) + guest_base)) -- 2.20.1