mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
riscv: refactor assembly files to support RV64 and F extension
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"inherits": ["riscv64"],
|
||||
"features": ["+a", "+c", "+m", "+f", "+d"],
|
||||
"build-tags": ["k210", "kendryte"]
|
||||
"build-tags": ["k210", "kendryte"],
|
||||
"cflags": ["-D=F_EXTENSION"]
|
||||
}
|
||||
|
||||
+3
-1
@@ -17,7 +17,9 @@
|
||||
"--gc-sections"
|
||||
],
|
||||
"extra-files": [
|
||||
"src/device/riscv/start.S"
|
||||
"src/device/riscv/start.S",
|
||||
"src/runtime/scheduler_tinygoriscv.S",
|
||||
"src/device/riscv/handleinterrupt.S"
|
||||
],
|
||||
"gdb": "riscv64-unknown-elf-gdb"
|
||||
}
|
||||
|
||||
@@ -9,9 +9,5 @@
|
||||
],
|
||||
"ldflags": [
|
||||
"-melf32lriscv"
|
||||
],
|
||||
"extra-files": [
|
||||
"src/runtime/scheduler_tinygoriscv.S",
|
||||
"src/device/riscv/handleinterrupt32.S"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,13 +5,10 @@
|
||||
"cflags": [
|
||||
"--target=riscv64--none",
|
||||
"-march=rv64gc",
|
||||
"-mabi=lp64"
|
||||
"-mabi=lp64",
|
||||
"-D=RV64"
|
||||
],
|
||||
"ldflags": [
|
||||
"-melf64lriscv"
|
||||
],
|
||||
"extra-files": [
|
||||
"src/runtime/scheduler_tinygoriscv64.S",
|
||||
"src/device/riscv/handleinterrupt64.S"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user