From 1f7cc16a700daccce3f6a12df4e81c52460511c0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 19 Aug 2020 02:24:48 -0700 Subject: [PATCH] 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 --- src/mem/abstract_mem.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2