Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parsing fixes for riscv64: lui, loads (#285)
lui decompilation is wrong: * original produces "a0 = 0x429a000; return;" for "lui a0, 0x17050; ret", but shall produce "a0 = 0x17050000; return;" * Note that lui followed by addi is correct and is unaffected. l{d,w,h,b}[u] decompilation is wrong: * original produces "ra = *((sp + 0x40));" for "ld ra, 40(sp)" (note that '40' decimal is simply left unaffected and gets substituted to '0x40' in result, giving impression that this is now correct hex value), but shall produce "ra = *((sp + 0x28));". This affects all load insns of all types. * Note that store insns are unaffected by this bug.
- Loading branch information