riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
593 stars 308 forks source link

Don't perform 64-bit accesses to the PLIC #205

Closed arichardson closed 4 years ago

arichardson commented 4 years ago

Recent QEMU will fault for 8-byte accesses. Use a uint32_t instead of uintptr_t to avoid those problems.

jrtc27 commented 4 years ago

Ping. This is critical for BBL to work on the latest QEMU 5.1.0-rcX releases, and will be needed for the upcoming 5.1.0 proper release.

arunthomas commented 4 years ago

+1, we've also run into this issue on QEMU 5.1-rcX. I can confirm the PR resolves the issue.