gpu-compute, hsail: make the PC a byte address, not an instruction index
authorTony Gutierrez <anthony.gutierrez@amd.com>
Thu, 27 Oct 2016 02:47:43 +0000 (22:47 -0400)
committerTony Gutierrez <anthony.gutierrez@amd.com>
Thu, 27 Oct 2016 02:47:43 +0000 (22:47 -0400)
commit844fb845a51b15f13c7c744e0d5fdf5567c3da98
tree407cd19c909cdf3cd4da7947ad86dfbd4470ef68
parentd327cdba078e0956596513b518731e9ec730723f
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/arch/hsail/gpu_isa.hh
src/arch/hsail/gpu_types.hh
src/arch/hsail/insts/branch.hh
src/arch/hsail/insts/gpu_static_inst.hh
src/gpu-compute/cl_driver.cc
src/gpu-compute/fetch_unit.cc
src/gpu-compute/gpu_static_inst.cc
src/gpu-compute/gpu_static_inst.hh
src/gpu-compute/hsail_code.cc
src/gpu-compute/kernel_cfg.cc
src/gpu-compute/kernel_cfg.hh