The installed header files from the riscv subproject were incomplete, since
processor.h includes debug_rom_defines.h, and the latter was not installed.
Fix by moving it into riscv/, add it to the riscv subproject header list, which
ensures it will get installed. While here, also add a missed dependency of debug_rom
on riscv/encoding.h to debug_rom/Makefile.
COMPILE = $(CC) -nostdlib -nostartfiles -I.. -Tlink.ld
ELFS = debug_rom
-DEPS = debug_rom.S link.ld debug_rom_defines.h
+DEPS = debug_rom.S link.ld ../riscv/debug_rom_defines.h ../riscv/encoding.h
all: $(patsubst %,%.h,$(ELFS))
// See LICENSE.SiFive for license details.
#include "riscv/encoding.h"
-#include "debug_rom_defines.h"
-
+#include "riscv/debug_rom_defines.h"
+
.option norvc
.global entry
.global exception
#include "mmu.h"
#include "debug_rom/debug_rom.h"
-#include "debug_rom/debug_rom_defines.h"
+#include "debug_rom_defines.h"
#if 0
# define D(x) x
#include <string>
#include <vector>
#include <map>
-#include "debug_rom/debug_rom_defines.h"
+#include "debug_rom_defines.h"
class processor_t;
class mmu_t;