From patchwork Fri Mar 22 18:34:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1915055 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=YxFH83D+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V1WGr4Mt3z1yXt for ; Sat, 23 Mar 2024 05:35:30 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnjjK-0005dq-Lb; Fri, 22 Mar 2024 14:35:02 -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 1rnjjG-0005cz-NF for qemu-ppc@nongnu.org; Fri, 22 Mar 2024 14:34:59 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnjjE-0004fw-Gp for qemu-ppc@nongnu.org; Fri, 22 Mar 2024 14:34:57 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d6a1ad08b8so32908711fa.1 for ; Fri, 22 Mar 2024 11:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711132494; x=1711737294; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9x64EU4iGEbS+8KpTEV24E3/c6Oc+BBCoNTWdgJiQ1o=; b=YxFH83D+OmNMxT8CNGYkcw0cHXzYF36Nyy9nldcJJFuXcqg6dBbgn0QsvWf4i3jwHn f+zp6wQ4g7AYTBoEMGnIePBhmnSpTlHjOcUJDVkPHglQA4WrZW2pU8dJPRR0Et4akcvj sKh1OEeA0d+d6o+TkpTZX1vuahIJOu0kL1pFbUORGvbruQ8vJXAk3B7VK3HPlwiRYens BFfazeTZ8F4AHDCcdKx9EysYEHFVhdv/7K/7vUAWFiQ0xIKbSP5pPvWj8MF6nBEEcXKK f0p5TCeRPUc7YMt8boE5yYjGB6f4xXRXedPRZjsGOg3r/yjzDAfU84Red8H18IczA7lb RUoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711132494; x=1711737294; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9x64EU4iGEbS+8KpTEV24E3/c6Oc+BBCoNTWdgJiQ1o=; b=JpWPl6SZ84xzUTYMYdYMnUOQiQeZ6nxnqcO0VvOVqOgNkyhSF3j1RhTzEHBO/qXR4F Hz17JGhqSA1SGlKetOdPOixEX9j8rftqKbmhxwg+JorwOkHA8H7QgWrRff1SGG5gjd1f b3FBxv1tX02z3mS+aDJ4cPcJAVLY52Zaki9KddLKPj8I6npUl5/986gDCIMtr9ZBhmqa fUfdwi6s7z45Q0PEsaOg47l91+vcub3ElHoHLlo9nD3dJuAUzA9hA7V2s01Hw0oDmg5u 216CgFI784WJ2TTU3Vli4pQL+PpK0HRaW7CcwD6WpNyUnXC5n/dId9dp6zWm6+a5xg3F PPxA== X-Forwarded-Encrypted: i=1; AJvYcCWeCfzwmtnuNmeVdABm5YfMj+wfY4Te/oMdgkzEis9q88VkVXsJzcVoOP3VNL4EVer7IDoPqo6CzeJEwRysVOQ/uzV2 X-Gm-Message-State: AOJu0YzmOy3bSNs45m1yZNJq56N4TyVGHuxElzBENpjQPYyddnbKYExP zX2VnFL4q12WvpskFjEdXsjOwHmKhWsfoHzHPxFzecJPRetoLe/VTSA+z/iwvrA= X-Google-Smtp-Source: AGHT+IEt412Rhq9+WijA/1jMUOLM65iSf11LyyGNCFqBhGuRJYEROSNgXx3DBHNuqoxhqWamn5UmdA== X-Received: by 2002:a2e:b0f5:0:b0:2d6:8b90:4405 with SMTP id h21-20020a2eb0f5000000b002d68b904405mr275475ljl.31.1711132493879; Fri, 22 Mar 2024 11:34:53 -0700 (PDT) Received: from m1x-phil.lan ([176.176.178.251]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b0041409cabb39sm244908wmb.18.2024.03.22.11.34.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 22 Mar 2024 11:34:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Nicholas Piggin , Thomas Huth , Anton Johansson , qemu-ppc@nongnu.org, Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH-for-9.1] target/ppc: Unify TYPE_POWERPC_CPU definition for 32/64-bit Date: Fri, 22 Mar 2024 19:34:50 +0100 Message-ID: <20240322183450.25284-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=philmd@linaro.org; helo=mail-lj1-x232.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-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Apparently there is no wordsize special use with the QOM TYPE_POWERPC_CPU typename. Unify 32 and 64-bit with a single common definition. Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/cpu-qom.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index 8247fa2336..ed75f1b690 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -23,11 +23,7 @@ #include "exec/gdbstub.h" #include "hw/core/cpu.h" -#ifdef TARGET_PPC64 -#define TYPE_POWERPC_CPU "powerpc64-cpu" -#else #define TYPE_POWERPC_CPU "powerpc-cpu" -#endif OBJECT_DECLARE_CPU_TYPE(PowerPCCPU, PowerPCCPUClass, POWERPC_CPU)