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

where to set supported_xlen to 64 #79

Open
hyperion009 opened this issue Feb 14, 2023 · 3 comments
Open

where to set supported_xlen to 64 #79

hyperion009 opened this issue Feb 14, 2023 · 3 comments

Comments

@hyperion009
Copy link

XLEN's default setting is 64. Where to set supported_xlen to 64? I got thi following issue:
ERROR | riscv32-unknown-elf-objdump: executable not found. Please check environment setup

I am intended to run test with 64 and only settup the riscv64-unknown-elf-xxx

@pawks
Copy link
Collaborator

pawks commented Feb 14, 2023

You will have to specify the correct isa of your implementation in your isa configuration yaml. Incase you have only implemented the riscv64-* toolchain but you are testing for a RV32 implementation, you can just rename the tool binary appropriately or change the plugin to use the correct toolchain.

@hyperion009
Copy link
Author

thank pawks for your response.
yes, my implementation is only 64. Could you help me point to where to use the correct toolchain by plugin?
thanks in advance.

@xeasonx
Copy link

xeasonx commented Nov 8, 2023

Make sure RV64 toolchain and riscv_sim_RV64 are in PATH. Edit spike_isa.yaml under spike dir, change supported_xlen to [64], change field rv32 to rv64, then run the test. Hope help.

hart_ids: [0]
hart0:
  ISA: RV64IMCZicsr_Zifencei
  physical_addr_sz: 32
  User_Spec_Version: '2.3'
  supported_xlen: [64]
  misa:
   reset-val: 0x40001104
   rv64:
     accessible: true
     mxl:
       implemented: true
       type:
           warl:
              dependency_fields: []
              legal:
                - mxl[1:0] in [0x1]
              wr_illegal:
                - Unchanged
     extensions:
       implemented: true
       type:
           warl:
              dependency_fields: []
              legal:
                - extensions[25:0] bitmask [0x0001104, 0x0000000]
              wr_illegal:
                - Unchanged

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

3 participants