forked from Firmware/Firmwares
fixes TGC5L settings
This commit is contained in:
parent
3217871752
commit
ca1adccb2b
|
@ -9,10 +9,10 @@ add_custom_target(fw-hello-world ALL
|
|||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_custom_target(fw-dhrystone ALL
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/dhrystone BOARD=${TARGET} ISA=${ISA}
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/dhrystone BOARD=${BOARD} ISA=${ISA}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_custom_target(fw-coremark ALL
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark/cm PORT_DIR=../tgc BOARD=${TARGET} ISA=${ISA}
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark/cm PORT_DIR=../tgc BOARD=${BOARD} ISA=${ISA}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
|
@ -4,8 +4,8 @@ ENTRY( _start )
|
|||
|
||||
MEMORY
|
||||
{
|
||||
flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 64k
|
||||
ram (wxa!ri) : ORIGIN = 0x80010000, LENGTH = 64k
|
||||
flash (rxai!w) : ORIGIN = 0x00000000, LENGTH = 256M
|
||||
ram (wxa!ri) : ORIGIN = 0x20000000, LENGTH = 1M
|
||||
}
|
||||
|
||||
PHDRS
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
.type _start,@function
|
||||
|
||||
_start:
|
||||
la gp, trap_entry
|
||||
csrw mtvec, gp
|
||||
.option push
|
||||
.option norelax
|
||||
la gp, __global_pointer$
|
||||
|
@ -18,8 +20,8 @@ _start:
|
|||
bgeu a1, a2, 2f
|
||||
1:
|
||||
lw t0, (a0)
|
||||
sw t0, (a1)
|
||||
addi a0, a0, 4
|
||||
sw t0, (a1)
|
||||
addi a1, a1, 4
|
||||
bltu a1, a2, 1b
|
||||
2:
|
||||
|
@ -35,11 +37,11 @@ _start:
|
|||
2:
|
||||
|
||||
/* Call global constructors */
|
||||
#ifdef HAVE_INIT_FINI
|
||||
//#ifdef HAVE_INIT_FINI
|
||||
la a0, __libc_fini_array
|
||||
call atexit
|
||||
call __libc_init_array
|
||||
#endif
|
||||
//#endif
|
||||
#ifndef __riscv_float_abi_soft
|
||||
/* Enable FPU */
|
||||
li t0, MSTATUS_FS
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue