diff options
Diffstat (limited to 'src/sim/system.hh')
-rw-r--r-- | src/sim/system.hh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh index 595892385..1db28f212 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -56,15 +56,21 @@ #include "base/misc.hh" #include "base/statistics.hh" #include "config/the_isa.hh" -#include "cpu/pc_event.hh" #include "enums/MemoryMode.hh" -#include "kern/system_events.hh" #include "mem/mem_object.hh" #include "mem/port.hh" #include "mem/port_proxy.hh" #include "mem/physical.hh" #include "params/System.hh" +/** + * To avoid linking errors with LTO, only include the header if we + * actually have the definition. + */ +#if THE_ISA != NULL_ISA +#include "cpu/pc_event.hh" +#endif + class BaseCPU; class BaseRemoteGDB; class GDBListener; |