Skip to content

Commit

Permalink
Restrict PcodeFixupPreprocessor to x86 only
Browse files Browse the repository at this point in the history
  • Loading branch information
Crabtux committed Mar 15, 2024
1 parent 0177794 commit 52a66b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core_ghidra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ static void Decompile(RzCore *core, ut64 addr, DecompileMode mode, std::stringst
if(!func)
throw LowlevelError("No function in Scope");

// Must be called after arch.init(), but before decompiling the function
PcodeFixupPreprocessor::fixupSharedReturnJumpToRelocs(function, func, core, arch);
// Other archs are not tested
if (strcmp(core->analysis->arch_target->arch, "x86") == 0)
// Must be called after arch.init(), but before decompiling the function
PcodeFixupPreprocessor::fixupSharedReturnJumpToRelocs(function, func, core, arch);

arch.getCore()->sleepBegin();
auto action = arch.allacts.getCurrent();
Expand Down

0 comments on commit 52a66b3

Please sign in to comment.