Changes in libcfa/src/device/cpu.cfa [a8b0618:45fde9f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
ra8b0618 r45fde9f 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.