diff options
| author | Mahmoud <[email protected]> | 2019-08-30 18:44:02 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-08-30 18:44:02 -0400 |
| commit | 7d1a848b4807aa1f8ed2bb0478f0a53bf09dcee7 (patch) | |
| tree | b9413a262e9281c0adc8d5693966e5447b461c06 /src/gpgpu-sim/gpu-cache.h | |
| parent | a168a2c7224ea59c9ea7523be1f46893531bdc63 (diff) | |
| parent | 93597743b24b7d7726096d337e6c9c4516cb2273 (diff) | |
Merge branch 'dev-nvidia' into dev-private
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 6f39221..b7d0400 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -656,6 +656,11 @@ public: assert( m_valid ); return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * m_nset * original_m_assoc; } + unsigned get_max_assoc() const + { + assert( m_valid ); + return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * original_m_assoc; + } void print( FILE *fp ) const { fprintf( fp, "Size = %d B (%d Set x %d-way x %d byte line)\n", |
