From 844fb845a51b15f13c7c744e0d5fdf5567c3da98 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Wed, 26 Oct 2016 22:47:43 -0400 Subject: gpu-compute, hsail: make the PC a byte address, not an instruction index currently the PC is incremented on an instruction granularity, and not as an instruction's byte address. machine ISA instructions assume the PC is a byte address, and is incremented accordingly. here we make the GPU model, and the HSAIL instructions treat the PC as a byte address as well. --- src/gpu-compute/kernel_cfg.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu-compute/kernel_cfg.hh') diff --git a/src/gpu-compute/kernel_cfg.hh b/src/gpu-compute/kernel_cfg.hh index 74ea861d8..d4959c857 100644 --- a/src/gpu-compute/kernel_cfg.hh +++ b/src/gpu-compute/kernel_cfg.hh @@ -106,7 +106,7 @@ private: GPUStaticInst* lastInstruction(const BasicBlock* block) const; - BasicBlock* basicBlock(int inst_num) const; + BasicBlock* basicBlock(int inst_addr) const; BasicBlock* postDominator(const BasicBlock* block) const; -- cgit v1.2.3