]> git.proxmox.com Git - qemu.git/blob - target-alpha/cpu.c
target-alpha: QOM'ify CPU
[qemu.git] / target-alpha / cpu.c
1 /*
2 * QEMU Alpha CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see
18 * <http://www.gnu.org/licenses/lgpl-2.1.html>
19 */
20
21 #include "cpu-qom.h"
22 #include "qemu-common.h"
23
24
25 static const TypeInfo alpha_cpu_type_info = {
26 .name = TYPE_ALPHA_CPU,
27 .parent = TYPE_CPU,
28 .instance_size = sizeof(AlphaCPU),
29 .abstract = false,
30 .class_size = sizeof(AlphaCPUClass),
31 };
32
33 static void alpha_cpu_register_types(void)
34 {
35 type_register_static(&alpha_cpu_type_info);
36 }
37
38 type_init(alpha_cpu_register_types)