From fc0678daf202b9e7d7e4280389ce81abe00b8700 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 31 Oct 2019 16:48:56 +0100 Subject: [PATCH] mem-cache: Fix missing header in associative set Add missing intmath header to AssociativeSet, so that isPowerOf2 can be used. error: there are no arguments to 'isPowerOf2' that depend on a template parameter, so a declaration of 'isPowerOf2' must be available Change-Id: Ib2b194f9e71284ee439786bdb76d99858e57e2f5 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22444 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris Tested-by: kokoro --- src/mem/cache/prefetch/associative_set_impl.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mem/cache/prefetch/associative_set_impl.hh b/src/mem/cache/prefetch/associative_set_impl.hh index 5e6e7c585..cc547e2dc 100644 --- a/src/mem/cache/prefetch/associative_set_impl.hh +++ b/src/mem/cache/prefetch/associative_set_impl.hh @@ -31,6 +31,7 @@ #ifndef __CACHE_PREFETCH_ASSOCIATIVE_SET_IMPL_HH__ #define __CACHE_PREFETCH_ASSOCIATIVE_SET_IMPL_HH__ +#include "base/intmath.hh" #include "mem/cache/prefetch/associative_set.hh" template -- 2.30.2