arch-gcn3: ensure that atomics follow HSA conventions
authorMatt Sinclair <Matthew.Sinclair@amd.com>
Fri, 22 Jun 2018 06:38:08 +0000 (02:38 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Thu, 16 Jul 2020 20:37:22 +0000 (20:37 +0000)
commit3e84a8d7101ce1d1f23c7044e7941a7372abc94f
treeab6ea368ac696a5b9475afc7e6681e7027dac560
parent701f026ba57dda2c7c567ffedd0730bdcff9dceb
arch-gcn3: ensure that atomics follow HSA conventions

Add asserts to make sure atomics are following the HSA conventions
that atomics should be word aligned (i.e., can't be byte aligned)
and should not be misaligned such that a given lane's access
spans multiple cache lines.

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