From 1cf7b28ba697a6005fac056b29b7fd56fb3bacf6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 19 Aug 2020 02:28:33 -0700 Subject: [PATCH] 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 --- src/mem/cache/prefetch/indirect_memory.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 -- 2.30.2