Skip to content

Commit cecb3c1

Browse files
committed
Change TKey RAM and APP mem size for QEMU build
Increase the size of the emulated RAM for TKey in QEMU. This is to be able to build large TKey apps without optimization and do debugging with gdb through QEMU.
1 parent 4b9af40 commit cecb3c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/tkey/tk1_mem.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,20 @@
5858
#define TK1_ROM_SIZE 0x2000
5959

6060
#define TK1_RAM_BASE 0x40000000
61+
#ifdef BUILD_FOR_QEMU
62+
#define TK1_RAM_SIZE 0x100000
63+
#else
6164
#define TK1_RAM_SIZE 0x20000
65+
#endif
6266

6367
#define TK1_MMIO_BASE 0xc0000000
6468
#define TK1_MMIO_SIZE 0x3fffffff
6569

70+
#ifdef BUILD_FOR_QEMU
71+
#define TK1_APP_MAX_SIZE 0x100000
72+
#else
6673
#define TK1_APP_MAX_SIZE 0x20000
74+
#endif
6775

6876
#define TK1_MMIO_FW_RAM_BASE 0xd0000000
6977
// FW_RAM is 4096 bytes

0 commit comments

Comments
 (0)