[K210] update compile parameters and startup_gcc.S

This commit is contained in:
tangweikang 2020-11-21 13:47:58 +08:00
parent c8deffcf56
commit 732382c676
2 changed files with 33 additions and 33 deletions

View File

@ -38,7 +38,7 @@ if PLATFORM == 'gcc':
OBJDUMP = PREFIX + 'objdump' OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy' OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcmodel=medany -march=rv64imafdc -mabi=lp64d' DEVICE = ' -mcmodel=medany -march=rv64imafc -mabi=lp64f -fsingle-precision-constant'
CFLAGS = DEVICE + ' -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields' CFLAGS = DEVICE + ' -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds' LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds'

View File

@ -67,38 +67,38 @@ _start:
csrs mstatus, t0 csrs mstatus, t0
fssr x0 fssr x0
fmv.d.x f0, x0 fmv.w.x f0, x0
fmv.d.x f1, x0 fmv.w.x f1, x0
fmv.d.x f2, x0 fmv.w.x f2, x0
fmv.d.x f3, x0 fmv.w.x f3, x0
fmv.d.x f4, x0 fmv.w.x f4, x0
fmv.d.x f5, x0 fmv.w.x f5, x0
fmv.d.x f6, x0 fmv.w.x f6, x0
fmv.d.x f7, x0 fmv.w.x f7, x0
fmv.d.x f8, x0 fmv.w.x f8, x0
fmv.d.x f9, x0 fmv.w.x f9, x0
fmv.d.x f10,x0 fmv.w.x f10,x0
fmv.d.x f11,x0 fmv.w.x f11,x0
fmv.d.x f12,x0 fmv.w.x f12,x0
fmv.d.x f13,x0 fmv.w.x f13,x0
fmv.d.x f14,x0 fmv.w.x f14,x0
fmv.d.x f15,x0 fmv.w.x f15,x0
fmv.d.x f16,x0 fmv.w.x f16,x0
fmv.d.x f17,x0 fmv.w.x f17,x0
fmv.d.x f18,x0 fmv.w.x f18,x0
fmv.d.x f19,x0 fmv.w.x f19,x0
fmv.d.x f20,x0 fmv.w.x f20,x0
fmv.d.x f21,x0 fmv.w.x f21,x0
fmv.d.x f22,x0 fmv.w.x f22,x0
fmv.d.x f23,x0 fmv.w.x f23,x0
fmv.d.x f24,x0 fmv.w.x f24,x0
fmv.d.x f25,x0 fmv.w.x f25,x0
fmv.d.x f26,x0 fmv.w.x f26,x0
fmv.d.x f27,x0 fmv.w.x f27,x0
fmv.d.x f28,x0 fmv.w.x f28,x0
fmv.d.x f29,x0 fmv.w.x f29,x0
fmv.d.x f30,x0 fmv.w.x f30,x0
fmv.d.x f31,x0 fmv.w.x f31,x0
.option push .option push
.option norelax .option norelax