cpu: dev: sim: gpu-compute: Banish some ISA specific register types.

These types are IntReg, FloatReg, FloatRegBits, and MiscReg. There are
some remaining types, specifically the vector registers and the CCReg.
I'm less familiar with these new types of registers, and so will look
at getting rid of them at some later time.

Change-Id: Ide8f76b15c531286f61427330053b44074b8ac9b
Reviewed-on: https://gem5-review.googlesource.com/c/13624
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-10-13 00:54:32 -07:00
parent 0c4515ce1f
commit cf0f625b47
26 changed files with 478 additions and 389 deletions

View File

@@ -37,6 +37,7 @@
#define __GPU_EXEC_CONTEXT_HH__
#include "arch/gpu_isa.hh"
#include "base/types.hh"
#include "config/the_gpu_isa.hh"
class ComputeUnit;
@@ -49,8 +50,8 @@ class GPUExecContext
Wavefront* wavefront();
ComputeUnit* computeUnit();
TheGpuISA::MiscReg readMiscReg(int opIdx) const;
void writeMiscReg(int opIdx, TheGpuISA::MiscReg operandVal);
RegVal readMiscReg(int opIdx) const;
void writeMiscReg(int opIdx, RegVal operandVal);
protected:
ComputeUnit *cu;