Skip to contentSkip to conversation

ARC: disasm: fix gp name for arc700

PATCH/next Sergey Matyukevich 1 participant 1 message Apr 26, 2022 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw
Fixes b08a66fb680018b6 ("ARC: disasm: handle ARCv2 case in kprobe

get/set functions").

---
 arch/arc/kernel/disasm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arc/kernel/disasm.c +1 -1
index 42a9e48698b0..ccc7e8c39eb3 100644
@@ -491,7 +491,7 @@ void __kprobes set_reg(int reg, long val, struct pt_regs *regs,
 		}
 		break;
 	case 26:
-		regs->gp = val;
+		regs->r26 = val;
 		break;
 	case 27:
 		regs->fp = val;
Signature · 7 lines
2.35.1


_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc