[PATCH] riscv: Make sifive_test finisher 4 bytes

Gedare Bloom gedare at rtems.org
Tue Sep 15 15:18:10 UTC 2020


On Tue, Sep 15, 2020 at 1:33 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> On 15/09/2020 09:09, Hesham Almatary wrote:
>
> > 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.
> Ok.

This is definitely a type mismatch. The uintptr_t* should only be used
to point to something that is a memory address.

> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list