riscv: Fix PC in disassembly.

This commit is contained in:
Unknown W. Brackets 2023-07-30 09:11:16 -07:00
parent e34736fbb2
commit 9f917488c3

View File

@ -340,7 +340,7 @@ std::vector<std::string> DisassembleRV64(const u8 *data, int size) {
}
invalid_flush();
riscv_disasm_inst(temp, sizeof(temp), rv64, i * 4, inst);
riscv_disasm_inst(temp, sizeof(temp), rv64, (uintptr_t)data + i, inst);
lines.push_back(ReplaceAll(temp, "\t", " "));
i += (int)len;