Changeset 72b5805e for tests/device


Ignore:
Timestamp:
Oct 19, 2022, 3:11:43 PM (19 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
d1abc63c
Parents:
77de429
Message:

Fixed device/cpu to support systems without caches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/device/cpu.cfa

    r77de429 r72b5805e  
    117117unsigned find_idx() {
    118118        int idxs = count_cache_indexes();
     119        if( 0 == idxs ) return 0;
    119120
    120121        unsigned found_level = 0;
     
    179180        unsigned idx = find_idx();
    180181        // For all procs check mapping is consistent
    181         for(cpu_me; cpu_info.hthrd_count) {
     182        if( idx > 0 ) for(cpu_me; cpu_info.hthrd_count) {
    182183                char buf_me[32];
    183184                size_t len_me = read_cpuidxinfo_into(cpu_me, idx, "shared_cpu_list", buf_me, 32);
Note: See TracChangeset for help on using the changeset viewer.