Fix install of a missed header from debug_rom.
authorPrashanth Mundkur <prashanth.mundkur@gmail.com>
Mon, 26 Feb 2018 23:37:01 +0000 (15:37 -0800)
committerAndrew Waterman <aswaterman@gmail.com>
Tue, 6 Mar 2018 17:46:53 +0000 (11:46 -0600)
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.

debug_rom/Makefile
debug_rom/debug_rom.S
riscv/debug_module.cc
riscv/processor.h

index 0a67ba102623b9861ea713ef973a447a4a3cebce..c5f2205de3bbf38baba4d600342f2277d409d098 100644 (file)
@@ -7,7 +7,7 @@ OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
 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))
 
index 1342ee0520cd06b9b5be6216103308aaf0484f3c..28c7076fda5c17dc2f46d1cf2fead993ba92b6f5 100755 (executable)
@@ -1,8 +1,8 @@
 // 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
index 39e1ae01e39c17af9b93d59a4b152c868de9fd9e..de54a8377256346b8223c5a5fe6b4025b8400bfc 100644 (file)
@@ -6,7 +6,7 @@
 #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
index 070fccf8af1d7515c1c46add649a2912b839da29..3998ce5a49fa34af20f6963c2192d11db4f62794 100644 (file)
@@ -9,7 +9,7 @@
 #include <string>
 #include <vector>
 #include <map>
-#include "debug_rom/debug_rom_defines.h"
+#include "debug_rom_defines.h"
 
 class processor_t;
 class mmu_t;