Add args.bin to ELF

Change KERNEL_ARG_DEV_MEM_ADDR for sgemm_{wg,gemmini,tcore}
This commit is contained in:
Hansung Kim
2024-06-06 15:19:05 -07:00
parent 2c50b0cdce
commit d5adacda30
5 changed files with 13 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ ENTRY(_start)
MEMORY {
DRAM0 (rwx): ORIGIN = 0x80000000, LENGTH = 512M
DRAMARG (rwx): ORIGIN = 0x9fff0000, LENGTH = 8K
DRAM1 (rwx): ORIGIN = 0xa0000000, LENGTH = 32K
DRAM2 (rwx): ORIGIN = 0xa1000000, LENGTH = 32K
}
@@ -259,6 +260,10 @@ SECTIONS
.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
.args : {
*(.args)
. += 8K;
}> DRAMARG
.operand.a : {
*(.operand.a)
. += 32K;