gpu-compute: Fix LDS out-of-bounds behavior
authorTony Gutierrez <anthony.gutierrez@amd.com>
Thu, 14 Jun 2018 19:22:03 +0000 (15:22 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Thu, 16 Jul 2020 20:37:22 +0000 (20:37 +0000)
commit701f026ba57dda2c7c567ffedd0730bdcff9dceb
treec12ff2160837eda16b67f0f746e578c1a65e8a7c
parentcc791d51a2c641bf96ae89bcaa53591ba75b4956
gpu-compute: Fix LDS out-of-bounds behavior

The LDS is capable of handling out-of-bounds accesses,
that is, accesses that are outside the bounds of the
chunk allocated to a WG. Currently, the simulator asserts
on these accesses. This patch changes the behavior of the
LDS to return 0 for reads and dropping writes that are
out-of-bounds.

Change-Id: I5f467d0f52113e8565e1a3029e82fb89cc6f07ea
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29940
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
src/gpu-compute/lds_state.hh