changeset 9e5050028323 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=9e5050028323
description:
        ruby: init MessageSizeType of SequencerMsg to Request_Control

        SequencerMsg is autogenerated by slicc scripts and the MessageSizeType 
is
        initialized to the max enume value by default. The DMASequencer pushes 
this
        message to the mandatory queue and since the MessageSizeType is 
unitialized,
        string_to_MessageSizeType() function used by traces to print the 
message fails
        with a panic. This patch avoids this problem by initializing 
MessageSizeType
        of SequencerMsg to Request_Control.

diffstat:

 src/mem/protocol/RubySlicc_Exports.sm |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f7e79ee7fb4c -r 9e5050028323 src/mem/protocol/RubySlicc_Exports.sm
--- a/src/mem/protocol/RubySlicc_Exports.sm     Sat Nov 19 12:35:14 2016 -0500
+++ b/src/mem/protocol/RubySlicc_Exports.sm     Sat Nov 19 12:39:04 2016 -0500
@@ -287,7 +287,7 @@
   DataBlock DataBlk,         desc="Data";
   int Len,                   desc="size in bytes of access";
   PrefetchBit Prefetch,      desc="Is this a prefetch request";
-  MessageSizeType MessageSize;
+  MessageSizeType MessageSize, default="MessageSizeType_Request_Control";
 
   bool functionalRead(Packet *pkt) {
     return testAndRead(PhysicalAddress, DataBlk, pkt);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to