From 18b1d5b6a1b502230459e2e101f8b7e841a19503 Mon Sep 17 00:00:00 2001 From: ghidorahrex Date: Mon, 11 Mar 2024 15:50:45 +0000 Subject: [PATCH] GP-4419: Fixed pcode for ppc lwax instruction --- Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc index 4b1e5e1a05..bc731d6b29 100644 --- a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc +++ b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc @@ -2285,7 +2285,8 @@ define pcodeop lswxOp; #lwax r0,r2,r0 0x7c 02 02 aa :lwax D,RA_OR_ZERO,B is OP=31 & D & RA_OR_ZERO & B & XOP_1_10=341 & BIT_0=0 { - D = sext(*:4(RA_OR_ZERO)); + ea:$(REGISTER_SIZE) = RA_OR_ZERO+B; + D = sext(*:4(ea)); } @endif