mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
esp32: enable the FPU
This allows working with float32 values, for example it allows testdata/float.go to work correctly (assuming an Xtensa backend bug is fixed, see https://github.com/espressif/llvm-project/issues/41).
This commit is contained in:
committed by
Ron Evans
parent
4568de556e
commit
ae92ea149c
@@ -42,6 +42,11 @@ call_start_cpu0:
|
|||||||
wsr.ps a2
|
wsr.ps a2
|
||||||
rsync
|
rsync
|
||||||
|
|
||||||
|
// Enable the FPU (coprocessor 0 so the lowest bit).
|
||||||
|
movi a2, 1
|
||||||
|
wsr.cpenable a2
|
||||||
|
rsync
|
||||||
|
|
||||||
// Jump to the runtime start function written in Go.
|
// Jump to the runtime start function written in Go.
|
||||||
call4 main
|
call4 main
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user