sim: Include some required headers in the syscall debug macros header.
authorGabe Black <gabeblack@google.com>
Sun, 8 Dec 2019 09:29:52 +0000 (01:29 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 17 Dec 2019 23:31:45 +0000 (23:31 +0000)
Everything that includes syscall_debug_macros.hh and uses the macro in
it will need these headers, so they should be included through
syscall_debug_macros.hh. The consumer shouldn't have to know what the
macros use internally and to include extra headers to support them.

Change-Id: I9bfa932368daec0772d552357ecad8790b4cfead
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23459
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/sim/syscall_debug_macros.hh

index 35a0a056020c079927ccc1ecfd674b9cac58e36d..84ab552d5c6545005c0492c3942f6dbaea22f200 100644 (file)
@@ -46,6 +46,8 @@
 #ifndef __SIM_SYSCALL_DEBUG_MACROS_HH__
 #define __SIM_SYSCALL_DEBUG_MACROS_HH__
 
+#include "cpu/base.hh"
+#include "cpu/thread_context.hh"
 #include "debug/SyscallBase.hh"
 #include "debug/SyscallVerbose.hh"