Gabe Black has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/32925 )

Change subject: mem: Use the System object's getGuestByteOrder in AbstractMemory.
......................................................................

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 <[email protected]>
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/mem/abstract_mem.cc
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Daniel Carvalho: Looks good to me, approved
  Gabe Black: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc
index 2f72ebe..f1e9dba 100644
--- a/src/mem/abstract_mem.cc
+++ b/src/mem/abstract_mem.cc
@@ -348,9 +348,10 @@
     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;
     }

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/32925
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ifcf3d8dcbee73555b23ec0a8c25572921fca13a6
Gerrit-Change-Number: 32925
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to