From: Gabe Black Date: Wed, 19 Aug 2020 09:24:48 +0000 (-0700) Subject: mem: Use the System object's getGuestByteOrder in AbstractMemory. X-Git-Tag: v20.1.0.0~268 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f7cc16a700daccce3f6a12df4e81c52460511c0;p=gem5.git mem: Use the System object's getGuestByteOrder in AbstractMemory. Change-Id: Ifcf3d8dcbee73555b23ec0a8c25572921fca13a6 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32925 Reviewed-by: Daniel Carvalho Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc index 2f72ebef0..f1e9dbab6 100644 --- a/src/mem/abstract_mem.cc +++ b/src/mem/abstract_mem.cc @@ -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; }