Build: Fix link issue for rv64 disasm.

This commit is contained in:
Unknown W. Brackets committed 2023-07-30 16:06:55 -07:00
1 parent b03398a46c
commit c24dca12bb
2 files changed
+4

No files matched your search

+2
View File
@@ -232,10 +232,12 @@ void RiscVJit::GenerateFixedCode(const JitOptions &jo) {
// Leave this at the end, add more stuff above.
if (enableDisasm) {
#if PPSSPP_ARCH(RISCV64)
std::vector<std::string> lines = DisassembleRV64(start, GetCodePtr() - start);
for (auto s : lines) {
INFO_LOG(JIT, "%s", s.c_str());
}
#endif
}
// Let's spare the pre-generated code from unprotect-reprotect.
+2
View File
@@ -652,9 +652,11 @@ void RiscVBlockCacheDebugInterface::GetBlockCodeRange(int blockNum, int *startOf
JitBlockDebugInfo RiscVBlockCacheDebugInterface::GetBlockDebugInfo(int blockNum) const {
JitBlockDebugInfo debugInfo = irBlocks_.GetBlockDebugInfo(blockNum);
#if PPSSPP_ARCH(RISCV64)
int blockOffset, codeSize;
GetBlockCodeRange(blockNum, &blockOffset, &codeSize);
debugInfo.targetDisasm = DisassembleRV64(jit_.GetBasePtr() + blockOffset, codeSize);
#endif
return debugInfo;
}