[PATCH/next] ARC: disasm: fix gp name for arc700

Sergey Matyukevich geomatsi at gmail.com
Tue Apr 26 00:24:47 PDT 2022


Fixes: b08a66fb680018b6 ("ARC: disasm: handle ARCv2 case in kprobe
get/set functions").

Signed-off-by: Sergey Matyukevich <geomatsi at gmail.com>
Reported-by: kernel test robot <lkp at intel.com>

---
 arch/arc/kernel/disasm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arc/kernel/disasm.c b/arch/arc/kernel/disasm.c
index 42a9e48698b0..ccc7e8c39eb3 100644
--- a/arch/arc/kernel/disasm.c
+++ b/arch/arc/kernel/disasm.c
@@ -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;
-- 
2.35.1




More information about the linux-snps-arc mailing list