mem: Use the System object's getGuestByteOrder in AbstractMemory.
authorGabe Black <gabeblack@google.com>
Wed, 19 Aug 2020 09:24:48 +0000 (02:24 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Aug 2020 05:02:07 +0000 (05:02 +0000)
Change-Id: Ifcf3d8dcbee73555b23ec0a8c25572921fca13a6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32925
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/abstract_mem.cc

index 2f72ebef0a22626ea76c4297542f8c6449b964e2..f1e9dbab61c4dff126146c673a9a720154dbee78 100644 (file)
@@ -348,9 +348,10 @@ tracePacket(System *sys, const char *label, PacketPtr pkt)
     int size = pkt->getSize();
 #if THE_ISA != NULL_ISA
     if (size == 1 || size == 2 || size == 4 || size == 8) {
+        ByteOrder byte_order = sys->getGuestByteOrder();
         DPRINTF(MemoryAccess,"%s from %s of size %i on address %#x data "
                 "%#x %c\n", label, sys->getMasterName(pkt->req->masterId()),
-                size, pkt->getAddr(), pkt->getUintX(TheISA::GuestByteOrder),
+                size, pkt->getAddr(), pkt->getUintX(byte_order),
                 pkt->req->isUncacheable() ? 'U' : 'C');
         return;
     }