diff mbox series

[v3,53/74] rx: Move typedef RXCPU to cpu-qom.h

Message ID 20200825192110.3528606-54-ehabkost@redhat.com
State New
Headers show
Series [v3,01/74] e1000: Rename QOM class cast macros | expand

Commit Message

Eduardo Habkost Aug. 25, 2020, 7:20 p.m. UTC
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(-)

Comments

Peter Maydell Aug. 31, 2020, 6:48 p.m. UTC | #1
On Tue, 25 Aug 2020 at 20:46, Eduardo Habkost <ehabkost@redhat.com> wrote:
>
> 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

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
diff mbox series

Patch

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)