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:
9
src/mem/cache/prefetch/indirect_memory.cc
vendored
9
src/mem/cache/prefetch/indirect_memory.cc
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user