aboutsummaryrefslogtreecommitdiff
path: root/spike_main
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2022-12-15 15:29:43 -0800
committerJerry Zhao <jerryz123@berkeley.edu>2022-12-15 17:07:35 -0800
commite1919d3b0666a149fbfa0514ba6d6ce40abdfdab (patch)
treee190714f44f235412c60edce438997bda318df63 /spike_main
parent3b9a3f17ba14f6844afbb27212405d2bf5019257 (diff)
downloadspike-e1919d3b0666a149fbfa0514ba6d6ce40abdfdab.zip
spike-e1919d3b0666a149fbfa0514ba6d6ce40abdfdab.tar.gz
spike-e1919d3b0666a149fbfa0514ba6d6ce40abdfdab.tar.bz2
Add config.h includes directly to source files instead of relying on header chaining
This step is to ensure that removing config.h out of headers will not cause regressions.
Diffstat (limited to 'spike_main')
-rw-r--r--spike_main/spike-log-parser.cc1
-rw-r--r--spike_main/spike.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/spike_main/spike-log-parser.cc b/spike_main/spike-log-parser.cc
index e5511e5..adf6b68 100644
--- a/spike_main/spike-log-parser.cc
+++ b/spike_main/spike-log-parser.cc
@@ -5,6 +5,7 @@
// in its inputs, then output the RISC-V instruction with the disassembly
// enclosed hexadecimal number.
+#include "config.h"
#include <iostream>
#include <string>
#include <cstdint>
diff --git a/spike_main/spike.cc b/spike_main/spike.cc
index f183e5b..b204091 100644
--- a/spike_main/spike.cc
+++ b/spike_main/spike.cc
@@ -1,5 +1,6 @@
// See LICENSE for license details.
+#include "config.h"
#include "cfg.h"
#include "sim.h"
#include "mmu.h"