From: Gabe Black Date: Thu, 9 Jan 2020 09:14:21 +0000 (-0800) Subject: base: Include some required headers in amo.hh. X-Git-Tag: v19.0.0.0~124 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02a1f8b28dda896e5400b8667008ad716ada3a52;p=gem5.git 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 --- 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;