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

Bug in RISCV_C_Version? #4

Open
michaelengel opened this issue Apr 3, 2020 · 2 comments
Open

Bug in RISCV_C_Version? #4

michaelengel opened this issue Apr 3, 2020 · 2 comments

Comments

@michaelengel
Copy link

The comparison operator for "BLTU" in riscv.c (l. 91) should be "<" instead of ">=" (this line is identical to the "BGE" line below it except for the instruction name):

if (opcode==0b1100011 && funct3==0b110) { if (rv5_reg[rs1]**>=**rv5_reg[rs2]) rv5_pc = ( (B_immediate_SE) + rv5_pc) - 0x4; printf(" BLTU "); } else // BLTU

@MicroCoreLabs
Copy link
Owner

MicroCoreLabs commented Apr 3, 2020 via email

@michaelengel
Copy link
Author

michaelengel commented Apr 3, 2020 via email

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