arch,cpu: Replace StaticInst::_num${TYPE}DestRegs members with an array.
The array is indexed using the register class. Change-Id: I6cfd9735afa03e386e01e9e255fd6e55b7ba7272 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49712 Maintainer: Gabe Black <gabe.black@gmail.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -400,14 +400,6 @@ class InstObjParams(object):
|
||||
# The header of the constructor declares the variables to be used
|
||||
# in the body of the constructor.
|
||||
header = ''
|
||||
header += '\n\t_numSrcRegs = 0;'
|
||||
header += '\n\t_numDestRegs = 0;'
|
||||
header += '\n\t_numFPDestRegs = 0;'
|
||||
header += '\n\t_numVecDestRegs = 0;'
|
||||
header += '\n\t_numVecElemDestRegs = 0;'
|
||||
header += '\n\t_numVecPredDestRegs = 0;'
|
||||
header += '\n\t_numIntDestRegs = 0;'
|
||||
header += '\n\t_numCCDestRegs = 0;'
|
||||
|
||||
self.constructor = header + \
|
||||
self.operands.concatAttrStrings('constructor')
|
||||
|
||||
Reference in New Issue
Block a user