From 6655161037824ca9dbef696a8fda3700b250e8bf Mon Sep 17 00:00:00 2001 From: "Chow, Marcus" Date: Tue, 20 Nov 2018 17:20:54 -0500 Subject: [PATCH] arch-gcn3: Add case to op selector when operand is vcc_hi Change-Id: Ib8846656e18aad04ccb8c9112bc629c69078fe36 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29971 Maintainer: Anthony Gutierrez Tested-by: kokoro Reviewed-by: Matt Sinclair --- src/arch/gcn3/registers.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/gcn3/registers.cc b/src/arch/gcn3/registers.cc index 016160f54..d5c4903b0 100644 --- a/src/arch/gcn3/registers.cc +++ b/src/arch/gcn3/registers.cc @@ -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 -- 2.30.2