Changeset 27c9767 for libcfa/src/device/cpu.cfa
- Timestamp:
- Jun 15, 2021, 4:46:07 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5e2ed05
- Parents:
- cb5c392 (diff), 45fde9f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
rcb5c392 r27c9767 253 253 } 254 254 255 #if defined(__CFA_WITH_VERIFY__)256 // Check widths are consistent257 for(i; 1~cpus) {258 for(j; cache_levels) {259 verify(raw[0][j].width == raw[i][j].width);260 }261 }262 #endif263 264 255 return raw; 265 256 } … … 349 340 [maps, map_cnt] = distinct_llcs(cpus, cache_levels - llc, raw); 350 341 351 /* paranoid */ verify((map_cnt * raw[0][cache_levels - llc].width) == cpus); 342 #if defined(__CFA_WITH_VERIFY__) 343 { 344 unsigned width = 0; 345 for(i; map_cnt) { 346 const char * _; 347 width += read_width(maps[i], strlen(maps[i]), &_); 348 } 349 verify(width == cpus); 350 } 351 #endif 352 352 353 353 // Get mappings from cpu to cache instance
Note: See TracChangeset
for help on using the changeset viewer.