1 | /* |
2 | * PowerPC CPU initialization for qemu. |
3 | * |
4 | * Copyright (c) 2003-2007 Jocelyn Mayer |
5 | * Copyright 2011 Freescale Semiconductor, Inc. |
6 | * Copyright 2013 SUSE LINUX Products GmbH |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Lesser General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Lesser General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Lesser General Public |
19 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | #include "qemu/osdep.h" |
23 | #include "cpu.h" |
24 | #include "qemu/module.h" |
25 | #include "cpu-models.h" |
26 | |
27 | #if defined(CONFIG_USER_ONLY) |
28 | #define TODO_USER_ONLY 1 |
29 | #endif |
30 | |
31 | /***************************************************************************/ |
32 | /* PowerPC CPU definitions */ |
33 | #define POWERPC_DEF_PREFIX(pvr, svr, type) \ |
34 | glue(glue(glue(glue(pvr, _), svr), _), type) |
35 | #define POWERPC_DEF_SVR(_name, _desc, _pvr, _svr, _type) \ |
36 | static void \ |
37 | glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_class_init) \ |
38 | (ObjectClass * |
---|