* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Anthony Gutierrez
*/
#ifndef __ARCH_HSAIL_GPU_ISA_HH__
#include <cstdint>
-#include "base/misc.hh"
+#include "arch/hsail/gpu_types.hh"
+#include "base/logging.hh"
+#include "base/types.hh"
#include "gpu-compute/misc.hh"
-class Wavefront;
-
namespace HsailISA
{
- typedef uint64_t MiscReg;
-
class GPUISA
{
public:
- GPUISA(Wavefront &wf) : wavefront(wf)
+ GPUISA()
{
}
void
- writeMiscReg(int opIdx, MiscReg operandVal)
+ writeMiscReg(int opIdx, RegVal operandVal)
{
fatal("HSAIL does not implement misc registers yet\n");
}
- MiscReg
+ RegVal
readMiscReg(int opIdx) const
{
fatal("HSAIL does not implement misc registers yet\n");
uint32_t
advancePC(uint32_t old_pc, GPUDynInstPtr gpuDynInst)
{
- return old_pc + 1;
+ return old_pc + sizeof(RawMachInst);
}
-
- private:
- Wavefront &wavefront;
};
}