[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/14] target/arm: default SVE length to 64 bytes for linux-us
From: |
Alex Bennée |
Subject: |
[PATCH v2 11/14] target/arm: default SVE length to 64 bytes for linux-user |
Date: |
Sat, 30 Nov 2019 08:45:59 +0000 |
The Linux kernel chooses the default of 64 bytes for SVE registers on
the basis that it is the largest size that won't grow the signal
frame. When debugging larger sizes are also unwieldy in gdb as each
zreg will take over a page of terminal to display.
The user can of course always specify a larger size with the
sve-max-vq property on the command line:
-cpu max,sve-max-vq=16
This should not make any difference to SVE enabled software as the SVE
is of course vector length agnostic.
Signed-off-by: Alex Bennée <address@hidden>
---
target/arm/cpu64.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
index a39d6fcea34..bc5d6c4b974 100644
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -703,6 +703,9 @@ static void aarch64_max_initfn(Object *obj)
*/
cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache
*/
cpu->dcz_blocksize = 7; /* 512 bytes */
+
+ /* Default sve-max-vq to a reasonable numer */
+ cpu->sve_max_vq = 4;
#endif
}
--
2.20.1
- [PATCH v2 01/14] gdbstub: make GDBState static and have common init function, (continued)
- [PATCH v2 01/14] gdbstub: make GDBState static and have common init function, Alex Bennée, 2019/11/30
- [PATCH v2 05/14] gdbstub: add helper for 128 bit registers, Alex Bennée, 2019/11/30
- [PATCH v2 03/14] gdbstub: move str_buf to GDBState and use GString, Alex Bennée, 2019/11/30
- [PATCH v2 06/14] target/arm: use gdb_get_reg helpers, Alex Bennée, 2019/11/30
- [PATCH v2 07/14] target/m68k: use gdb_get_reg helpers, Alex Bennée, 2019/11/30
- [PATCH v2 10/14] target/arm: explicitly encode regnum in our XML, Alex Bennée, 2019/11/30
- [PATCH v2 09/14] target/arm: prepare for multiple dynamic XMLs, Alex Bennée, 2019/11/30
- [PATCH v2 12/14] target/arm: generate xml description of our SVE registers, Alex Bennée, 2019/11/30
- [PATCH v2 02/14] gdbstub: stop passing GDBState * around and use global, Alex Bennée, 2019/11/30
- [PATCH v2 08/14] gdbstub: extend GByteArray to read register helpers, Alex Bennée, 2019/11/30
- [PATCH v2 11/14] target/arm: default SVE length to 64 bytes for linux-user,
Alex Bennée <=
- [PATCH v2 13/14] tests/guest-debug: add a simple test runner, Alex Bennée, 2019/11/30
- [PATCH v2 14/14] tests/tcg: add a gdbstub testcase for SVE registers, Alex Bennée, 2019/11/30
- Re: [PATCH v2 00/14] gdbstub refactor and SVE support, no-reply, 2019/11/30