[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 53/74] rx: Move typedef RXCPU to cpu-qom.h
From: |
Eduardo Habkost |
Subject: |
[PATCH v3 53/74] rx: Move typedef RXCPU to cpu-qom.h |
Date: |
Tue, 25 Aug 2020 15:20:49 -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>
---
Changes series v2 -> v3: new patch added to series v3
---
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: qemu-devel@nongnu.org
---
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
- [PATCH v3 50/74] migration: Rename class type checking macros, (continued)
- [PATCH v3 50/74] migration: Rename class type checking macros, Eduardo Habkost, 2020/08/25
- [PATCH v3 49/74] swim: Rename struct SWIM to Swim, Eduardo Habkost, 2020/08/25
- [PATCH v3 51/74] arm: Fix typo in AARCH64_CPU_GET_CLASS definition, Eduardo Habkost, 2020/08/25
- [PATCH v3 54/74] qom: make object_ref/unref use a void * instead of Object *., Eduardo Habkost, 2020/08/25
- [PATCH v3 52/74] rx: Rename QOM type check macros, Eduardo Habkost, 2020/08/25
- [PATCH v3 56/74] qom: Allow class type name to be specified in OBJECT_DECLARE*, Eduardo Habkost, 2020/08/25
- [PATCH v3 53/74] rx: Move typedef RXCPU to cpu-qom.h,
Eduardo Habkost <=
- [PATCH v3 57/74] qom: DECLARE_*_CHECKERS macros, Eduardo Habkost, 2020/08/25
- [PATCH v3 55/74] qom: provide convenient macros for declaring and defining types, Eduardo Habkost, 2020/08/25
- [PATCH v3 61/74] [automated] Delete duplicate QOM typedefs, Eduardo Habkost, 2020/08/25
- [PATCH v3 58/74] qom: Make type checker functions accept const pointers, Eduardo Habkost, 2020/08/25
- [PATCH v3 59/74] qom: TYPE_INFO macro, Eduardo Habkost, 2020/08/25
- [PATCH v3 60/74] codeconverter: script for automating QOM code cleanups, Eduardo Habkost, 2020/08/25
- [PATCH v3 63/74] [automated] Use TYPE_INFO macro (pass 2), Eduardo Habkost, 2020/08/25
- [PATCH v3 62/74] [automated] Use TYPE_INFO macro, Eduardo Habkost, 2020/08/25