diff options
author | Sooraj Puthoor <puthoorsooraj@gmail.com> | 2016-11-19 12:39:04 -0500 |
---|---|---|
committer | Sooraj Puthoor <puthoorsooraj@gmail.com> | 2016-11-19 12:39:04 -0500 |
commit | 29d38e75762e195161786be60c695fba1b77c7de (patch) | |
tree | 5ffb2efe785f190d9f41a805a11c84588a4786d4 /src/mem | |
parent | ae55cba281bb37390335f5ad1e5f0f02820a75f8 (diff) | |
download | gem5-29d38e75762e195161786be60c695fba1b77c7de.tar.xz |
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 (limited to 'src/mem')
-rw-r--r-- | src/mem/protocol/RubySlicc_Exports.sm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/protocol/RubySlicc_Exports.sm b/src/mem/protocol/RubySlicc_Exports.sm index 2cfb77d3a..1beb3f2e0 100644 --- a/src/mem/protocol/RubySlicc_Exports.sm +++ b/src/mem/protocol/RubySlicc_Exports.sm @@ -287,7 +287,7 @@ structure(SequencerMsg, desc="...", interface="Message") { 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); |