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

trap_illegal_instruction and trap_instruction_access_fault when running program #2

Closed
arnstein opened this issue Feb 16, 2017 · 1 comment

Comments

@arnstein
Copy link

After running make and compiling some programs for RISCV and trying to run them, I get errors. When running these programs on the linux kernel through spike, I get the trap_illegal_instruction and trap_instruction_access_fault, and the programs stop working. I am running spike with -p2 processors.

The instructions that result in trap_illegal_instruction are:
csrr
fsd
fld

When the second core, core 1, starts running, it runs for a bit, then does the mret instruction, and immediately after this it gets stuck on the trap_instruction_access_fault exception. The full error is:
core 1: exception trap_instruction_access_fault, epc 0x0000000000000000
core 1: badaddr 0x0000000000000000

It continues like this until I CTRL+C.
Any ideas how to fix this? I would like to get some memory traces from a shared memory program, to be able to test a cache coherence protocol I am designing for a computer with a RISCV core.

@palmer-dabbelt
Copy link
Contributor

palmer-dabbelt commented Nov 9, 2017

This should be fixed on master now (we were missing an FPU in the FPGA 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