Skip to content

Commit 87924c2

Browse files
committed
target/arc: Clean CPU declarations
Signed-off-by: Yuriy Kolerov <[email protected]>
1 parent eb40442 commit 87924c2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

target/arc/cpu-qom.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@
2424

2525
#define TYPE_ARC_CPU "arc-cpu"
2626

27-
typedef struct ArchCPU ARCCPU;
28-
typedef struct ARCCPUClass ARCCPUClass;
2927
typedef struct CPUArchState CPUARCState;
30-
DECLARE_OBJ_CHECKERS(ARCCPU, ARCCPUClass,
31-
ARC_CPU, TYPE_ARC_CPU)
28+
OBJECT_DECLARE_CPU_TYPE(ARCCPU, ARCCPUClass, ARC_CPU)
3229

3330
/*
3431
* ARCCPUClass:
@@ -37,13 +34,13 @@ DECLARE_OBJ_CHECKERS(ARCCPU, ARCCPUClass,
3734
*
3835
* A ARC CPU model.
3936
*/
40-
typedef struct ARCCPUClass {
37+
struct ARCCPUClass {
4138
/*< private >*/
4239
CPUClass parent_class;
4340
/*< public >*/
4441

4542
DeviceRealize parent_realize;
4643
DeviceReset parent_reset;
47-
} ARCCPUClass;
44+
};
4845

4946
#endif

target/arc/mmu-common.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ struct mem_exception {
8080
(EXCP).parameter = P; \
8181
}
8282

83-
struct CPUARCState;
84-
8583
/* ARCv2 MMU functions */
8684
void arc_mmu_init_v3(CPUARCState *env);
8785
bool

0 commit comments

Comments
 (0)