From patchwork Mon Oct 23 18:13:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 737285 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1665115wrl; Mon, 23 Oct 2023 11:16:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuVQ3CT/LVrnEPmStInGAko1jZOkwuNpzRjLRjcdNSWF+SGDKGKJimR2NJpzSQ3cI6iuwa X-Received: by 2002:a05:620a:628f:b0:76c:ba25:a8f1 with SMTP id ov15-20020a05620a628f00b0076cba25a8f1mr11000580qkn.42.1698085011874; Mon, 23 Oct 2023 11:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698085011; cv=none; d=google.com; s=arc-20160816; b=fdMSJGcG1ls+aga97xOzQu23GlNvfcsV3SIJY6hDpWqXNUiX95RiwHsc6MDdZ8DjGC au3trVr+lExpICOV+UJuJN9dR0XMS2zGz2LVAdkdYFRKGbPZ7yyzAskHFN1+PHWV3vAV LsOOSFdtqCFWaKtao206M5oJg9JsKviFvW8Bn9xj0sW9Pyy7+U0u3pLKK0PH0nCP3uZo 0jiWewvm0yTFN37bbKCZrtVa2n4x/AiDluvxq+yjhOK5mDEav04JiMo69joUNW6YW/Fn 4FGElnANsJfaBWdVBSnPXGXRZahqj9XZO4mPbmbYancZgwImdZsIsR7UYy9XDfT0dMac TAtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=YGlbtLg90LV1uY25eQEYhNteHi+RQnuiWgmb0RTVS6Y=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=wKNfsO136v6viF6PxPFSZ/wcn+l8gCXkD4Q0/CYKxRJb4FEsmoCu/Zc3cRbmDdH3is /bEKES8PxjWiDORHkdZYSx8nO3CGzrpoMKi5cKeNZuNpS8nXpb8FE7UJAThl9CNOhhed +ts5/WarrcQ9CoeXZfTCx7j28zwOk3x6pdBFBkG6Va77mDV3IteN6v5GcF6txtwLbAed GFLoUK8DMI+oz0DQORYKbOL67fslCStK1WkNnVAEj9smVcU8GLDiZmDn1iePCtw7WlPo 9k6l25myRY+TQ15Oe8vqxTEPOQOV3YlknT+iHLXr/FIld7Cg36UbC8o4eAAO0vX2OjRC fDgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yo8Quzg4; 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 z19-20020a05620a101300b0076719299daasi5910537qkj.574.2023.10.23.11.16.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2023 11:16:51 -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=yo8Quzg4; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quzRE-0005jt-E8; Mon, 23 Oct 2023 14:14:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quzR6-0005cO-MB for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:57 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quzQw-00089r-9o for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:55 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6b20a48522fso2904354b3a.1 for ; Mon, 23 Oct 2023 11:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698084824; x=1698689624; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YGlbtLg90LV1uY25eQEYhNteHi+RQnuiWgmb0RTVS6Y=; b=yo8Quzg4fhJuqGKXoXmb1KcezsIoY1RzKzhroa4fEjgaq4+hMqVCRPo/yWV7ynNSkf baY8ylj3lHKvEqakH1dMeNlgl9N/olXGDbnSPRGUjVkpb1jG+4GqnTU6d21KJjZ/nXC0 Dn0wCFg3x7dSI5tP3uXT80yEDyKqoYyjpb8BmIRQqngq6BFjIgsUtxEDDfEnal1njXee 1bUBax1R95Nfn+23PT9re2YLvcthlTxwrVfM4uX7IW73t5EQJnRs5ABRjNYF+lgykIzr QciyrrF2Vunp1vvcqganwwmJNrFp9NF7SlFyjJsfi/0D2YKj2KPg1IAl4mEni15WEkBY kqSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698084824; x=1698689624; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YGlbtLg90LV1uY25eQEYhNteHi+RQnuiWgmb0RTVS6Y=; b=LDP+pIWYSM9oUOlnZp+bJz8ek3JP/+BpEtQ+NgkWTmdBPyeehA1+O+OF2aaKWWCKg1 PAlg5rzDYXyRdbDRjarCGwSUzMR+qqTN+nCgoPhmFPBJ10ZVA6+mhjAHKCby2iZtyXhD xTGqNEgZZfpNwJBSqU+V0hi3eR5KSIIP0nftXIcvEqESCInBllFMOUqwM4HCSPv38EzL xsPuD/9hPFfcGr9JAwdnrKZPi6Kbk7A1EW5UAh33748H7IAdr6UCMF9ar/oUJFMj9ifM JLI2ees1xKJOiYQk9Ts57qEMtqdgwCoxXTbxFKyi8LUdO5qlprD5NVDTjF0+198irkIV gs+A== X-Gm-Message-State: AOJu0Yy+24Qrmq3XS++Z1VEvaXsSNbksgTTU3EYVsC0f9htvFfNyPgdY Bz7CrFdkvSOS5KGncfnbmAW1O6p4LabEU867OTE= X-Received: by 2002:a05:6a20:3956:b0:15d:c274:2eb1 with SMTP id r22-20020a056a20395600b0015dc2742eb1mr476907pzg.10.1698084823859; Mon, 23 Oct 2023 11:13:43 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id v10-20020a65568a000000b005b83bc255fbsm5205137pgs.71.2023.10.23.11.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:13:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL v3 15/38] tcg: Provide guest_base fallback for system mode Date: Mon, 23 Oct 2023 11:13:06 -0700 Message-Id: <20231023181329.171490-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023181329.171490-1-richard.henderson@linaro.org> References: <20231023181329.171490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Provide a define to allow !tcg_use_softmmu code paths to compile in system mode, but require elimination. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tcg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tcg/tcg.c b/tcg/tcg.c index d3a4a17ef2..35158a0846 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -178,6 +178,10 @@ static bool tcg_target_const_match(int64_t val, TCGType type, int ct, int vece); static int tcg_out_ldst_finalize(TCGContext *s); #endif +#ifndef CONFIG_USER_ONLY +#define guest_base ({ qemu_build_not_reached(); (uintptr_t)0; }) +#endif + typedef struct TCGLdstHelperParam { TCGReg (*ra_gen)(TCGContext *s, const TCGLabelQemuLdst *l, int arg_reg); unsigned ntmp;