Ignore:
Timestamp:
Jun 15, 2021, 4:46:07 PM (3 years ago)
Author:
m3zulfiq <m3zulfiq@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    rcb5c392 r27c9767  
    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.