Ignore:
Timestamp:
Oct 4, 2014, 3:16:21 PM (10 years ago)
Author:
alain
Message:

Introducing fixed format (X_WIDTH / Y_WIDTH / P_WIDTH ) for processor index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/ioc_driver.c

    r413 r426  
    9494#if GIET_DEBUG_IOC_DRIVER
    9595unsigned int procid  = _get_procid();
    96 unsigned int cid     = procid / NB_PROCS_MAX;
    97 unsigned int lpid    = procid % NB_PROCS_MAX;
    98 unsigned int x       = cid >> Y_WIDTH;
    99 unsigned int y       = cid & ((1<<Y_WIDTH) - 1);
    100 
     96unsigned int x       = procid >> (Y_WIDTH + P_WIDTH);
     97unsigned int y       = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1);
     98unsigned int p       = procid & ((1<<P_WIDTH)-1);
    10199_printf("\n[IOC DEBUG] _ioc_access() : P[%d,%d,%d] enters at cycle %d\n"
    102100        " - channel  = %d\n"
     
    105103        " - sectors  = %d\n"
    106104        " - lba      = %x\n",
    107         x, y, lpid, _get_proctime(), channel, mode, buf_vaddr, count, lba );
     105        x, y, p, _get_proctime(), channel, mode, buf_vaddr, count, lba );
    108106#endif
    109107
Note: See TracChangeset for help on using the changeset viewer.