remove slow cpu QOM casts (#815)

This commit is contained in:
Ryan Hileman 2017-05-01 23:56:39 -07:00 committed by Nguyen Anh Quynh
parent 187b470245
commit 1b00d3f89a
5 changed files with 5 additions and 10 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)