]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime: fix _sfloat thunk
authorDave Cheney <dave@cheney.net>
Sat, 15 Nov 2014 02:27:05 +0000 (13:27 +1100)
committerDave Cheney <dave@cheney.net>
Sat, 15 Nov 2014 02:27:05 +0000 (13:27 +1100)
* _sfloat dispatches to runtime._sfloat2 with the Go calling convention, so the seecond argument is a [15]uint32, not a *[15]uint32.
* adjust _sfloat2 to return the new pc in 68(R13) as expected.

LGTM=rsc
R=minux, austin, rsc
CC=golang-codereviews
https://golang.org/cl/174160043

src/runtime/softfloat_arm.go

index 746b9ea2160ada79bf200717f7b6f83cfe26de1c..efee31c4c7ca6ca8124ec28e465ee22221f582ff 100644 (file)
@@ -605,10 +605,11 @@ done:
 }
 
 //go:nosplit
-func _sfloat2(pc uint32, regs *[15]uint32) {
+func _sfloat2(pc uint32, regs [15]uint32) (newpc uint32) {
        systemstack(func() {
-               pc = sfloat2(pc, regs)
+               newpc = sfloat2(pc, &regs)
        })
+       return
 }
 
 func _sfloatpanic()