mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 11:08:17 +00:00
remove slow cpu QOM casts (#815)
This commit is contained in:
parent
187b470245
commit
1b00d3f89a
5 changed files with 5 additions and 10 deletions
|
@ -26,8 +26,7 @@
|
|||
|
||||
#define ARM_CPU_CLASS(uc, klass) \
|
||||
OBJECT_CLASS_CHECK(uc, ARMCPUClass, (klass), TYPE_ARM_CPU)
|
||||
#define ARM_CPU(uc, obj) \
|
||||
OBJECT_CHECK(uc, ARMCPU, (obj), TYPE_ARM_CPU)
|
||||
#define ARM_CPU(uc, obj) ((ARMCPU *)obj)
|
||||
#define ARM_CPU_GET_CLASS(uc, obj) \
|
||||
OBJECT_GET_CLASS(uc, ARMCPUClass, (obj), TYPE_ARM_CPU)
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
|
||||
#define X86_CPU_CLASS(uc, klass) \
|
||||
OBJECT_CLASS_CHECK(uc, X86CPUClass, (klass), TYPE_X86_CPU)
|
||||
#define X86_CPU(uc, obj) \
|
||||
OBJECT_CHECK(uc, X86CPU, (obj), TYPE_X86_CPU)
|
||||
#define X86_CPU(uc, obj) ((X86CPU *)obj)
|
||||
#define X86_CPU_GET_CLASS(uc, obj) \
|
||||
OBJECT_GET_CLASS(uc, X86CPUClass, (obj), TYPE_X86_CPU)
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
|
||||
#define M68K_CPU_CLASS(uc, klass) \
|
||||
OBJECT_CLASS_CHECK(uc, M68kCPUClass, (klass), TYPE_M68K_CPU)
|
||||
#define M68K_CPU(uc, obj) \
|
||||
OBJECT_CHECK(uc, M68kCPU, (obj), TYPE_M68K_CPU)
|
||||
#define M68K_CPU(uc, obj) ((M68kCPU *)obj)
|
||||
#define M68K_CPU_GET_CLASS(uc, obj) \
|
||||
OBJECT_GET_CLASS(uc, M68kCPUClass, (obj), TYPE_M68K_CPU)
|
||||
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
|
||||
#define MIPS_CPU_CLASS(uc, klass) \
|
||||
OBJECT_CLASS_CHECK(uc, MIPSCPUClass, (klass), TYPE_MIPS_CPU)
|
||||
#define MIPS_CPU(uc, obj) \
|
||||
OBJECT_CHECK(uc, MIPSCPU, (obj), TYPE_MIPS_CPU)
|
||||
#define MIPS_CPU(uc, obj) ((MIPSCPU *)obj)
|
||||
#define MIPS_CPU_GET_CLASS(uc, obj) \
|
||||
OBJECT_GET_CLASS(uc, MIPSCPUClass, (obj), TYPE_MIPS_CPU)
|
||||
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
|
||||
#define SPARC_CPU_CLASS(uc, klass) \
|
||||
OBJECT_CLASS_CHECK(uc, SPARCCPUClass, (klass), TYPE_SPARC_CPU)
|
||||
#define SPARC_CPU(uc, obj) \
|
||||
OBJECT_CHECK(uc, SPARCCPU, (obj), TYPE_SPARC_CPU)
|
||||
#define SPARC_CPU(uc, obj) ((SPARCCPU *)obj)
|
||||
#define SPARC_CPU_GET_CLASS(uc, obj) \
|
||||
OBJECT_GET_CLASS(uc, SPARCCPUClass, (obj), TYPE_SPARC_CPU)
|
||||
|
||||
|
|
Loading…
Reference in a new issue