]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/ppc: Define powerpc_pm_insn_t in 'internal.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Oct 2023 10:40:41 +0000 (12:40 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 11:13:28 +0000 (12:13 +0100)
PM instructions are only used by TCG helpers. No need to
expose to other hardware.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20231013125630.95116-3-philmd@linaro.org>

target/ppc/cpu-qom.h
target/ppc/internal.h

index 41df51269be1869fe9605f251aa6be2e14a9890c..f681bfb4a64e90800ab17de14f8bd28914331314 100644 (file)
@@ -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;
index c881c67a8b97a0057f954a275e62649b09b0b630..5b20ecbd337cd80ba83c82474fbd5a91a6f27942 100644 (file)
 
 #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)                 \