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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 DFE7EC433DB for ; Wed, 3 Feb 2021 19:13:11 +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 4E2FB64E22 for ; Wed, 3 Feb 2021 19:13:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E2FB64E22 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]:47464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7NaQ-0007wO-4B for qemu-devel@archiver.kernel.org; Wed, 03 Feb 2021 14:13:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7NOU-0007NF-Ex for qemu-devel@nongnu.org; Wed, 03 Feb 2021 14:00:52 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:33963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7NOI-0001ZX-Sh for qemu-devel@nongnu.org; Wed, 03 Feb 2021 14:00:49 -0500 Received: by mail-pf1-x42c.google.com with SMTP id m6so439890pfk.1 for ; Wed, 03 Feb 2021 11:00:37 -0800 (PST) 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=vzS7YDdAcF7U4pxIlp6JJD53EW8Zqfir+/pxfdOUhEg=; b=iErAgUEcRrsEXkLk+inPBZ0Ai2FNNvfG0tmcoaGVxP+ablTNytzE355JBKsaZzWZkz pb8o5TQxvGUCjK7id9VQQpH+rQ48eDDgsHYeSD5ROvBA8v7dY6Gs+7q7kxLoEz+xO97D QHL5wn5qt6lmiV1wTHN6FtptqJ6lNIaw0C5ZmqRsXzkrHhug1nDrvY9gKNYscDO3NLfG 9Hweor1cPa9eQ1OODpVuyZVPzWQRhoQ67f1MG0zijDWzt5puikkecMUD6RH7dRms26X6 QyqqSpwm48JviUrocq0KzrtND17ClHjP47IUNonelEL8Kr3KvHKZli/5HSSb7Wo8kLqd tbRg== 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=vzS7YDdAcF7U4pxIlp6JJD53EW8Zqfir+/pxfdOUhEg=; b=T6vXwcdXMTEz+6A0CkalgdgiLYRODIRRcfGeFykt2TH7zrcuheLMptKmPP2raxYDG2 YJ5hNvbP901twXnEiOIuC75podnwYl3k/Rh0KABvzJikqS399gv8QTStAkFYXx2mF7v6 J/guI0Gep8chencRVGNW/covlK+gbsStqwhBtudOQWgiTtRJCO0r/HJsLMFBjv3hDQ/K ItdkcSwH4BooWwTIxUSEs9mQXvU/SwzqxvUDDe9DqNPvBt0JAiS+np/BR+433u5E+u2h d2RHlOIFnkc7X/01SoHsLV6gRCS83JASbcRwXHl17m/6e9yiswsPOKM4qaRODGCI8E5I c7Nw== X-Gm-Message-State: AOAM532qYYB34pfAoTRYs7qbPcTI69Bm/32e3dLArmTv1y6A6AkbC8f4 NpoPshhhAN/oJ46i8W1o0vxyQWlZy2B6sfwx X-Google-Smtp-Source: ABdhPJzMcKWIMO6Pu85Cm8mtYooEdV1WxqFnOCHynuyyD9gT8mLaBMacAoW88L40T2CkCD1c6UI3Yw== X-Received: by 2002:a65:6715:: with SMTP id u21mr1986515pgf.312.1612378837054; Wed, 03 Feb 2021 11:00:37 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id l2sm2906666pju.25.2021.02.03.11.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 11:00:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 11/31] exec: Introduce cpu_untagged_addr Date: Wed, 3 Feb 2021 08:59:50 -1000 Message-Id: <20210203190010.759771-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210203190010.759771-1-richard.henderson@linaro.org> References: <20210203190010.759771-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.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=unavailable 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: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Provide an identity fallback for target that do not use tagged addresses. Signed-off-by: Richard Henderson --- 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 e62f4fba00..d9dc1de414 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.25.1