I don't see anything obviously wrong... you probably need to step
through testCmdAttrib() to see why it's not giving you the response
you expect.

BTW, it's easier and more meaningful to use 'hg diff' to post patches
if you want to show a code change.

Steve

On Thu, Jul 15, 2010 at 3:20 PM, Malek Musleh <[email protected]> wrote:
> Hello,
>
>
> I am trying to define a new MemCmd::CommandInfo in Packet.cc to
> support handling WriteUpdates/Selective WriteUpdates to integrate
> SelectiveWriteUpdate Coherence Protocol.
>
> The changes compile fine, but can't seem to get the packet attributes
> recognized when I do some debug checking. For example, I define (as
> listed below) that WriteUpdateReq has the attribute 'IsRequest'
> however, when I make a new packet with that MemCmd, the 'isRequest()'
> test fails, but 'isResponse()' passes. For that matter, it doesn't
> seem that any of the attributes that I enlist as part of the command
> seem to be recognized.
>
> I thought maybe I had to create a new Packet (e.g. pkt = new
> Packet(...) with the desired MemCmd, but that doesn't seem to work
> either. Am I missing something else? I have listed my changes to
> packet.cc/packet.hh further below.
>
> Thanks.
>
> Malek
>
> ********************************************************************************************************
>
> Packet.cc Changes:
>
>    { SET4(IsWriteUpdate, IsRequest, NeedsResponse,  HasData),
> WriteUpdateResp, "WriteUpd\
> ateReq" },
>
>    /* WriteUpdateResp */
>      { SET3(IsWriteUpdate, IsResponse, HasData), InvalidCmd,
> "WriteUpdateResp" },
>
>    /* Selective Write Update Protocol */
>      /* SelectiveWriteUpdateReq */
>    { SET4(IsSelectUpdate, IsRequest, NeedsResponse, HasData),
> SelectUpdateResp, "SelectU\
> pdateReq" },
>
>      { SET3(IsSelectUpdate, IsResponse, HasData), InvalidCmd,
> "SelectUpdateResp" }
>
>
> packet.hh changes:
>
> enum Command
> {
>        WriteUpdateReq,
>        WriteUpdateResp,
>        SelectUpdateReq,
>        SelectUpdateResp,
> }
>
> enum Attribute
> {
>        IsWriteUpdate,  //!< Malek : Update Coherence protocol
>        IsSelectUpdate, //!< Malek: Selective Update
> }
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to