From nobody Thu Apr 3 10:04:26 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1742907840; cv=none; d=zohomail.com; s=zohoarc; b=RiTaUd2MnmPeF7LsBIDbT2jddXmAyCYBxdGxKreuHsf8qDXJcuDaAPnbn6/W6ef8R57DcjkFDy5y0M/TPno2bKWMSzAYq7sD3GRAThBtm8SpzjoHAIZFKLzBNPx1xpvHzJjNWRKZ8Vewkyede+FPKzmkJRhRex6Ul9mg+s56Z84= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742907840; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4sDqJtqOWjvSs4usBVbY5N6y1YZHqf2bWga8DmhhKKI=; b=eo1xa/fyj+hw9uTI7/JM568B0PlNEEmH9ROTDhawPXJlYqFcd6WRRe89455Ps02N0DwyvelbfQ1DINc/xrWs7O5WVBKHO5rbkg19iCq9BNacA14LnTMWo/PS5bJ8k53Xh9xrK5jlKNwE1MD69H746RnOVFfCP622bbEX2/yhQq0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742907840284740.3248396754179; Tue, 25 Mar 2025 06:04:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tx3wT-0001NT-07; Tue, 25 Mar 2025 09:03:41 -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 1tx3vi-0000zt-Io for qemu-devel@nongnu.org; Tue, 25 Mar 2025 09:03:00 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tx3vg-00084b-Hn for qemu-devel@nongnu.org; Tue, 25 Mar 2025 09:02:54 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43cfa7e7f54so33781995e9.1 for ; Tue, 25 Mar 2025 06:02:52 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fd9ec29sm149225455e9.30.2025.03.25.06.02.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 25 Mar 2025 06:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742907770; x=1743512570; 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=4sDqJtqOWjvSs4usBVbY5N6y1YZHqf2bWga8DmhhKKI=; b=Ufxvfb3QUcH/FBOuo5nefIOvDMg0xxbi6vDaBau4MkOTlleXS/slSd9WKBysjJEheZ ot3jG3vsfpQP1LwCK30Q43zpAessJ0baDQKdgEERqaUJnX8IksP053BAsdxtsCrr1w5D hgEJSRbOnAcklC4Px5UTsJvkMnwsWAiIGm6av7pglzk8NuMwHpNdtbd4cqcjXUDg5HIo wgIokFHu4EFp1Vpg4Lz3/fD1nyLC2fHGM5nn8XPnAklP9OpccStzduR9JT605kk++qYS L9m53DLZHQagtKg9X0ln8diCEeuzxz1wJpbSpTQruqNXmczucZ0kY7+Ffp1KjAHuqWeB iH6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742907770; x=1743512570; 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=4sDqJtqOWjvSs4usBVbY5N6y1YZHqf2bWga8DmhhKKI=; b=uMHvISr9See1P4ifmMaMdE3y3ennHmMmpRGpmHSFM/oYOg3PSuAy91iKYZycUVanAj 7m9stMK6kQnYcXDXMAWurAO3FJQw7G7B1bgnFkzcFbMXLLRWBlNawPgsNoZcuDHYrU96 5kupLiDfvobUSPuIM2MmV8AbOy2o5Q5aRQl7SfstypZqZkOl/x3fx6Fh2NfC7szJCccu 7K4VLxmrmhdyHaBiMpwC2qTIC7YWPnyHTg5KEsSY+P8PpLhwqoPOev5imk4nb402oKfL sfsXp1gs2j4UkxjOdP3AGZAWI9/Nw1z6Hi4U6PDGEhFT1ZwoOkT/jIxLnkUZTlbI/Hi2 NZbA== X-Gm-Message-State: AOJu0YyA9duvR1XsY3ckh3Hew9KemXauBOM+Zr3ojIQzHt+RuEPlVpla LRkGANu/cPnbRtd2i/4m1oMAnW0IW6Jt41UMPF+/rl8U4G/fPnwCBxaBDGzzGqG3jsPxqJ142MG 3 X-Gm-Gg: ASbGnculcYeI4YQjF+iK3P0TAL9Evm+1iMI4fr95dnfVLOwd4csIKxKGwBtI6mbNYAD s9gOz1gXNBQHo6rrlsdNsqf9rHJ2F4SrGrtGNIiThVQQUs8cjmr5L8K5i/+eLyHC6qOmxWefiaE 0Wy2sME+IcTSbErO97kThedSRanFlWznZMIqLkKWYGIcyPMFWWXjIkaQq0XcW3I8BxuNd/IFfe0 y9sIZSID0/ULGoacN+vNljzFBYwbV+7SePQsei0zVfP2epz1o2LddyXrHufh8wM7fuFxlfT4e7r NW/LU9FLMjhMeTcSI3JWz3kDxo3wAkhKwN+USotoMHa401HhGMxhv1/ZvZGDPxo0HxmDwsSnbb9 VGD3z9V3QJwOnm+kXtk0= X-Google-Smtp-Source: AGHT+IHYsYWl0t83+0KxiDgq8X1lmd9f8Ood9cREOUiUzl6ZX+LzQoQnAbSp1vOaQKh2X4n0wy90lQ== X-Received: by 2002:a05:600c:3552:b0:43d:186d:a4bf with SMTP id 5b1f17b1804b1-43d523cf4d6mr124041165e9.0.1742907768709; Tue, 25 Mar 2025 06:02:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Eduardo Habkost , Zhao Liu , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Riku Voipio , Paolo Bonzini , Nicholas Piggin , Richard Henderson , qemu-ppc@nongnu.org Subject: [PATCH-for-10.1 5/5] exec/target_long: Remove TARGET_LONG_SIZE definition Date: Tue, 25 Mar 2025 14:02:20 +0100 Message-ID: <20250325130221.76116-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250325130221.76116-1-philmd@linaro.org> References: <20250325130221.76116-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1742907842164019001 Directly use TARGET_LONG_BITS, so we don't need the TARGET_LONG_SIZE definition at all. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/target_long.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/exec/target_long.h b/include/exec/target_long.h index 3cd8e26a23f..d8898625f4e 100644 --- a/include/exec/target_long.h +++ b/include/exec/target_long.h @@ -20,17 +20,15 @@ #error TARGET_LONG_BITS not defined #endif =20 -#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8) - /* target_ulong is the type of a virtual address */ -#if TARGET_LONG_SIZE =3D=3D 4 +#if TARGET_LONG_BITS =3D=3D 32 typedef int32_t target_long; typedef uint32_t target_ulong; #define TARGET_FMT_lx "%08x" #define TARGET_FMT_ld "%d" #define TARGET_FMT_lu "%u" #define MO_TL MO_32 -#elif TARGET_LONG_SIZE =3D=3D 8 +#elif TARGET_LONG_BITS =3D=3D 64 typedef int64_t target_long; typedef uint64_t target_ulong; #define TARGET_FMT_lx "%016" PRIx64 @@ -38,7 +36,7 @@ typedef uint64_t target_ulong; #define TARGET_FMT_lu "%" PRIu64 #define MO_TL MO_64 #else -#error TARGET_LONG_SIZE undefined +#error unsupported TARGET_LONG_BITS value #endif =20 #endif /* _TARGET_LONG_H_ */ --=20 2.47.1