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.
This commit is contained in:
parent
ae55cba281
commit
29d38e7576
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ structure(SequencerMsg, desc="...", interface="Message") {
|
||||||
DataBlock DataBlk, desc="Data";
|
DataBlock DataBlk, desc="Data";
|
||||||
int Len, desc="size in bytes of access";
|
int Len, desc="size in bytes of access";
|
||||||
PrefetchBit Prefetch, desc="Is this a prefetch request";
|
PrefetchBit Prefetch, desc="Is this a prefetch request";
|
||||||
MessageSizeType MessageSize;
|
MessageSizeType MessageSize, default="MessageSizeType_Request_Control";
|
||||||
|
|
||||||
bool functionalRead(Packet *pkt) {
|
bool functionalRead(Packet *pkt) {
|
||||||
return testAndRead(PhysicalAddress, DataBlk, pkt);
|
return testAndRead(PhysicalAddress, DataBlk, pkt);
|
||||||
|
|
Loading…
Reference in a new issue