Skip to content

Commit

Permalink
target/arc: Clean CPU declarations
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy Kolerov <[email protected]>
  • Loading branch information
kolerov committed Jul 9, 2024
1 parent eb40442 commit 87924c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions target/arc/cpu-qom.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@

#define TYPE_ARC_CPU "arc-cpu"

typedef struct ArchCPU ARCCPU;
typedef struct ARCCPUClass ARCCPUClass;
typedef struct CPUArchState CPUARCState;
DECLARE_OBJ_CHECKERS(ARCCPU, ARCCPUClass,
ARC_CPU, TYPE_ARC_CPU)
OBJECT_DECLARE_CPU_TYPE(ARCCPU, ARCCPUClass, ARC_CPU)

/*
* ARCCPUClass:
Expand All @@ -37,13 +34,13 @@ DECLARE_OBJ_CHECKERS(ARCCPU, ARCCPUClass,
*
* A ARC CPU model.
*/
typedef struct ARCCPUClass {
struct ARCCPUClass {
/*< private >*/
CPUClass parent_class;
/*< public >*/

DeviceRealize parent_realize;
DeviceReset parent_reset;
} ARCCPUClass;
};

#endif
2 changes: 0 additions & 2 deletions target/arc/mmu-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ struct mem_exception {
(EXCP).parameter = P; \
}

struct CPUARCState;

/* ARCv2 MMU functions */
void arc_mmu_init_v3(CPUARCState *env);
bool
Expand Down

0 comments on commit 87924c2

Please sign in to comment.