summaryrefslogtreecommitdiff
path: root/src/gpu-compute/fetch_unit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu-compute/fetch_unit.cc')
-rw-r--r--src/gpu-compute/fetch_unit.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu-compute/fetch_unit.cc b/src/gpu-compute/fetch_unit.cc
index 1b19a3223..9a059f7fc 100644
--- a/src/gpu-compute/fetch_unit.cc
+++ b/src/gpu-compute/fetch_unit.cc
@@ -132,10 +132,10 @@ FetchUnit::initiateFetch(Wavefront *wavefront)
// Since this is an instruction prefetch, if you're split then just finish
// out the current line.
- unsigned block_size = RubySystem::getBlockSizeBytes();
+ int block_size = computeUnit->cacheLineSize();
// check for split accesses
Addr split_addr = roundDown(vaddr + block_size - 1, block_size);
- unsigned size = block_size;
+ int size = block_size;
if (split_addr > vaddr) {
// misaligned access, just grab the rest of the line