summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authorAhmad Alawneh <[email protected]>2023-06-12 22:09:59 -0400
committerAhmad Alawneh <[email protected]>2023-06-12 22:09:59 -0400
commit40beac66a57f9477dd03369b79a26f9823f089ff (patch)
treecf288293ca11952c357de37557b0b58580681e24 /src/gpgpu-sim/gpu-cache.h
parentcb565024f23f1ab6b11d3717967b559aa49f3333 (diff)
no return warnings ngs fix
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index 4bbf7e2..9a4856b 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -499,6 +499,7 @@ struct sector_cache_block : public cache_block_t {
for (unsigned i = 0; i < SECTOR_CHUNCK_SIZE; ++i) {
if (sector_mask.to_ulong() & (1 << i)) return i;
}
+ return SECTOR_CHUNCK_SIZE; //error
}
};