From 3e77efc7204407c5c8882bec42fdcaa88ef40a9b Mon Sep 17 00:00:00 2001 From: Srinivas Pokala Date: Wed, 14 Dec 2022 06:31:50 +0100 Subject: cmd/internal/obj/s390x, runtime: fix breakpoint in s390x Currently runtime.Breakpoint generates SIGSEGV in s390x. The solution to this is add new asm instruction BRRK of type FORMAT_E for the breakpoint exception. Fixes #52103 Change-Id: I8358a56e428849a5d28d5ade141e1d7310bee084 Reviewed-on: https://go-review.googlesource.com/c/go/+/457456 Reviewed-by: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Run-TryBot: Keith Randall Reviewed-by: Keith Randall --- src/runtime/asm_s390x.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime') diff --git a/src/runtime/asm_s390x.s b/src/runtime/asm_s390x.s index 334e1aa909..96b20f43a8 100644 --- a/src/runtime/asm_s390x.s +++ b/src/runtime/asm_s390x.s @@ -163,7 +163,7 @@ DATA runtime·mainPC+0(SB)/8,$runtime·main(SB) GLOBL runtime·mainPC(SB),RODATA,$8 TEXT runtime·breakpoint(SB),NOSPLIT|NOFRAME,$0-0 - MOVD $0, 2(R0) + BRRK RET TEXT runtime·asminit(SB),NOSPLIT|NOFRAME,$0-0 -- cgit v1.3