target: Resolve repeated typedef warnings

This commit is contained in:
Lioncash 2019-01-22 20:27:35 -05:00
parent 72abfa9588
commit 29d84a9296
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
6 changed files with 10 additions and 11 deletions

View file

@ -37,7 +37,6 @@
typedef struct MemoryRegionOps MemoryRegionOps;
typedef struct MemoryRegionMmio MemoryRegionMmio;
typedef struct FlatView FlatView;
struct MemoryRegionMmio {
CPUReadMemoryFunc *read[3];

View file

@ -718,7 +718,7 @@ typedef struct ARMISARegisters ARMISARegisters;
*
* An ARM CPU core.
*/
typedef struct ARMCPU {
struct ARMCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
@ -884,7 +884,7 @@ typedef struct ARMCPU {
/* Used to set the maximum vector length the cpu will support. */
uint32_t sve_max_vq;
} ARMCPU;
};
static inline ARMCPU *arm_env_get_cpu(CPUARMState *env)
{

View file

@ -1313,7 +1313,7 @@ typedef struct CPUX86State {
*
* An x86 CPU.
*/
typedef struct X86CPU {
struct X86CPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
@ -1400,7 +1400,7 @@ typedef struct X86CPU {
// Unicorn: Moved here to prevent a local static
bool cpu_globals_initialized;
} X86CPU;
};
static inline X86CPU *x86_env_get_cpu(CPUX86State *env)
{

View file

@ -164,13 +164,13 @@ typedef struct CPUM68KState {
*
* A Motorola 68k CPU.
*/
typedef struct M68kCPU {
struct M68kCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
CPUM68KState env;
} M68kCPU;
};
static inline M68kCPU *m68k_env_get_cpu(CPUM68KState *env)
{

View file

@ -1047,13 +1047,13 @@ struct CPUMIPSState {
*
* A MIPS CPU.
*/
typedef struct MIPSCPU {
struct MIPSCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
CPUMIPSState env;
} MIPSCPU;
};
static inline MIPSCPU *mips_env_get_cpu(CPUMIPSState *env)
{

View file

@ -539,13 +539,13 @@ struct CPUSPARCState {
*
* A SPARC CPU.
*/
typedef struct SPARCCPU {
struct SPARCCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
CPUSPARCState env;
} SPARCCPU;
};
static inline SPARCCPU *sparc_env_get_cpu(CPUSPARCState *env)
{