8000 Outdated version of spike · Issue #352 · riscv/riscv-crypto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Outdated version of spike #352
Open
Open
@ray24777

Description

@ray24777

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0