-
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
Error: unrecognized opcode `fence.i' #260
Comments
Try configuring with |
THX The full error : |
Maybe I need use other ISA. |
It seems you are having some problems with your compiler. I’d help if I could, but since I can’t replicate your environment, it’s not practIcal for me to help. While I understand your frustration, suggesting you’ll use another ISA isn’t going to get you better support. I encourage you to use whatever ISA best suits your needs. |
After I re-downloaded the whole project of rocket-tools and recompiled, the problem went away. So I'm also not sure where the problem is. |
I just cloned
|
This again leads to another error regarding the |
Recompiling the riscv-gnu-toolchain with the flag "--with-arch=rv64gc_zfencei" may help. This issue appears to be caused by your assembler lacking support for the 'fence.i' instruction. |
I've had similar problems in other situations as well, and in addition to using the flag "--with-arch=rv64gc_zfencei" when compiling, I ended up also including the parameter "PLATFORM_RISCV_ISA=rv64imafdc_zifencei" in make operation, and that fixed the problem |
Hello.
When I build the rocket-tools prj by ./build, it return error with unrecognized opcode
fence.i' on rocket.pk. The error information below: Removing existing riscv-pk/build directory Configuring project riscv-pk Building project riscv-pk ../dummy_payload/dummy_entry.S: Assembler messages: ../dummy_payload/dummy_entry.S:23: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:24: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:25: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:26: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:27: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:28: Warning: unterminated string; newline inserted ../dummy_payload/dummy_entry.S:29: Warning: unterminated string; newline inserted ../machine/mentry.S: Assembler messages: ../machine/mentry.S:93: Error: unrecognized opcode
fence.i'gmake: *** [mentry.o] Error 1
gmake: *** Waiting for unfinished jobs....
../machine/flush_icache.c: Assembler messages:
../machine/flush_icache.c:4: Error: unrecognized opcode `fence.i'
gmake: *** [flush_icache.o] Error 1
The text was updated successfully, but these errors were encountered: