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

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