arch-gcn3: Add case to op selector when operand is vcc_hi
authorChow, Marcus <marcus.chow@amd.com>
Tue, 20 Nov 2018 22:20:54 +0000 (17:20 -0500)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Fri, 17 Jul 2020 16:35:44 +0000 (16:35 +0000)
Change-Id: Ib8846656e18aad04ccb8c9112bc629c69078fe36
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29971
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
src/arch/gcn3/registers.cc

index 016160f544f1f5657c499f5162eeb77f812e513d..d5c4903b06e4d325cf57554f58a258229fb09151 100644 (file)
@@ -141,6 +141,8 @@ namespace Gcn3ISA
              *
              */
             regIdx = numScalarRegs - 2;
+        } else if (idx == REG_VCC_HI) {
+            regIdx = numScalarRegs - 1;
         } else if (idx == REG_FLAT_SCRATCH_LO) {
             /**
              * the FLAT_SCRATCH register occupies the two SRF entries