xref: /qemu/target/i386/cpu-qom.h (revision ed1d873caa93fde443b14369309cdd4366d4ca08)
15fd2087aSAndreas Färber /*
25fd2087aSAndreas Färber  * QEMU x86 CPU
35fd2087aSAndreas Färber  *
45fd2087aSAndreas Färber  * Copyright (c) 2012 SUSE LINUX Products GmbH
55fd2087aSAndreas Färber  *
65fd2087aSAndreas Färber  * This library is free software; you can redistribute it and/or
75fd2087aSAndreas Färber  * modify it under the terms of the GNU Lesser General Public
85fd2087aSAndreas Färber  * License as published by the Free Software Foundation; either
95fd2087aSAndreas Färber  * version 2.1 of the License, or (at your option) any later version.
105fd2087aSAndreas Färber  *
115fd2087aSAndreas Färber  * This library is distributed in the hope that it will be useful,
125fd2087aSAndreas Färber  * but WITHOUT ANY WARRANTY; without even the implied warranty of
135fd2087aSAndreas Färber  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
145fd2087aSAndreas Färber  * Lesser General Public License for more details.
155fd2087aSAndreas Färber  *
165fd2087aSAndreas Färber  * You should have received a copy of the GNU Lesser General Public
175fd2087aSAndreas Färber  * License along with this library; if not, see
185fd2087aSAndreas Färber  * <http://www.gnu.org/licenses/lgpl-2.1.html>
195fd2087aSAndreas Färber  */
205fd2087aSAndreas Färber #ifndef QEMU_I386_CPU_QOM_H
215fd2087aSAndreas Färber #define QEMU_I386_CPU_QOM_H
225fd2087aSAndreas Färber 
232e5b09fdSMarkus Armbruster #include "hw/core/cpu.h"
245fd2087aSAndreas Färber 
255fd2087aSAndreas Färber #ifdef TARGET_X86_64
265fd2087aSAndreas Färber #define TYPE_X86_CPU "x86_64-cpu"
275fd2087aSAndreas Färber #else
285fd2087aSAndreas Färber #define TYPE_X86_CPU "i386-cpu"
295fd2087aSAndreas Färber #endif
305fd2087aSAndreas Färber 
319295b1aaSPhilippe Mathieu-Daudé OBJECT_DECLARE_CPU_TYPE(X86CPU, X86CPUClass, X86_CPU)
325fd2087aSAndreas Färber 
33*2d56be5aSPhilippe Mathieu-Daudé #define X86_CPU_TYPE_SUFFIX "-" TYPE_X86_CPU
34*2d56be5aSPhilippe Mathieu-Daudé #define X86_CPU_TYPE_NAME(name) (name X86_CPU_TYPE_SUFFIX)
35*2d56be5aSPhilippe Mathieu-Daudé 
365fd2087aSAndreas Färber #endif
37