gpu-compute: replace uint32_t* casts with bits API calls
authorKyle Roarty <kyleroarty1716@gmail.com>
Wed, 16 Sep 2020 21:58:05 +0000 (16:58 -0500)
committerKyle Roarty <kyleroarty1716@gmail.com>
Thu, 24 Sep 2020 14:53:16 +0000 (14:53 +0000)
commit347d7644ebf3032c3afd1f2624f21ab24b72f289
tree5895807452180f37f93ad924e318e90005ca81d9
parent87328c2fc15746ed50619d7c1785ae737e04cb54
gpu-compute: replace uint32_t* casts with bits API calls

The uint32_t* casting was challenging to fully understand what was
being done at a glance. Replaced with calls to various bits functions
as it's functionally equivalent and much more clear.

This also fixes a segfault in GPUInitAbi DPRINTFs from a mis-typed
uint32_t* cast.

Change-Id: Id5d1863942848dd7a9e5e17e8180c33adbc72f15
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34677
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/gpu-compute/fetch_unit.cc
src/gpu-compute/wavefront.cc