Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/device/cpu.cfa

    ra8b0618 r45fde9f  
    253253        }
    254254
    255         #if defined(__CFA_WITH_VERIFY__)
    256                 // Check widths are consistent
    257                 for(i; 1~cpus) {
    258                         for(j; cache_levels) {
    259                                 verify(raw[0][j].width == raw[i][j].width);
    260                         }
    261                 }
    262         #endif
    263 
    264255        return raw;
    265256}
     
    349340                [maps, map_cnt] =  distinct_llcs(cpus, cache_levels - llc, raw);
    350341
    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
    352352
    353353                // Get mappings from cpu to cache instance
Note: See TracChangeset for help on using the changeset viewer.