diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2025-01-21 14:06:25 -0300 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2025-03-04 15:42:54 +1000 |
commit | 3fba76e61caa46329afc399b3ecaaba70c8b0a4e (patch) | |
tree | 5695c44f6c690bff2113fae1c6df31acd55af930 /tests/functional/qemu_test | |
parent | bf3adf93f16730ca5aaa6c26cf969e64eeff6e7b (diff) | |
download | qemu-3fba76e61caa46329afc399b3ecaaba70c8b0a4e.zip qemu-3fba76e61caa46329afc399b3ecaaba70c8b0a4e.tar.gz qemu-3fba76e61caa46329afc399b3ecaaba70c8b0a4e.tar.bz2 |
target/riscv/debug.c: use wp size = 4 for 32-bit CPUs
The mcontrol select bit (19) is always zero, meaning our triggers will
always match virtual addresses. In this condition, if the user does not
specify a size for the trigger, the access size defaults to XLEN.
At this moment we're using def_size = 8 regardless of CPU XLEN. Use
def_size = 4 in case we're running 32 bits.
Fixes: 95799e36c1 ("target/riscv: Add initial support for the Sdtrig extension")
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250121170626.1992570-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'tests/functional/qemu_test')
0 files changed, 0 insertions, 0 deletions