mirror of
https://github.com/golang/go
synced 2024-11-17 08:44:43 -07:00
cmd/compile: enable reg args on riscv64
This CL updates config.go to enable register args. Change-Id: I00697fc3db23293be0f5bd2fe33fb0055eeab43e Reviewed-on: https://go-review.googlesource.com/c/go/+/360217 Trust: mzh <mzh@golangcn.org> Run-TryBot: mzh <mzh@golangcn.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
870256ec89
commit
d3362fc124
@ -297,8 +297,8 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize, softfloat boo
|
|||||||
c.registers = registersRISCV64[:]
|
c.registers = registersRISCV64[:]
|
||||||
c.gpRegMask = gpRegMaskRISCV64
|
c.gpRegMask = gpRegMaskRISCV64
|
||||||
c.fpRegMask = fpRegMaskRISCV64
|
c.fpRegMask = fpRegMaskRISCV64
|
||||||
// c.intParamRegs = paramIntRegRISCV64
|
c.intParamRegs = paramIntRegRISCV64
|
||||||
// c.floatParamRegs = paramFloatRegRISCV64
|
c.floatParamRegs = paramFloatRegRISCV64
|
||||||
c.FPReg = framepointerRegRISCV64
|
c.FPReg = framepointerRegRISCV64
|
||||||
c.hasGReg = true
|
c.hasGReg = true
|
||||||
case "wasm":
|
case "wasm":
|
||||||
|
Loading…
Reference in New Issue
Block a user