d-iii-s / msim

Light-weight MIPS R4000 and RISC-V system simulator
https://d3s.mff.cuni.cz/software/msim/
GNU General Public License v2.0
5 stars 4 forks source link

Cannot compile in Alpine #26

Closed vhotspur closed 1 year ago

vhotspur commented 1 year ago

Header file /usr/include/bits/limits.h in Alpine (tested in Docker on alpine:latest (b2aa39c304c2)) defines PAGESIZE.

This shadows the variable in device/cpu/riscv_rv32ima/cpu.c.

Fix is to rename this variable to lower case or something similar.