We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a new.h file in the riscv-isa-sim/riscv/insns folder to combine 2 instructions,
addi a5,gp,-1436 add a5,a5,a3
So, the code I wrote to combine these instructions is,
int32_t v0 = sext_xlen(RS1 + insn.i_imm()); WRITE_RD(sext_xlen(v0 + RS1));
When I compiled and ran spike, it crashed.
I think there is something wrong with the logic of my code but I do not know how to fix it.
The text was updated successfully, but these errors were encountered:
Neither of my custom instructions failed so I am sure it is not an issue of spike. Consider doing this:
Sorry, something went wrong.
@nikita890-art Could you provide a branch pointing to your repo or patches ? It is hard to tell what goes wrong.
No branches or pull requests
I created a new.h file in the riscv-isa-sim/riscv/insns folder to combine 2 instructions,
addi a5,gp,-1436
add a5,a5,a3
So, the code I wrote to combine these instructions is,
int32_t v0 = sext_xlen(RS1 + insn.i_imm());
WRITE_RD(sext_xlen(v0 + RS1));
When I compiled and ran spike, it crashed.
I think there is something wrong with the logic of my code but I do not know how to fix it.
The text was updated successfully, but these errors were encountered: