From: Gabe Black Date: Wed, 19 Aug 2020 09:28:33 +0000 (-0700) Subject: mem: Use getGuestByteOrder in the indirect memory prefetcher. X-Git-Tag: v20.1.0.0~262 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cf7b28ba697a6005fac056b29b7fd56fb3bacf6;p=gem5.git mem: Use getGuestByteOrder in the indirect memory prefetcher. Use that instead of accessing TheISA::GuestByteOrder directly. Change-Id: I6fbeb7501aceadb95739bb482215097af18da2fa Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32926 Reviewed-by: Daniel Carvalho Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/mem/cache/prefetch/indirect_memory.cc b/src/mem/cache/prefetch/indirect_memory.cc index ac825fd54..f6f035413 100644 --- a/src/mem/cache/prefetch/indirect_memory.cc +++ b/src/mem/cache/prefetch/indirect_memory.cc @@ -46,15 +46,8 @@ IndirectMemory::IndirectMemory(const IndirectMemoryPrefetcherParams *p) ipd(p->ipd_table_assoc, p->ipd_table_entries, p->ipd_table_indexing_policy, p->ipd_table_replacement_policy, IndirectPatternDetectorEntry(p->addr_array_len, shiftValues.size())), - ipdEntryTrackingMisses(nullptr), -#if THE_ISA != NULL_ISA - byteOrder(TheISA::GuestByteOrder) -#else - byteOrder((ByteOrder) -1) -#endif + ipdEntryTrackingMisses(nullptr), byteOrder(p->sys->getGuestByteOrder()) { - fatal_if(byteOrder == static_cast(-1), - "This prefetcher requires a defined ISA\n"); } void