diff options
| author | Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> | 2017-02-06 15:33:43 -0200 |
|---|---|---|
| committer | Lynn Boger <laboger@linux.vnet.ibm.com> | 2017-05-05 19:03:05 +0000 |
| commit | 09b71d563a53766ef2ab34beac6ddaea48c56783 (patch) | |
| tree | 46844eb54ccc6abfbc895c9468314890f7b97137 /src/cmd/internal/obj/ppc64 | |
| parent | 3a2fee0389e8459e482e987a98f226a71c2ad5fb (diff) | |
| download | go-09b71d563a53766ef2ab34beac6ddaea48c56783.tar.xz | |
cmd/internal/obj/ppc64, cmd/link/internal/ppc64: Change function alignment to 16
The Power processor manual states that "Branches not from the last instruction
of an aligned quadword and not to the first instruction of an aligned quadword
cause inefficiencies in the IBuffer". This changes the function alignment from 8
to 16 bytes to comply with that.
Fixes #18963
Change-Id: Ibce9bf8302110a86c6ab05948569af9ffdfcf4bb
Reviewed-on: https://go-review.googlesource.com/36390
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
Diffstat (limited to 'src/cmd/internal/obj/ppc64')
| -rw-r--r-- | src/cmd/internal/obj/ppc64/asm9.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/ppc64/asm9.go b/src/cmd/internal/obj/ppc64/asm9.go index 8bfc667cff..53cdb5f92b 100644 --- a/src/cmd/internal/obj/ppc64/asm9.go +++ b/src/cmd/internal/obj/ppc64/asm9.go @@ -53,7 +53,7 @@ type ctxt9 struct { // Instruction layout. const ( - funcAlign = 8 + funcAlign = 16 ) const ( |
