From b63eb1302b006682bd227a5e236f7b3b95e9b8e8 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Wed, 26 Oct 2016 22:47:49 -0400 Subject: 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. --- src/gpu-compute/condition_register_state.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu-compute/condition_register_state.hh') diff --git a/src/gpu-compute/condition_register_state.hh b/src/gpu-compute/condition_register_state.hh index 139874a66..2d3f5e160 100644 --- a/src/gpu-compute/condition_register_state.hh +++ b/src/gpu-compute/condition_register_state.hh @@ -87,7 +87,7 @@ class ConditionRegisterState } int numRegs() { return c_reg.size(); } - void exec(GPUStaticInst *ii, Wavefront *w); + void exec(GPUDynInstPtr ii, Wavefront *w); private: ComputeUnit* computeUnit; -- cgit v1.2.3