Review Board 2.0.15


Ruby: Initialize MessageSizeType of SequencerMsg to Request_Control

Review Request #3738 - Created Nov. 18, 2016 and submitted - Latest diff uploaded

Information
Sooraj Puthoor
gem5
default
Reviewers
Default

Changeset 11898:7aa1f642586a
---------------------------
Ruby: Initialize 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.