From dfbe10eb08f78e91785a9a3c81805e4c4d6981ec Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 21 Dec 2022 03:08:21 +0000 Subject: [PATCH] riscv: Fix unittest compilation on RISC-V. --- unittest/JitHarness.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unittest/JitHarness.cpp b/unittest/JitHarness.cpp index c73af9733b..5fec75da7c 100644 --- a/unittest/JitHarness.cpp +++ b/unittest/JitHarness.cpp @@ -184,8 +184,10 @@ bool TestJit() { std::vector lines = DisassembleArm2(block->normalEntry, block->codeSize); #elif PPSSPP_ARCH(ARM64) std::vector lines = DisassembleArm64(block->normalEntry, block->codeSize); -#else +#elif PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64) std::vector lines = DisassembleX86(block->normalEntry, block->codeSize); +#else + std::vector lines; #endif // Cut off at 25 due to the repetition above. Might need tweaking for large instructions. const int cutoff = 25;