Skip to content

Commit

Permalink
[release-branch.go1.11] reflect: fix s390x reflect method calls
Browse files Browse the repository at this point in the history
R0 isn't the zero register any more. Oops.

Update #27867

Change-Id: I46a975ed37d5e570afe2e228d3edf74949e08ad7
Reviewed-on: https://go-review.googlesource.com/138580
Reviewed-by: Michael Munday <[email protected]>
Reviewed-on: https://go-review.googlesource.com/138583
Run-TryBot: Keith Randall <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Run-TryBot: Michael Munday <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
randall77 authored and ianlancetaylor committed Oct 1, 2018
1 parent 3afa9df commit 58c9bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reflect/asm_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$32
MOVD R12, 8(R15)
MOVD $argframe+0(FP), R3
MOVD R3, 16(R15)
MOVB R0, 32(R15)
MOVB $0, 32(R15)
ADD $32, R15, R3
MOVD R3, 24(R15)
BL ·callReflect(SB)
Expand All @@ -29,7 +29,7 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$32
MOVD R12, 8(R15)
MOVD $argframe+0(FP), R3
MOVD R3, 16(R15)
MOVB R0, 32(R15)
MOVB $0, 32(R15)
ADD $32, R15, R3
MOVD R3, 24(R15)
BL ·callMethod(SB)
Expand Down

0 comments on commit 58c9bd9

Please sign in to comment.