[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 51/66] hw/core/cpu: Add prctl-unalign-sigbus property for user
From: |
Richard Henderson |
Subject: |
[PATCH v3 51/66] hw/core/cpu: Add prctl-unalign-sigbus property for user-only |
Date: |
Wed, 18 Aug 2021 09:19:05 -1000 |
Actually disabled for now. Will enable for each cpu that
supports the feature.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/core/cpu-user.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/hw/core/cpu-user.c b/hw/core/cpu-user.c
index 62037e8669..23786865cb 100644
--- a/hw/core/cpu-user.c
+++ b/hw/core/cpu-user.c
@@ -11,12 +11,27 @@
#include "qemu/osdep.h"
#include "hw/core/cpu.h"
+#include "hw/qdev-properties.h"
#include "cpu-common.h"
/*
* This can't go in hw/core/cpu-common.c because that file is compiled only
* once for both user-mode and system builds.
*/
+static Property cpu_useronly_props[] = {
+ /*
+ * Create a memory property for softmmu CPU object, so users can wire
+ * up its memory. The default if no link is set up is to use the
+ * system address space.
+ */
+#if 0
+ DEFINE_PROP_BOOL("prctl-unalign-sigbus", CPUState,
+ prctl_unalign_sigbus, false),
+#endif
+ DEFINE_PROP_END_OF_LIST(),
+};
+
void cpu_class_init_props(DeviceClass *dc)
{
+ device_class_set_props(dc, cpu_useronly_props);
}
--
2.25.1
- [PATCH v3 46/66] linux-user: Split out do_prctl and subroutines, (continued)
- [PATCH v3 46/66] linux-user: Split out do_prctl and subroutines, Richard Henderson, 2021/08/18
- [PATCH v3 48/66] hw/core/cpu: Re-sort the non-pointers to the end of CPUClass, Richard Henderson, 2021/08/18
- [PATCH v3 49/66] linux-user: Add code for PR_GET/SET_UNALIGN, Richard Henderson, 2021/08/18
- [PATCH v3 52/66] target/alpha: Reorg fp memory operations, Richard Henderson, 2021/08/18
- [PATCH v3 53/66] target/alpha: Reorg integer memory operations, Richard Henderson, 2021/08/18
- [PATCH v3 51/66] hw/core/cpu: Add prctl-unalign-sigbus property for user-only,
Richard Henderson <=
- [PATCH v3 50/66] hw/core/cpu: Move cpu properties to cpu-sysemu.c, Richard Henderson, 2021/08/18
- [PATCH v3 54/66] target/alpha: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 56/66] target/sh4: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 55/66] target/hppa: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 57/66] accel/tcg/user-exec: Convert DEBUG_SIGNAL to tracepoint, Richard Henderson, 2021/08/18
- [PATCH v3 58/66] include/exec: Move cpu_signal_handler declaration, Richard Henderson, 2021/08/18