fastmodel: Fix compilation errors
authorChun-Chen TK Hsu <chunchenhsu@google.com>
Mon, 30 Dec 2019 08:23:40 +0000 (16:23 +0800)
committerChun-Chen TK Hsu <chunchenhsu@google.com>
Mon, 30 Dec 2019 22:41:58 +0000 (22:41 +0000)
This changes fixes two compilation errors when compiling with
FastModels. One is that CurrentMsn should be Iris::CurrentMsn and the
other is that currEL() function needs arch/arm/utility.hh header file.

Test by compiling GEM5 with FastModels:
scons -j64 build/ARM/gem5.opt \
  USE_ARM_FASTMODEL=1     \
  PVLIB_HOME=...          \
  MAXCORE_HOME=...        \
  ARMLMD_LICENSE_FILE=... \

Change-Id: Iabe0a5f25246591f99b57219428b8f87ecd3363c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23924
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>

src/arch/arm/fastmodel/CortexA76/thread_context.cc

index bd1d720fe5580dbaed3bbbc4d304c88a05422ca3..c7c92d15800051efee8cf7b0e9494ead34a192c3 100644 (file)
@@ -30,6 +30,7 @@
 #include "arch/arm/fastmodel/CortexA76/thread_context.hh"
 
 #include "arch/arm/fastmodel/iris/memory_spaces.hh"
+#include "arch/arm/utility.hh"
 #include "iris/detail/IrisCppAdapter.h"
 #include "iris/detail/IrisObjects.h"
 
@@ -100,7 +101,7 @@ CortexA76TC::getBpSpaceId(Addr pc) const
 {
     if (bpSpaceId == iris::IRIS_UINT64_MAX) {
         for (auto &space: memorySpaces) {
-            if (space.canonicalMsn == CurrentMsn) {
+            if (space.canonicalMsn == Iris::CurrentMsn) {
                 bpSpaceId = space.spaceId;
                 break;
             }