Nathanael Premillieu has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/48683 )
Change subject: mem-cache: print VA and PA in the prefetch queues
......................................................................
mem-cache: print VA and PA in the prefetch queues
As prefetcher can use VA and need translation, it is
interesting to see both VA and PA when printing the queues.
PA is printed as 0 if translation has not happened yet.
Also fix a bug when the pkt is not yet created.
Change-Id: I7cd225379c2930a8d6a7882efdb3dc7bc49fb8a3
---
M src/mem/cache/prefetch/queued.cc
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/mem/cache/prefetch/queued.cc
b/src/mem/cache/prefetch/queued.cc
index ae4913d..e27dba2 100644
--- a/src/mem/cache/prefetch/queued.cc
+++ b/src/mem/cache/prefetch/queued.cc
@@ -131,8 +131,11 @@
for (const_iterator it = queue.cbegin(); it != queue.cend();
it++, pos++) {
- DPRINTF(HWPrefetchQueue, "%s[%d]: Prefetch Req Addr: %#x
prio: %3d\n",
- queue_name, pos, it->pkt->getAddr(), it->priority);
+ Addr vaddr = it->pfInfo.getAddr();
+ /* Set paddr to 0 if not yet translated */
+ Addr paddr = it-> pkt ? it->pkt->getAddr() : 0;
+ DPRINTF(HWPrefetchQueue, "%s[%d]: Prefetch Req VA: %#x PA: %#x "
+ "prio: %3d\n", queue_name, pos, vaddr, paddr,
it->priority);
}
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48683
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: I7cd225379c2930a8d6a7882efdb3dc7bc49fb8a3
Gerrit-Change-Number: 48683
Gerrit-PatchSet: 1
Gerrit-Owner: Nathanael Premillieu <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s