OpenXiangShan / xs-env

XiangShan Frontend Develop Environment
https://xiangshan-doc.readthedocs.io/zh_CN/latest/tools/xsenv/
Other
45 stars 48 forks source link

Bump NEMU: fix error when riscv64-xs_defconfig #32

Closed good-circle closed 2 years ago

good-circle commented 2 years ago

With branch 26c7e503ef06f5f5bb7aa7197923fcf260974056, NEMU will report error as follows

git clone https://github.com/OpenXiangShan/NEMU.git
export NEMU_HOME=$(pwd)
git checkout 26c7e503ef06f5f5bb7aa7197923fcf260974056
make riscv64-xs_defconfig
make -j
SPECIALIZE_TYPE=RISCV  make -s -C /home/jn/Desktop/NEMU/resource/softfloat/repo/build/Linux-x86_64-GCC all
mkdir -p resource/softfloat/build
ln -sf /home/jn/Desktop/NEMU/resource/softfloat/repo/build/Linux-x86_64-GCC/softfloat.a resource/softfloat/build/softfloat.a
src/checkpoint/serializer.cpp: In member function ‘void Serializer::serializePMem(uint64_t)’:
src/checkpoint/serializer.cpp:53:28: error: ‘MEMORY_SIZE’ was not declared in this scope; did you mean ‘PMEM_SIZE’?
   53 |   const size_t PMEM_SIZE = MEMORY_SIZE;
      |                            ^~~~~~~~~~~
      |                            PMEM_SIZE
make: *** [/home/jn/Desktop/NEMU/scripts/build.mk:53: /home/jn/Desktop/NEMU/build/obj-riscv64-nemu-interpreter/src/checkpoint/serializer.opp] Error 1