diff options
author | Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> | 2020-09-15 08:07:29 +0100 |
---|---|---|
committer | Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk> | 2020-09-17 09:01:51 +0100 |
commit | 4897a82dec8c74b56cf271762f6a1d7dbd337190 (patch) | |
tree | 6235bdbee6fb1c8ff0473ba0aeda75fe0f14d996 /bsps | |
parent | 4eea8d4bc44116b3465d7fdeb053d66bf95428f4 (diff) |
riscv: Make sifive_test finisher 4 bytes
QEMU is now stricter with MMIO sizes and accesses. uintptr_t on RV64
is 8 bytes and generates an sd instruction that Store/AMO faults
because sifive_test MMIO expects 4 bytes accesses.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/riscv/riscv/start/bsp_fatal_halt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/riscv/riscv/start/bsp_fatal_halt.c b/bsps/riscv/riscv/start/bsp_fatal_halt.c index af9e2ac7c6..348fa4f8f4 100644 --- a/bsps/riscv/riscv/start/bsp_fatal_halt.c +++ b/bsps/riscv/riscv/start/bsp_fatal_halt.c @@ -35,7 +35,7 @@ void _CPU_Fatal_halt(uint32_t source, uint32_t error) { const char *fdt; int node; - volatile uintptr_t *sifive_test; + volatile uint32_t *sifive_test; #if RISCV_ENABLE_HTIF_SUPPORT != 0 htif_poweroff(); |