OSDN Git Service

rx: Move typedef RXCPU to cpu-qom.h
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 25 Aug 2020 19:20:49 +0000 (15:20 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 2 Sep 2020 11:29:25 +0000 (07:29 -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
target/rx/cpu.h

index af937bc..9054762 100644 (file)
@@ -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) \
index d1fb1ef..0b4b998 100644 (file)
@@ -115,7 +115,6 @@ struct RXCPU {
     CPURXState env;
 };
 
-typedef struct RXCPU RXCPU;
 typedef RXCPU ArchCPU;
 
 #define ENV_OFFSET offsetof(RXCPU, env)