Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated version of spike #352

Open
ray24777 opened this issue Aug 3, 2023 · 2 comments
Open

Outdated version of spike #352

ray24777 opened this issue Aug 3, 2023 · 2 comments

Comments

@ray24777
Copy link

ray24777 commented Aug 3, 2023

What happened

By using the scripts given by tools/README.md to install toolchain for RV64, spike software installed is outdated and does not support various extensions.

Detailed lnfo

When cross compiling this repo, error has shown that spike installed does not support zkn, zks or zkr extensions.

% make -f rv64.mk
/path/to/build/riscv64-unknown-elf/bin/spike --isa=rv64imac_zkn_zks_zkr /path/to/build/riscv64-unknown-elf/riscv64-unknown-elf/bin/pk ./xtest
error: bad --isa option 'rv64imac_zkn_zks_zkr'. unsupported extension 'zkn'
make: *** [rv64.mk:25: spike64] Error 255

riscv-env% /path/to/build/riscv64-unknown-elf/bin/spike --isa=rv64imac_zks_zkr /path/to/build/riscv64-unknown-elf/riscv64-unknown-elf/bin/pk ./xtest
error: bad --isa option 'rv64imac_zks_zkr'. unsupported extension 'zks'
riscv-env% /path/to/build/riscv64-unknown-elf/bin/spike --isa=rv64imac_zkr /path/to/build/riscv64-unknown-elf/riscv64-unknown-elf/bin/pk ./xtest
error: bad --isa option 'rv64imac_zkr'. unsupported extension 'zkr'
riscv-env% /path/to/build/riscv64-unknown-elf/bin/spike --isa=rv64imac /path/to/build/riscv64-unknown-elf/riscv64-unknown-elf/bin/pk ./xtest
bbl loader
[INFO] === AES64 ===
z  0000000000000000 ra 0000000000014d58 sp 0000003ffffff960 gp 0000000000026b30
tp 0000000000000000 t0 0000000000020100 t1 0000000c0b0a0908 t2 0000000000000019
s0 0000000000000000 s1 0000000000023000 a0 0000003ffffff9b0 a1 000e0d0c0b0a0908
a2 0006050403020100 a3 0700000000000000 a4 0706050403020100 a5 0f0e0d0c0b0a0908
a6 0000050403020100 a7 0000050000000000 s2 0000000000000000 s3 0000000000000000
s4 0000000000000000 s5 0000000000000000 s6 0000000000000000 s7 0000000000000000
s8 0000000000000000 s9 0000000000000000 sA 0000000000000000 sB 0000000000000000
t3 0000000403020100 t4 000000000b0a0908 t5 0000000003020100 t6 00000000000a0908
pc 0000000000010788 va/inst 0000000031079693 sr 8000000200006020
An illegal instruction was executed!

This problem was solved by using using the latest (v1.1.1-dev) spike from here.

What should be done

Update the corresponding commit of spike to latest.

@wcqy-ye
Copy link

wcqy-ye commented Aug 8, 2023

请问您是怎么解决这个问题的呢?我遇到了和您一样的问题,在试图跨平台编译这个项目
image
的时候出现了下图的报错,我也已经安装了对应的编译工具链
image
这个问题困扰我很久了,希望能得到您的解答

@wcqy-ye
Copy link

wcqy-ye commented Aug 8, 2023

以及我安装的spike应该是最新版本的了,但还是出现这个问题
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants