diff options
author | Steve Reinhardt <stever@gmail.com> | 2008-01-02 13:46:22 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2008-01-02 13:46:22 -0800 |
commit | cde5a79eab22a3f6f10ebc68f24260721c98790f (patch) | |
tree | 008ab1f1fc7ce5a0397490be9028c7ce47999f1d /src/cpu/memtest | |
parent | 3952e41ab1f1dfaa2f97a6a486528e4ea0bfc5a1 (diff) | |
download | gem5-cde5a79eab22a3f6f10ebc68f24260721c98790f.tar.xz |
Additional comments and helper functions for PrintReq.
--HG--
extra : convert_revision : 7eadf9b7db8c0289480f771271b6efe2400006d4
Diffstat (limited to 'src/cpu/memtest')
-rw-r--r-- | src/cpu/memtest/memtest.cc | 13 | ||||
-rw-r--r-- | src/cpu/memtest/memtest.hh | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/cpu/memtest/memtest.cc b/src/cpu/memtest/memtest.cc index e2acff4ca..29da517b3 100644 --- a/src/cpu/memtest/memtest.cc +++ b/src/cpu/memtest/memtest.cc @@ -394,15 +394,16 @@ MemTest::doRetry() } } -MemTest * -MemTestParams::create() -{ - return new MemTest(this); -} - void MemTest::printAddr(Addr a) { cachePort.printAddr(a); } + + +MemTest * +MemTestParams::create() +{ + return new MemTest(this); +} diff --git a/src/cpu/memtest/memtest.hh b/src/cpu/memtest/memtest.hh index eb0c822f1..1a330319f 100644 --- a/src/cpu/memtest/memtest.hh +++ b/src/cpu/memtest/memtest.hh @@ -62,6 +62,10 @@ class MemTest : public MemObject virtual Port *getPort(const std::string &if_name, int idx = -1); + /** + * Print state of address in memory system via PrintReq (for + * debugging). + */ void printAddr(Addr a); protected: |