[PATCH 1/3] XXX: Workaround sstep.c

From: Link Mauve

Date: Wed Apr 08 2026 - 08:16:04 EST


These variables are used only on CONFIG_PPC64, which causes compilation
to fail on PPC32.
---
arch/powerpc/lib/sstep.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c
index ac3ee19531d8..dc129f0cb6a0 100644
--- a/arch/powerpc/lib/sstep.c
+++ b/arch/powerpc/lib/sstep.c
@@ -1354,15 +1354,15 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,
#ifdef CONFIG_PPC64
unsigned int suffixopcode, prefixtype, prefix_r;
#endif
- unsigned int opcode, ra, rb, rc, rd, spr, u;
+ unsigned int opcode, ra, rb/*, rc*/, rd, spr, u;
unsigned long int imm;
unsigned long int val, val2;
unsigned int mb, me, sh;
- unsigned int word, suffix;
+ unsigned int word/*, suffix*/;
long ival;

word = ppc_inst_val(instr);
- suffix = ppc_inst_suffix(instr);
+ //suffix = ppc_inst_suffix(instr);

op->type = COMPUTE;

@@ -1480,7 +1480,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,
rd = (word >> 21) & 0x1f;
ra = (word >> 16) & 0x1f;
rb = (word >> 11) & 0x1f;
- rc = (word >> 6) & 0x1f;
+ //rc = (word >> 6) & 0x1f;

switch (opcode) {
#ifdef __powerpc64__
--
2.54.0


--ngs4HrAymANbT/pl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
filename=0002-XXX-Enable-asm_experimental_arch-for-PowerPC-asm.patch