[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 50/55] hw/core/cpu: Add prctl-unalign-sigbus property for user
From: |
Richard Henderson |
Subject: |
[PATCH v2 50/55] hw/core/cpu: Add prctl-unalign-sigbus property for user-only |
Date: |
Mon, 2 Aug 2021 18:14:38 -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 v2 40/55] target/arm: Use cpu_*_mmu instead of helper_*_mmu, (continued)
- [PATCH v2 40/55] target/arm: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/08/03
- [PATCH v2 41/55] tcg: Move helper_*_mmu decls to tcg/tcg-ldst.h, Richard Henderson, 2021/08/03
- [PATCH v2 42/55] tcg: Add helper_unaligned_mmu for user-only sigbus, Richard Henderson, 2021/08/03
- [PATCH v2 43/55] tcg/i386: Support raising sigbus for user-only, Richard Henderson, 2021/08/03
- [PATCH v2 44/55] tests/tcg/multiarch: Add sigbus.c, Richard Henderson, 2021/08/03
- [PATCH v2 46/55] linux-user: Disable more prctl subcodes, Richard Henderson, 2021/08/03
- [PATCH v2 47/55] hw/core/cpu: Re-sort the non-pointers to the end of CPUClass, Richard Henderson, 2021/08/03
- [PATCH v2 45/55] linux-user: Split out do_prctl and subroutines, Richard Henderson, 2021/08/03
- [PATCH v2 48/55] linux-user: Add code for PR_GET/SET_UNALIGN, Richard Henderson, 2021/08/03
- [PATCH v2 49/55] hw/core/cpu: Move cpu properties to cpu-sysemu.c, Richard Henderson, 2021/08/03
- [PATCH v2 50/55] hw/core/cpu: Add prctl-unalign-sigbus property for user-only,
Richard Henderson <=
- [PATCH v2 51/55] target/alpha: Reorg fp memory operations, Richard Henderson, 2021/08/03
- [PATCH v2 52/55] target/alpha: Reorg integer memory operations, Richard Henderson, 2021/08/03
- [PATCH v2 53/55] target/alpha: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/03
- [PATCH v2 54/55] target/hppa: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/03
- [PATCH v2 55/55] target/sh4: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/03