mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 12:58:09 +00:00
target: Resolve repeated typedef warnings
This commit is contained in:
parent
72abfa9588
commit
29d84a9296
6 changed files with 10 additions and 11 deletions
|
@ -37,7 +37,6 @@
|
|||
|
||||
typedef struct MemoryRegionOps MemoryRegionOps;
|
||||
typedef struct MemoryRegionMmio MemoryRegionMmio;
|
||||
typedef struct FlatView FlatView;
|
||||
|
||||
struct MemoryRegionMmio {
|
||||
CPUReadMemoryFunc *read[3];
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue