ruby: add useful dprints to sequencer
authorBrad Beckmann <Brad.Beckmann@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
Added two data block dprints that are useful when tracking down data check
failures in the ruby random tester.

src/mem/ruby/system/Sequencer.cc

index e2be52083b44b1d8aaa3a904a89e20bb92f30bcb..32e4c107c7f3a63d6c2fc27aa1b4eaaceb78bb7a 100644 (file)
@@ -536,9 +536,11 @@ Sequencer::hitCallback(SequencerRequest* srequest, DataBlock& data,
             memcpy(pkt->getPtr<uint8_t>(),
                    data.getData(request_address.getOffset(), pkt->getSize()),
                    pkt->getSize());
+            DPRINTF(RubySequencer, "read data %s\n", data);
         } else {
             data.setData(pkt->getConstPtr<uint8_t>(),
                          request_address.getOffset(), pkt->getSize());
+            DPRINTF(RubySequencer, "set data %s\n", data);
         }
     }