aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorSrinivas Pokala <Pokala.Srinivas@ibm.com>2022-12-14 06:31:50 +0100
committerKeith Randall <khr@golang.org>2023-01-20 05:00:12 +0000
commit3e77efc7204407c5c8882bec42fdcaa88ef40a9b (patch)
tree81273a001366a3c604d93788cb46df2a64693154 /src/runtime
parent5c67ebbb31a296ca1593d0229b1d51d5ac73aa6d (diff)
downloadgo-3e77efc7204407c5c8882bec42fdcaa88ef40a9b.tar.xz
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 <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/asm_s390x.s2
1 files changed, 1 insertions, 1 deletions
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