xref: /openbmc/qemu/target/tricore/cpu-qom.h (revision fcf5ef2a)
1*fcf5ef2aSThomas Huth /*
2*fcf5ef2aSThomas Huth  *  Copyright (c) 2012-2014 Bastian Koppelmann C-Lab/University Paderborn
3*fcf5ef2aSThomas Huth  *
4*fcf5ef2aSThomas Huth  * This library is free software; you can redistribute it and/or
5*fcf5ef2aSThomas Huth  * modify it under the terms of the GNU Lesser General Public
6*fcf5ef2aSThomas Huth  * License as published by the Free Software Foundation; either
7*fcf5ef2aSThomas Huth  * version 2 of the License, or (at your option) any later version.
8*fcf5ef2aSThomas Huth  *
9*fcf5ef2aSThomas Huth  * This library is distributed in the hope that it will be useful,
10*fcf5ef2aSThomas Huth  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11*fcf5ef2aSThomas Huth  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12*fcf5ef2aSThomas Huth  * Lesser General Public License for more details.
13*fcf5ef2aSThomas Huth  *
14*fcf5ef2aSThomas Huth  * You should have received a copy of the GNU Lesser General Public
15*fcf5ef2aSThomas Huth  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16*fcf5ef2aSThomas Huth  */
17*fcf5ef2aSThomas Huth 
18*fcf5ef2aSThomas Huth #ifndef QEMU_TRICORE_CPU_QOM_H
19*fcf5ef2aSThomas Huth #define QEMU_TRICORE_CPU_QOM_H
20*fcf5ef2aSThomas Huth 
21*fcf5ef2aSThomas Huth #include "qom/cpu.h"
22*fcf5ef2aSThomas Huth 
23*fcf5ef2aSThomas Huth 
24*fcf5ef2aSThomas Huth #define TYPE_TRICORE_CPU "tricore-cpu"
25*fcf5ef2aSThomas Huth 
26*fcf5ef2aSThomas Huth #define TRICORE_CPU_CLASS(klass) \
27*fcf5ef2aSThomas Huth     OBJECT_CLASS_CHECK(TriCoreCPUClass, (klass), TYPE_TRICORE_CPU)
28*fcf5ef2aSThomas Huth #define TRICORE_CPU(obj) \
29*fcf5ef2aSThomas Huth     OBJECT_CHECK(TriCoreCPU, (obj), TYPE_TRICORE_CPU)
30*fcf5ef2aSThomas Huth #define TRICORE_CPU_GET_CLASS(obj) \
31*fcf5ef2aSThomas Huth     OBJECT_GET_CLASS(TriCoreCPUClass, (obj), TYPE_TRICORE_CPU)
32*fcf5ef2aSThomas Huth 
33*fcf5ef2aSThomas Huth typedef struct TriCoreCPUClass {
34*fcf5ef2aSThomas Huth     /*< private >*/
35*fcf5ef2aSThomas Huth     CPUClass parent_class;
36*fcf5ef2aSThomas Huth     /*< public >*/
37*fcf5ef2aSThomas Huth 
38*fcf5ef2aSThomas Huth     DeviceRealize parent_realize;
39*fcf5ef2aSThomas Huth     void (*parent_reset)(CPUState *cpu);
40*fcf5ef2aSThomas Huth } TriCoreCPUClass;
41*fcf5ef2aSThomas Huth 
42*fcf5ef2aSThomas Huth typedef struct TriCoreCPU TriCoreCPU;
43*fcf5ef2aSThomas Huth 
44*fcf5ef2aSThomas Huth #endif /* QEMU_TRICORE_CPU_QOM_H */
45