xref: /qemu/hw/core/cpu-user.c (revision 1405d7e60d8c98a28b29885f70da4f2e4407fbc6)
1 /*
2  * QEMU CPU model (user specific)
3  *
4  * Copyright (c) Linaro, Ltd.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #include "qemu/osdep.h"
10 #include "hw/qdev-core.h"
11 #include "hw/qdev-properties.h"
12 #include "hw/core/cpu.h"
13 
14 static const Property cpu_user_props[] = {
15     /*
16      * Create a property for the user-only object, so users can
17      * adjust prctl(PR_SET_UNALIGN) from the command-line.
18      * Has no effect if the target does not support the feature.
19      */
20     DEFINE_PROP_BOOL("prctl-unalign-sigbus", CPUState,
21                      prctl_unalign_sigbus, false),
22 };
23 
24 void cpu_class_init_props(DeviceClass *dc)
25 {
26     device_class_set_props(dc, cpu_user_props);
27 }
28 
29 void cpu_exec_initfn(CPUState *cpu)
30 {
31     /* nothing to do */
32 }
33