gpu-compute, hsail: pass GPUDynInstPtr to getRegisterIndex()
Review Request #3654 - Created Oct. 10, 2016 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11681:ffd318a89635 --------------------------- gpu-compute, hsail: pass GPUDynInstPtr to getRegisterIndex() for HSAIL an operand's indices into the register files may be calculated trivially, because the operands are always read from a register file, or are an immediate. for machine ISA, however, an op selector may specify special registers, or may specify special SGPRs with an alias op selector value. the location of some of the special registers values are dependent on the size of the RF in some cases. here we add a way for the underlying getRegisterIndex() method to know about the size of the RFs, so that it may find the relative positions of the special register values.
Posted (Oct. 18, 2016, 3:17 p.m.)
Any comments? I'm planning on shipping this soon.
