Ignore:
Timestamp:
Apr 1, 2016, 2:23:41 PM (8 years ago)
Author:
bouyer
Message:

Deal with x_width/y_width different from 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_common/pmem.c

    r794 r815  
    7474    p->nxt_bppi = bpi + n;
    7575
    76     return (x << 24) + (y << 20) + (bpi << 9);
     76    return (x << (20 + Y_WIDTH)) + (y << 20) + (bpi << 9);
    7777
    7878} // end get_big_ppn()
     
    115115    p->nxt_sppi = p->nxt_sppi + n;
    116116
    117     return (x << 24) + (y << 20) + (bpi << 9) + spi;
     117    return (x << (20 + Y_WIDTH)) + (y << 20) + (bpi << 9) + spi;
    118118
    119119} // end _get_small_ppn()
Note: See TracChangeset for help on using the changeset viewer.