mem-cache: Removed default arg from get() in prefetch/base.hh
authorRyan Gambord <gambordr@oregonstate.edu>
Mon, 11 Mar 2019 03:32:21 +0000 (20:32 -0700)
committerRyan Gambord <gambordr@oregonstate.edu>
Tue, 12 Mar 2019 00:20:22 +0000 (00:20 +0000)
commit b0d1643 caused building against NULL to break due to
NULLIsa::GuestByteOrder not being defined.

Removal of default argument in src/mem/cache/prefetch/base.hh fixes
this.

Change-Id: I99a4abb4be1418fadec145481164f7caa3334ca0
Signed-off-by: Ryan Gambord
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17070
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/prefetch/base.hh

index 05895f223151d45e9aeae5cc0dc0b2382fe39a69..3ef607fad836e4dbb89e195195f03f51067fe0bd 100644 (file)
@@ -201,7 +201,7 @@ class BasePrefetcher : public ClockedObject
          */
         template <typename T>
         inline T
-        get(ByteOrder endian = TheISA::GuestByteOrder) const
+        get(ByteOrder endian) const
         {
             if (data == nullptr) {
                 panic("PrefetchInfo::get called with a request with no data.");