arch-gcn3: Fix stride bug in buffer OOB detection logic
authorMichael LeBeane <Michael.Lebeane@amd.com>
Mon, 20 May 2019 20:39:40 +0000 (16:39 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Fri, 17 Jul 2020 16:34:07 +0000 (16:34 +0000)
commitf509fa735ca7a2969c99fd9606157ba72a4abe9c
tree9e30d2c4de60d905b3c5cbb8e0846fa5a2724ddc
parent4c1dc827bcd17964743a8aced211247ee4b7a4a8
arch-gcn3: Fix stride bug in buffer OOB detection logic

The out-of-range logic for buffer accesses is missing the top 4 bits of
const_stride when dealing with scratch buffers.  This can cause
perfectly valid scratch acceses to be suppressed when const_stride is
large.

Change-Id: I8f94d44c242fda26cf6dfb75db04fa3aca934b3e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29968
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/gcn3/insts/op_encodings.hh