xref: /qemu/target/sparc/cpu-qom.h (revision ed1d873caa93fde443b14369309cdd4366d4ca08)
1ab7ab3d7SAndreas Färber /*
2*2d56be5aSPhilippe Mathieu-Daudé  * QEMU SPARC CPU QOM header (target agnostic)
3ab7ab3d7SAndreas Färber  *
4ab7ab3d7SAndreas Färber  * Copyright (c) 2012 SUSE LINUX Products GmbH
5ab7ab3d7SAndreas Färber  *
6ab7ab3d7SAndreas Färber  * This library is free software; you can redistribute it and/or
7ab7ab3d7SAndreas Färber  * modify it under the terms of the GNU Lesser General Public
8ab7ab3d7SAndreas Färber  * License as published by the Free Software Foundation; either
9ab7ab3d7SAndreas Färber  * version 2.1 of the License, or (at your option) any later version.
10ab7ab3d7SAndreas Färber  *
11ab7ab3d7SAndreas Färber  * This library is distributed in the hope that it will be useful,
12ab7ab3d7SAndreas Färber  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13ab7ab3d7SAndreas Färber  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14ab7ab3d7SAndreas Färber  * Lesser General Public License for more details.
15ab7ab3d7SAndreas Färber  *
16ab7ab3d7SAndreas Färber  * You should have received a copy of the GNU Lesser General Public
17ab7ab3d7SAndreas Färber  * License along with this library; if not, see
18ab7ab3d7SAndreas Färber  * <http://www.gnu.org/licenses/lgpl-2.1.html>
19ab7ab3d7SAndreas Färber  */
20ab7ab3d7SAndreas Färber #ifndef QEMU_SPARC_CPU_QOM_H
21ab7ab3d7SAndreas Färber #define QEMU_SPARC_CPU_QOM_H
22ab7ab3d7SAndreas Färber 
232e5b09fdSMarkus Armbruster #include "hw/core/cpu.h"
24ab7ab3d7SAndreas Färber 
25ab7ab3d7SAndreas Färber #ifdef TARGET_SPARC64
26ab7ab3d7SAndreas Färber #define TYPE_SPARC_CPU "sparc64-cpu"
27ab7ab3d7SAndreas Färber #else
28ab7ab3d7SAndreas Färber #define TYPE_SPARC_CPU "sparc-cpu"
29ab7ab3d7SAndreas Färber #endif
30ab7ab3d7SAndreas Färber 
319295b1aaSPhilippe Mathieu-Daudé OBJECT_DECLARE_CPU_TYPE(SPARCCPU, SPARCCPUClass, SPARC_CPU)
32ab7ab3d7SAndreas Färber 
33*2d56be5aSPhilippe Mathieu-Daudé #define SPARC_CPU_TYPE_SUFFIX "-" TYPE_SPARC_CPU
34*2d56be5aSPhilippe Mathieu-Daudé #define SPARC_CPU_TYPE_NAME(model) model SPARC_CPU_TYPE_SUFFIX
35*2d56be5aSPhilippe Mathieu-Daudé 
36ab7ab3d7SAndreas Färber #endif
37