diff options
author | Gabe Black <gabeblack@google.com> | 2020-01-09 01:14:21 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2020-01-09 20:44:48 +0000 |
commit | 02a1f8b28dda896e5400b8667008ad716ada3a52 (patch) | |
tree | fc80fb78370b2418458ad1747a9ac5a6cfc31b43 /src/base | |
parent | 2d2d579c4ad7f6b1b5aeae2605b0632fb4b05ad7 (diff) | |
download | gem5-02a1f8b28dda896e5400b8667008ad716ada3a52.tar.xz |
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 <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/amo.hh | 4 |
1 files changed, 4 insertions, 0 deletions
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 <array> +#include <cstdint> +#include <functional> + struct AtomicOpFunctor { virtual void operator()(uint8_t *p) = 0; |