Scott Johnson
Scott Johnson
@ProxyPlayerHD, modern versions of Spike will report the address that caused the problem: ``` Access exception occurred while loading payload riscv_arithmetic_basic_test_1.elf: Memory address 0x80 is invalid ```
`spike_dasm/spike_dasm_option_parser.cc` is supposed to be a symlink pointing to `../fesvr/option_parser.cc`. Something's gone awry with your `git clone`.
I don't know about `vcsr` but the PMP regs might have something to do with using RV64, which does not have the odd-numbered `pmpcfg` CSRs.
> Okay, could you tell me please where I can modify list of displayed registers (which is listed by gdb command -data-list-register-values)? Sorry, I don't know anything about Spike's GDB...
We don't know how your ELF file was compiled, so we have no way to know where all the target program is expecting memories. Based on the error messages above,...
I believe Spike has a debug ROM at 0. You might have to disable the external debug feature, which would require source code changes to Spike.
I'm afraid I don't know much about the debug hardware that's modeled in Spike, but it might be as simple as removing the debug device [here](https://github.com/riscv-software-src/riscv-isa-sim/blob/371353288e0c6a94713309c5400548f178648b7a/riscv/sim.cc#L72)
Or changing DEBUG_START to point to somewhere else.
> A quick test shows that this breaks debugging. Not surprising. I'm assuming since OP has program code residing at address 0, he doesn't care about debugging.
Your example looks incomplete to me because it doesn't include any instruction disassembly lines? This is what I see: ``` core 0: 0x00000000800022e2 (0xfa62d2e3) bge t0, t1, pc - 92...