8000 Change size of TKey memory in QEMU to be able to debug large apps by jthornblad · Pull Request #363 · tillitis/tillitis-key1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change size of TKey memory in QEMU to be able to debug large apps #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hw/application_fpga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ simfirmware.elf: CFLAGS += -DSIMULATION
simfirmware.elf: $(FIRMWARE_OBJS) $(P)/fw/tk1/firmware.lds
$(CC) $(CFLAGS) $(FIRMWARE_OBJS) $(LDFLAGS) -o $@ > $(basename $@).map

qemu_firmware.elf: CFLAGS += -DBUILD_FOR_QEMU
qemu_firmware.elf: ASFLAGS += -DBUILD_FOR_QEMU
qemu_firmware.elf: CFLAGS += -DQEMU_DEBUG
qemu_firmware.elf: ASFLAGS += -DQEMU_DEBUG
qemu_firmware.elf: CFLAGS += -DQEMU_SYSCALL
Expand Down
8 changes: 4 additions & 4 deletions hw/application_fpga/fw/tk1/qemu_firmware.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ STACK_SIZE = 3000;

MEMORY
{
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 128k
FWRAM (rw) : ORIGIN = 0xd0000000, LENGTH = 0xF00 /* 3840 B */
RESETINFO (rw) : ORIGIN = 0xd0000F00, LENGTH = 0x100 /* 256 B (part of FW_RAM area) */
RAM (rwx) : ORIGIN = 0x40000000, LENGTH = 0x20000 /* 128 KB */
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x20000 /* 128 KB */
FWRAM (rw) : ORIGIN = 0xd0000000, LENGTH = 0xF00 /* 3840 B */
RESETINFO (rw) : ORIGIN = 0xd0000F00, LENGTH = 0x100 /* 256 B (part of FW_RAM area) */
RAM (rwx) : ORIGIN = 0x40000000, LENGTH = 0x100000 /* 1 MB */
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion hw/application_fpga/fw/tk1/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ irq_source_ok:
// Verify that interrupt return address (x3) is in app RAM
li t0, TK1_RAM_BASE // 0x40000000
blt x3, t0, x3_invalid
li t0, TK1_RAM_BASE + TK1_RAM_SIZE // 0x40020000
li t0, TK1_RAM_BASE + TK1_RAM_SIZE
bge x3, t0, x3_invalid
j x3_valid
x3_invalid:
Expand Down
0