diff options
Diffstat (limited to 'src/sim/system.cc')
-rw-r--r-- | src/sim/system.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc index 61c6decf7..1f63dbf33 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -54,7 +54,6 @@ #include "cpu/thread_context.hh" #include "debug/Loader.hh" #include "debug/WorkItems.hh" -#include "kern/kernel_stats.hh" #include "mem/abstract_mem.hh" #include "mem/physical.hh" #include "params/System.hh" @@ -63,6 +62,14 @@ #include "sim/full_system.hh" #include "sim/system.hh" +/** + * To avoid linking errors with LTO, only include the header if we + * actually have a definition. + */ +#if THE_ISA != NULL_ISA +#include "kern/kernel_stats.hh" +#endif + using namespace std; using namespace TheISA; |