From patchwork Tue Nov 7 12:24:26 2023 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: 13448554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 08D80C4167D for ; Tue, 7 Nov 2023 12:26:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0L8s-0005Lu-Jf; Tue, 07 Nov 2023 07:25:14 -0500 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 1r0L8o-0005Go-J9 for qemu-devel@nongnu.org; Tue, 07 Nov 2023 07:25:10 -0500 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 1r0L8Z-0004f9-PP for qemu-devel@nongnu.org; Tue, 07 Nov 2023 07:25:09 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4084095722aso42504355e9.1 for ; Tue, 07 Nov 2023 04:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699359891; x=1699964691; 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=xQIx7Qo+vYb4U5X/jCWdqru6+jgyWVX+HEchvZf2EPw=; b=crFDbXptn9AogKys/42RfC4yUmdED8y5lYwhf7soQRCfspxd4XV0fpC1T3GJ+M93HE 4H0x1XG0a3yA3t8QuIUbcHbnrWdBJ5pY6ZG1giBT7WbgTrwh3/K1aIQ9YBb0BBaGMCAm cdXUPZk7Wl+UDPeuzuPmIFK7Gg26aL0B3defVOxiyH/IWR0hM60FuQM51zZjJoNuWjrt Defu1cs2mpGXM6QHz+Tpr3EgbBLiFHRqJ2GFvMRGtxGtRoUTqelV+09hRtCrOs+OoXa9 FHocc/FNWFfwUJ1+DTDtKKbYLOm/rv3bsOUscDbNqjjW3wc6zspHVRIYpD8cTjde6Gbn 1kFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699359891; x=1699964691; 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=xQIx7Qo+vYb4U5X/jCWdqru6+jgyWVX+HEchvZf2EPw=; b=himhajB2fVS3URWD07FcA8I9vtGbn+gnM5pW6Y7iXtnQXks7zBnuqC2VCsjmgd/fTJ 63MeOvCcQ664xgu8icnNab42halDCwKgf+YOgvYePRyHQ5flrWfhJPb9HYxcW0pdTlV+ oQrMU4oeUBX4VaCEnrWvHtzEsnIMYUYjU/Ezust+ncRKjaZveL/1fnOvO0R4WDReWRqH pEADyBof88srqXieL4G9pBg6Q+ZAWsj7XG9aVmbffEMboF8fsx3sryxTWZ34iCPVqYyr XGO2nFSGSva4pP1Fj1v+5FnLEEL0iY/6zu6DrGMUJc6ELZwAdUgEpRNnK2wWe5P/W6Gl tlcw== X-Gm-Message-State: AOJu0YwG3StxmqbvLyMqCJMQd5vhXKRCcSqJF7UAAJQxDK3PbBa3ySFu 29QmoBcittxP1iH2UEIdh7FjvwfPNm09J6Mhm9A= X-Google-Smtp-Source: AGHT+IH8Lx6RBaDQF4sVsngCzC6nZLHkVi7928g9uEMsEGk2/yDDvsFk9uMT7A4SP2DYaEhRbVCXVQ== X-Received: by 2002:a05:600c:2b0d:b0:409:19a0:d26f with SMTP id y13-20020a05600c2b0d00b0040919a0d26fmr2323873wme.23.1699359890958; Tue, 07 Nov 2023 04:24:50 -0800 (PST) Received: from m1x-phil.lan ([176.187.216.69]) by smtp.gmail.com with ESMTPSA id fc13-20020a05600c524d00b004068de50c64sm15791988wmb.46.2023.11.07.04.24.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 07 Nov 2023 04:24:50 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-arm@nongnu.org, qemu-block@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson , =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , Nicholas Piggin , Daniel Henrique Barboza Subject: [PULL 36/75] target/ppc: Define powerpc_pm_insn_t in 'internal.h' Date: Tue, 7 Nov 2023 13:24:26 +0100 Message-ID: <20231107122442.58674-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231107122442.58674-1-philmd@linaro.org> References: <20231107122442.58674-1-philmd@linaro.org> MIME-Version: 1.0 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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org PM instructions are only used by TCG helpers. No need to expose to other hardware. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Cédric Le Goater Message-Id: <20231013125630.95116-3-philmd@linaro.org> --- target/ppc/cpu-qom.h | 10 ---------- target/ppc/internal.h | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index 41df51269b..f681bfb4a6 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -114,16 +114,6 @@ enum powerpc_excp_t { POWERPC_EXCP_POWER10, }; -/*****************************************************************************/ -/* PM instructions */ -typedef enum { - PPC_PM_DOZE, - PPC_PM_NAP, - PPC_PM_SLEEP, - PPC_PM_RVWINKLE, - PPC_PM_STOP, -} powerpc_pm_insn_t; - /*****************************************************************************/ /* Input pins model */ typedef enum powerpc_input_t powerpc_input_t; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index c881c67a8b..5b20ecbd33 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -20,6 +20,15 @@ #include "hw/registerfields.h" +/* PM instructions */ +typedef enum { + PPC_PM_DOZE, + PPC_PM_NAP, + PPC_PM_SLEEP, + PPC_PM_RVWINKLE, + PPC_PM_STOP, +} powerpc_pm_insn_t; + #define FUNC_MASK(name, ret_type, size, max_val) \ static inline ret_type name(uint##size##_t start, \ uint##size##_t end) \