base: Include some required headers in amo.hh.
authorGabe Black <gabeblack@google.com>
Thu, 9 Jan 2020 09:14:21 +0000 (01:14 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 9 Jan 2020 20:44:48 +0000 (20:44 +0000)
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>
src/base/amo.hh

index ec0598199df4ef5ccf40dae615234e96acd90e0c..297b88e7665da655fb0c8f0acdccb2c91037bba2 100644 (file)
 #ifndef __BASE_AMO_HH__
 #define __BASE_AMO_HH__
 
+#include <array>
+#include <cstdint>
+#include <functional>
+
 struct AtomicOpFunctor
 {
     virtual void operator()(uint8_t *p) = 0;