cpu-user.c 747 B

1234567891011121314151617181920212223242526272829303132
  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. #include "qemu/osdep.h"
  9. #include "hw/qdev-core.h"
  10. #include "hw/qdev-properties.h"
  11. #include "hw/core/cpu.h"
  12. static const Property cpu_user_props[] = {
  13. /*
  14. * Create a property for the user-only object, so users can
  15. * adjust prctl(PR_SET_UNALIGN) from the command-line.
  16. * Has no effect if the target does not support the feature.
  17. */
  18. DEFINE_PROP_BOOL("prctl-unalign-sigbus", CPUState,
  19. prctl_unalign_sigbus, false),
  20. };
  21. void cpu_class_init_props(DeviceClass *dc)
  22. {
  23. device_class_set_props(dc, cpu_user_props);
  24. }
  25. void cpu_exec_initfn(CPUState *cpu)
  26. {
  27. /* nothing to do */
  28. }