Commit 2ceca80e authored by Dave Cheney's avatar Dave Cheney

[dev.cc] runtime: fix _sfloat thunk

* _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
parent 14d23bfd
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment