-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ORI instruction ELF RUN exiting as unhandled exception when tried to write at x0 #1200
Comments
Please provide full details on how to reproduce this including details of the toolchain that you are using, where you obtained it from, how you are compiling your code, the code that you are compiling, the default Be aware that the only extensions supported by the GDB sim/run simulator seem to be
You might be better off using one of the other simulators available as mentioned in the linked issues. |
Hi, I am using the Base Instruction set rv32I. I use the following command to generate my trace. For 32I, I dont think we need to give arch/abi since they are the default.
//OBJDUMP |
You haven't said where you got the toolchain from, how it was built etc. |
https://github.com/riscv-collab/riscv-gnu-toolchain Git Versions of submodules. [submodule "binutils"] |
You still haven't provided the relevant info. |
Where did you get or how exactly did you build the toolchain? |
Hi, exit: PASS output of elf-run FAIL output 2 program stopped with signal 4 (Illegal instruction). Git Clone Command : |
I don't understand this - you seem to be getting both a pass and a fail result with the same code?
And the same here? I seem to get the same error/fail result no matter what Looks like a bug alright - it seems to be decoding such instructions as the wrong class - this: instead of this: You probably need to log this upstream or sumbit a fix there if you have one: But, bear in mind, as far as I know, there is nobody actively working on maintaining the RISC-V port of the GDB simulator. |
ohh Thanks.. I will start to migration to other simulators then ,.. Thanks for the help :) |
Logged upstream now so I am closing this issue. |
Somebody else pointed out that it should probably be logged against binutils/libopcodes and not gdb/sim so I logged it here instead: |
I have updated patch on bugzilla https://sourceware.org/bugzilla/show_bug.cgi?id=30495 |
ori x0, x17, 1 # icount 40
//ELF RUN
insn: 0x0000a0 --- _start -UNHANDLED EXTENSION: 35
I want to the limitations of ELF RUN simulator. Thanks
The text was updated successfully, but these errors were encountered: