cpu: Put in assertions to check for maximum supported LQ/SQ size
authorFaissal Sleiman <Faissal.Sleiman@arm.com>
Thu, 17 Oct 2013 15:20:45 +0000 (10:20 -0500)
committerFaissal Sleiman <Faissal.Sleiman@arm.com>
Thu, 17 Oct 2013 15:20:45 +0000 (10:20 -0500)
commite516531bd0010eec4ab3352ff0b12057782a40ce
tree9382f4f7fe4a580b10fbcc1425cd2312797b4864
parent1e2a455a2382065d6ada6d08e465ce6126ebbdcf
cpu: Put in assertions to check for maximum supported LQ/SQ size

LSQSenderState represents the LQ/SQ index using uint8_t, which supports up to
 256 entries (including the sentinel entry). Sending packets to memory with a
higher index than 255 truncates the index, such that the response matches the
wrong entry. For instance, this can result in a deadlock if a store completion
does not clear the head entry.
src/cpu/o3/lsq_unit_impl.hh