gpu-compute: Use dict.get syntax for accessing buildEnv keys
authorKyle Roarty <kyleroarty1716@gmail.com>
Mon, 30 Nov 2020 20:41:59 +0000 (14:41 -0600)
committerKyle Roarty <kyleroarty1716@gmail.com>
Tue, 1 Dec 2020 19:19:52 +0000 (19:19 +0000)
commite49a072c7d632e8f4b533d7e478b740969e61235
tree5ee937d3c523b2d18cc1611ff57b1ade8e42cb65
parent0bb385941b1b4bda9e3d73e76be41b2cc10bdf8a
gpu-compute: Use dict.get syntax for accessing buildEnv keys

37775 removed SmartDict, which is the type buildEnv used to be.
Because of that change, doing buildEnv[key] with a key not in the dict
returns KeyError instead of False. By using buildEnv(key, False), we are
able to return False when the key isn't in the dict.

Change-Id: I4aae29b95b082efb2b021f21d608f9cd1c196379
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38135
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matthew Poremba <matthew.poremba@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/gpu-compute/X86GPUTLB.py