aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/Makefile
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-04-22 20:11:29 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:10 -0700
commit6835847f4798cc38f933ba877004eacfc1cbf593 (patch)
tree97167666ac59ceb72506cd2d321a46d5bd31d601 /debug_rom/Makefile
parentddc061f0fb3c08e172818891aad9247fd0fb2da9 (diff)
downloadspike-6835847f4798cc38f933ba877004eacfc1cbf593.zip
spike-6835847f4798cc38f933ba877004eacfc1cbf593.tar.gz
spike-6835847f4798cc38f933ba877004eacfc1cbf593.tar.bz2
Can jump to and execute Debug ROM.
Connect with gdb, and the core will jump to Debug ROM and start executing it. Then it crashes when it jumps to 0x400 because Debug RAM isn't implemented (and doesn't live there anyway, for now).
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r--debug_rom/Makefile20
1 files changed, 0 insertions, 20 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile
deleted file mode 100644
index 17cc95e..0000000
--- a/debug_rom/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-# Recursive make is bad, but in this case we're cross compiling which is a
-# pretty unusual use case.
-
-CC = $(RISCV)/bin/riscv64-unknown-elf-gcc
-OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
-
-%.o: %.S
- $(CC) -c $<
-
-debug_rom.c: debug_rom.raw
- xxd -i $^ > $@
-
-debug_rom.raw: debug_rom
- $(OBJCOPY) -O binary --only-section .text debug_rom debug_rom.raw
-
-debug_rom: debug_rom.o
- $(CC) -nostdlib -nostartfiles -Tlink.ld -o $@ $^
-
-clean:
- rm -f debug_rom debug_rom.o debug_rom.raw debug_rom.c