-
Notifications
You must be signed in to change notification settings - Fork 308
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
spike pk hello
does not terminate (32bit)
#92
Comments
I'm seeing something similar with a 32-bit build - reverting this commit seems to fix the issue: 5a0e3e5 As far as I can tell from looking at the log generated by Spike, something appears to go wrong from that @generalbrus does commenting out the |
I hadn't realised when I wrote my earlier comment that the things going wrong were probably due to lack of support for HTIF (and therefore |
@gmarkall I tried applying the edits in both commits but now I get |
I guess there's some other issue as well - does it get as far as printing "Hello" (assuming your hello program is intended to print "Hello")? |
It loops indefinitely... The hello program is the one mentioned in the @gmarkall can you tell me what commands you used to install the 32-bit pk build with your edits, please? Tbh it's quite a mess to understand what the actual params for |
@generalbrus I just used |
I also have this issue with the latest and removing the printm does in fact solve this issue. |
On macOS, I have built and installed the 32bit version of pk and of the riscv-gnu-toolchain.
I manage to compile programs using
riscv32-unknown-elf-gcc
, but when runningspike -l path/to/pk32 hello
, the script never stops, and if I halt it manually I getexception trap_instruction_access_fault
.I've looked for the problem online, and my impression is that the 32bit version of the toolchain is not really that stable. I haven't found a solution for my issue.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: