From d7083448e79e446b52b42b9dbf31d49e3ac506ff Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 7 Dec 2020 04:23:39 -0800 Subject: [PATCH] arch: Fix the code that computes MaxMiscDestReg. This code was simplified a little while ago, and the wrong variable name was used in that computation accidentally. Fortunately the "wrong" value would be too large, and so nothing bad would happen except a pair of arrays would be overly large in the O3 instruction class. Change-Id: I9694f1a8c79a62a172ef63bdd2f98fa0ace06acd Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38383 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/arch/isa_parser/operand_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/isa_parser/operand_list.py b/src/arch/isa_parser/operand_list.py index 12a23d906..cea3ae405 100755 --- a/src/arch/isa_parser/operand_list.py +++ b/src/arch/isa_parser/operand_list.py @@ -135,7 +135,7 @@ class OperandList(object): parser.maxInstSrcRegs = max(parser.maxInstSrcRegs, self.numSrcRegs) parser.maxInstDestRegs = max(parser.maxInstDestRegs, self.numDestRegs) - parser.maxMiscDestRegs = max(parser.maxInstDestRegs, + parser.maxMiscDestRegs = max(parser.maxMiscDestRegs, self.numMiscDestRegs) # now make a final pass to finalize op_desc fields that may depend -- 2.30.2