]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/s390x, runtime: fix breakpoint in s390x
authorSrinivas Pokala <Pokala.Srinivas@ibm.com>
Wed, 14 Dec 2022 05:31:50 +0000 (06:31 +0100)
committerKeith Randall <khr@golang.org>
Fri, 20 Jan 2023 05:00:12 +0000 (05:00 +0000)
commit3e77efc7204407c5c8882bec42fdcaa88ef40a9b
tree81273a001366a3c604d93788cb46df2a64693154
parent5c67ebbb31a296ca1593d0229b1d51d5ac73aa6d
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>
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/internal/obj/s390x/a.out.go
src/cmd/internal/obj/s390x/anames.go
src/cmd/internal/obj/s390x/asmz.go
src/runtime/asm_s390x.s