[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/10] hw/i386/pc: Unexport PC_CPU_MODEL_IDS macro
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 03/10] hw/i386/pc: Unexport PC_CPU_MODEL_IDS macro |
Date: |
Fri, 20 May 2022 20:01:02 +0200 |
The macro seems to be used only internally, so remove it.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/i386/pc.c | 9 +++++++++
include/hw/i386/pc.h | 8 --------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index c914ac0154..2ffaac52fb 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -96,6 +96,15 @@
#include "trace.h"
#include CONFIG_DEVICES
+/*
+ * Helper for setting model-id for CPU models that changed model-id
+ * depending on QEMU versions up to QEMU 2.4.
+ */
+#define PC_CPU_MODEL_IDS(v) \
+ { "qemu32-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
+ { "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
+ { "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },
+
GlobalProperty pc_compat_7_0[] = {};
const size_t pc_compat_7_0_len = G_N_ELEMENTS(pc_compat_7_0);
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index ffcac5121e..38be346a13 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -287,14 +287,6 @@ extern const size_t pc_compat_1_5_len;
extern GlobalProperty pc_compat_1_4[];
extern const size_t pc_compat_1_4_len;
-/* Helper for setting model-id for CPU models that changed model-id
- * depending on QEMU versions up to QEMU 2.4.
- */
-#define PC_CPU_MODEL_IDS(v) \
- { "qemu32-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
- { "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
- { "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },
-
#define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
{ \
--
2.36.1
- [PATCH v2 00/10] Random cleanup patches, Bernhard Beschow, 2022/05/20
- [PATCH v2 01/10] hw: Reuse TYPE_I8042 define, Bernhard Beschow, 2022/05/20
- [PATCH v2 02/10] hw/audio/cs4231a: Const'ify global tables, Bernhard Beschow, 2022/05/20
- [PATCH v2 03/10] hw/i386/pc: Unexport PC_CPU_MODEL_IDS macro,
Bernhard Beschow <=
- [PATCH v2 05/10] hw/i386/pc: Remove orphan declarations, Bernhard Beschow, 2022/05/20
- [PATCH v2 04/10] hw/i386/pc: Unexport functions used only internally, Bernhard Beschow, 2022/05/20
- [PATCH v2 07/10] hw/net/fsl_etsec/etsec: Remove obsolete and unused etsec_create(), Bernhard Beschow, 2022/05/20
- [PATCH v2 06/10] hw/ppc/e500: Remove unused BINARY_DEVICE_TREE_FILE, Bernhard Beschow, 2022/05/20
- [PATCH v2 08/10] accel/tcg/cpu-exec: Unexport dump_drift_info(), Bernhard Beschow, 2022/05/20
- [PATCH v2 09/10] accel/tcg: Inline dump_opcount_info() and remove it, Bernhard Beschow, 2022/05/20