[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/20] rx: Move typedef RXCPU to cpu-qom.h
From: |
Eduardo Habkost |
Subject: |
[PULL 07/20] rx: Move typedef RXCPU to cpu-qom.h |
Date: |
Wed, 2 Sep 2020 07:53:10 -0400 |
Move the typedef closer to the QOM type checking macros.
This will make future conversion to OBJECT_DECLARE* easier.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20200825192110.3528606-54-ehabkost@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
target/rx/cpu-qom.h | 1 +
target/rx/cpu.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/rx/cpu-qom.h b/target/rx/cpu-qom.h
index af937bc680..9054762326 100644
--- a/target/rx/cpu-qom.h
+++ b/target/rx/cpu-qom.h
@@ -25,6 +25,7 @@
#define TYPE_RX62N_CPU RX_CPU_TYPE_NAME("rx62n")
+typedef struct RXCPU RXCPU;
#define RX_CPU_CLASS(klass) \
OBJECT_CLASS_CHECK(RXCPUClass, (klass), TYPE_RX_CPU)
#define RX_CPU(obj) \
diff --git a/target/rx/cpu.h b/target/rx/cpu.h
index d1fb1ef3ca..0b4b998c7b 100644
--- a/target/rx/cpu.h
+++ b/target/rx/cpu.h
@@ -115,7 +115,6 @@ struct RXCPU {
CPURXState env;
};
-typedef struct RXCPU RXCPU;
typedef RXCPU ArchCPU;
#define ENV_OFFSET offsetof(RXCPU, env)
--
2.26.2
- [PULL 00/20] x86 and machine queue, 2020-09-02, Eduardo Habkost, 2020/09/02
- [PULL 02/20] mos6522: Rename QOM macros, Eduardo Habkost, 2020/09/02
- [PULL 01/20] imx_ccm: Rename IMX_GET_CLASS macro, Eduardo Habkost, 2020/09/02
- [PULL 03/20] x86-iommu: Rename QOM type macros, Eduardo Habkost, 2020/09/02
- [PULL 05/20] arm: Fix typo in AARCH64_CPU_GET_CLASS definition, Eduardo Habkost, 2020/09/02
- [PULL 04/20] rdma: Rename INTERFACE_RDMA_PROVIDER_CLASS macro, Eduardo Habkost, 2020/09/02
- [PULL 07/20] rx: Move typedef RXCPU to cpu-qom.h,
Eduardo Habkost <=
- [PULL 06/20] rx: Rename QOM type check macros, Eduardo Habkost, 2020/09/02
- [PULL 08/20] hda-audio: Set instance_size at base class, Eduardo Habkost, 2020/09/02
- [PULL 09/20] tls-cipher-suites: Correct instance_size, Eduardo Habkost, 2020/09/02
- [PULL 11/20] Revert "target/i386: Enable new apic id encoding for EPYC based cpus models", Eduardo Habkost, 2020/09/02
- [PULL 12/20] Revert "hw/i386: Move arch_id decode inside x86_cpus_init", Eduardo Habkost, 2020/09/02
- [PULL 10/20] Revert "i386: Fix pkg_id offset for EPYC cpu models", Eduardo Habkost, 2020/09/02
- [PULL 14/20] Revert "hw/i386: Introduce apicid functions inside X86MachineState", Eduardo Habkost, 2020/09/02
- [PULL 13/20] Revert "i386: Introduce use_epyc_apic_id_encoding in X86CPUDefinition", Eduardo Habkost, 2020/09/02
- [PULL 16/20] Revert "hw/386: Add EPYC mode topology decoding functions", Eduardo Habkost, 2020/09/02
- [PULL 17/20] Revert "hw/i386: Update structures to save the number of nodes per package", Eduardo Habkost, 2020/09/02