]> git.proxmox.com Git - mirror_qemu.git/blame - target/rx/cpu-qom.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / target / rx / cpu-qom.h
CommitLineData
27a4a30e
YS
1/*
2 * RX CPU
3 *
4 * Copyright (c) 2019 Yoshinori Sato
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2 or later, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef RX_CPU_QOM_H
20#define RX_CPU_QOM_H
21
22#include "hw/core/cpu.h"
db1015e9 23#include "qom/object.h"
27a4a30e
YS
24
25#define TYPE_RX_CPU "rx-cpu"
26
27#define TYPE_RX62N_CPU RX_CPU_TYPE_NAME("rx62n")
28
b116cedd 29typedef struct RXCPU RXCPU;
db1015e9 30typedef struct RXCPUClass RXCPUClass;
8110fa1d
EH
31DECLARE_OBJ_CHECKERS(RXCPU, RXCPUClass,
32 RX_CPU, TYPE_RX_CPU)
27a4a30e
YS
33
34/*
35 * RXCPUClass:
36 * @parent_realize: The parent class' realize handler.
37 * @parent_reset: The parent class' reset handler.
38 *
39 * A RX CPU model.
40 */
db1015e9 41struct RXCPUClass {
27a4a30e
YS
42 /*< private >*/
43 CPUClass parent_class;
44 /*< public >*/
45
46 DeviceRealize parent_realize;
47 DeviceReset parent_reset;
db1015e9 48};
27a4a30e
YS
49
50#define CPUArchState struct CPURXState
51
52#endif