O3: Fix offset calculation into storeQueue buffer for store->load forwarding
authorGeoffrey Blake <geoffrey.blake@arm.com>
Mon, 23 May 2011 15:40:21 +0000 (10:40 -0500)
committerGeoffrey Blake <geoffrey.blake@arm.com>
Mon, 23 May 2011 15:40:21 +0000 (10:40 -0500)
commitd0b0a555151232566550c837f9d4d061bf3d4686
tree39cfcae9744fa0c707b5335acee6bde1d9f8986c
parentc223b887fe6e40bc044f0bd8e032b5ab0a366c9d
O3: Fix offset calculation into storeQueue buffer for store->load forwarding

Calculation of offset to copy from storeQueue[idx].data structure for load to
store forwarding fixed to be difference in bytes between store and load virtual
addresses.  Previous method would induce bug where a load would index into
buffer at the wrong location.
src/cpu/o3/lsq_unit.hh