summaryrefslogtreecommitdiff
path: root/src/gpu-compute
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:01 -0400
committerTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:01 -0400
commit0a6cdff1760572bfa3cf9dffaa4a0df9fb4ae6a4 (patch)
tree10f143a01235d41e898ab03383a3b188e28be3e6 /src/gpu-compute
parentc7d4afd878ac37ff7d1b72628e98d6337f0a4441 (diff)
downloadgem5-0a6cdff1760572bfa3cf9dffaa4a0df9fb4ae6a4.tar.xz
gpu-compute, arch: add some methods to the base inst classes for ISA support
Diffstat (limited to 'src/gpu-compute')
-rw-r--r--src/gpu-compute/gpu_static_inst.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu-compute/gpu_static_inst.hh b/src/gpu-compute/gpu_static_inst.hh
index c1de28427..447e1efa3 100644
--- a/src/gpu-compute/gpu_static_inst.hh
+++ b/src/gpu-compute/gpu_static_inst.hh
@@ -84,6 +84,8 @@ class GPUStaticInst
virtual int numDstRegOperands() = 0;
virtual int numSrcRegOperands() = 0;
+ virtual bool isValid() const = 0;
+
/*
* Most instructions (including all HSAIL instructions)
* are vector ops, so _scalarOp will be false by default.
@@ -109,6 +111,13 @@ class GPUStaticInst
fatal("calling initiateAcc() on a non-memory instruction.\n");
}
+ // only used for memory instructions
+ virtual void
+ completeAcc(GPUDynInstPtr gpuDynInst)
+ {
+ fatal("calling completeAcc() on a non-memory instruction.\n");
+ }
+
virtual uint32_t getTargetPc() { return 0; }
/**