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 <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2020-08-19 02:28:33 -07:00
parent 03976aa582
commit 1cf7b28ba6

View File

@@ -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<ByteOrder>(-1),
"This prefetcher requires a defined ISA\n");
}
void