From 02a1f8b28dda896e5400b8667008ad716ada3a52 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 9 Jan 2020 01:14:21 -0800 Subject: [PATCH] base: Include some required headers in amo.hh. amo.hh was using several non-default definitions including std::function, uint8_t, and std::array without including any headers at all, and instead apparently relying on those having already been brought in by an earlier include. This change adds those includes explicitly. Change-Id: I92166ff581e74bd705e10fd4fa454df179ae1a97 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24183 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/base/amo.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/amo.hh b/src/base/amo.hh index ec0598199..297b88e76 100644 --- a/src/base/amo.hh +++ b/src/base/amo.hh @@ -35,6 +35,10 @@ #ifndef __BASE_AMO_HH__ #define __BASE_AMO_HH__ +#include +#include +#include + struct AtomicOpFunctor { virtual void operator()(uint8_t *p) = 0; -- 2.30.2