summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-12-08 01:29:52 -0800
committerGabe Black <gabeblack@google.com>2019-12-17 23:31:45 +0000
commitd040db5361603104bfa7a9f74cd571d21be87f89 (patch)
tree5d57cbe2d933692689c7330bfb1dea31df492fae /src
parent2e325359b7c8e22d1da869c1b05cfab0c2cd835b (diff)
downloadgem5-d040db5361603104bfa7a9f74cd571d21be87f89.tar.xz
sim: Include some required headers in the syscall debug macros header.
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>
Diffstat (limited to 'src')
-rw-r--r--src/sim/syscall_debug_macros.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/syscall_debug_macros.hh b/src/sim/syscall_debug_macros.hh
index 35a0a0560..84ab552d5 100644
--- a/src/sim/syscall_debug_macros.hh
+++ b/src/sim/syscall_debug_macros.hh
@@ -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"