Skip to content

Ghidra is a software reverse engineering (SRE) framework

PowerPC: divw. does not update XER[OV] and XER[SO]

Andrei Bacescue451e5f80a0f
diff --git a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc
index 736c7cce31..e0e801b7e3 100644
--- a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc
+++ b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc
@@ -985,11 +985,9 @@
:divw. D,A,B is OP=31 & D & A & B & OE=0 & XOP_1_9=491 & Rc=1
{
@ifdef BIT_64
- divOverflow(A:4,B:4);
D = sext(A:4 s/ B:4);
cr0flags(D:4);
@else
- divOverflow(A,B);
D = A s/ B;
cr0flags(D);
@endif