mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-31 03:26:47 +01:00
Build: Fix link issue for rv64 disasm.
This commit is contained in:
1 parent
b03398a46c
commit
c24dca12bb
2 files changed
+4
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user