From: Ron Dreslinski Date: Tue, 10 Oct 2006 06:33:30 +0000 (-0400) Subject: Yet another fix to the HasData command attribute. X-Git-Tag: m5_2.0_beta2~104^2~22^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fa5e4b6b8c402558caecb2a93ed0be38700e1bc;p=gem5.git Yet another fix to the HasData command attribute. --HG-- extra : convert_revision : dcf0d7eafa5168591c2b374b452821ca34dde7f9 --- diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 998419156..7ec061710 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -327,6 +327,8 @@ class Packet icmd |= IsResponse; if (isRead()) icmd |= HasData; + if (isWrite()) + icmd &= ~HasData; cmd = (Command)icmd; dest = src; srcValid = false;