From: Chow, Marcus Date: Tue, 20 Nov 2018 22:20:54 +0000 (-0500) Subject: arch-gcn3: Add case to op selector when operand is vcc_hi X-Git-Tag: v20.1.0.0~423 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6655161037824ca9dbef696a8fda3700b250e8bf;p=gem5.git 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 --- 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