FPGA開発日記

カテゴリ別記事インデックス https://msyksphinz.github.io/github_pages , English Version https://fpgadevdiary.hatenadiary.com/

自作CPUのSpikeモデルシミュレータアップデート

自作CPUのSpikeシミュレータをかなり久しぶりにアップデートすると、いろんな関数が変わっていてかなり戸惑ってしまった。

一応すべてのコンパイルエラーを直して動かしてみたが、どうも途中でエラーが発生する。

argv[7] = --log-commits
argv[8] = --dtb=../../../dts/rv64imafdc.dtb
argv[9] = --kernel=../../../tests/linux/Image
argv[10] = --initrd=../../../tests/linux/spike_rootfs.cpio
argv[11] = ../../../tests/litex_soc/software/bios/bios.elf
warning: tohost and fromhost symbols not in ELF; can't communicate with target

Program received signal SIGSEGV, Segmentation fault.
mstatus_csr_t::read (this=0x0) at ./riscv/csrs.h:258
258         return val;
(gdb) bt
#0  mstatus_csr_t::read (this=0x0) at ./riscv/csrs.h:258
#1  0x0000555559e97353 in step_spike ()
#2  0x0000555556ac881e in Vscariv_tb___024root___sequent__TOP__22(Vscariv_tb___024root*) ()
#3  0x00005555558d25a7 in Vscariv_tb___024root___eval(Vscariv_tb___024root*) ()
#4  0x00005555558cee4c in Vscariv_tb::eval_step() ()
#5  0x00005555558aec43 in main ()