// Now, create Write Mask for ProcID register
RegVal procIDMask = 0; // Read-Only register
- replaceBits(procIDMask, 0, 32, 0);
+ replaceBits(procIDMask, 32, 0, 0);
setRegMask(MISCREG_PRID, procIDMask);
// Config
setMiscRegNoEffect(MISCREG_CONFIG, cfg);
// Now, create Write Mask for Config register
RegVal cfg_Mask = 0x7FFF0007;
- replaceBits(cfg_Mask, 0, 32, 0);
+ replaceBits(cfg_Mask, 32, 0, 0);
setRegMask(MISCREG_CONFIG, cfg_Mask);
// Config1
setMiscRegNoEffect(MISCREG_CONFIG1, cfg1);
// Now, create Write Mask for Config register
RegVal cfg1_Mask = 0; // Read Only Register
- replaceBits(cfg1_Mask, 0, 32, 0);
+ replaceBits(cfg1_Mask, 32,0 , 0);
setRegMask(MISCREG_CONFIG1, cfg1_Mask);
// Config2
setMiscRegNoEffect(MISCREG_CONFIG2, cfg2);
// Now, create Write Mask for Config register
RegVal cfg2_Mask = 0x7000F000; // Read Only Register
- replaceBits(cfg2_Mask, 0, 32, 0);
+ replaceBits(cfg2_Mask, 32, 0, 0);
setRegMask(MISCREG_CONFIG2, cfg2_Mask);
// Config3
setMiscRegNoEffect(MISCREG_CONFIG3, cfg3);
// Now, create Write Mask for Config register
RegVal cfg3_Mask = 0; // Read Only Register
- replaceBits(cfg3_Mask, 0, 32, 0);
+ replaceBits(cfg3_Mask, 32,0 , 0);
setRegMask(MISCREG_CONFIG3, cfg3_Mask);
// EBase - CPUNum
// Now, create Write Mask for Config register
RegVal EB_Mask = 0x3FFFF000;// Except Exception Base, the
// entire register is read only
- replaceBits(EB_Mask, 0, 32, 0);
+ replaceBits(EB_Mask, 32, 0, 0);
setRegMask(MISCREG_EBASE, EB_Mask);
// SRS Control - HSS (Highest Shadow Set)
setMiscRegNoEffect(MISCREG_SRSCTL, scsCtl);
// Now, create Write Mask for the SRS Ctl register
RegVal SC_Mask = 0x0000F3C0;
- replaceBits(SC_Mask, 0, 32, 0);
+ replaceBits(SC_Mask, 32, 0, 0);
setRegMask(MISCREG_SRSCTL, SC_Mask);
// IntCtl - IPTI, IPPCI
setMiscRegNoEffect(MISCREG_INTCTL, intCtl);
// Now, create Write Mask for the IntCtl register
RegVal IC_Mask = 0x000003E0;
- replaceBits(IC_Mask, 0, 32, 0);
+ replaceBits(IC_Mask, 32, 0, 0);
setRegMask(MISCREG_INTCTL, IC_Mask);
// Watch Hi - M - FIXME (More than 1 Watch register)
setMiscRegNoEffect(MISCREG_WATCHHI0, watchHi);
// Now, create Write Mask for the IntCtl register
RegVal wh_Mask = 0x7FFF0FFF;
- replaceBits(wh_Mask, 0, 32, 0);
+ replaceBits(wh_Mask, 32, 0, 0);
setRegMask(MISCREG_WATCHHI0, wh_Mask);
// Perf Ctr - M - FIXME (More than 1 PerfCnt Pair)
setMiscRegNoEffect(MISCREG_PERFCNT0, perfCntCtl);
// Now, create Write Mask for the IntCtl register
RegVal pc_Mask = 0x00007FF;
- replaceBits(pc_Mask, 0, 32, 0);
+ replaceBits(pc_Mask, 32, 0, 0);
setRegMask(MISCREG_PERFCNT0, pc_Mask);
// Random
setMiscRegNoEffect(MISCREG_CP0_RANDOM, 63);
// Now, create Write Mask for the IntCtl register
RegVal random_Mask = 0;
- replaceBits(random_Mask, 0, 32, 0);
+ replaceBits(random_Mask, 32, 0, 0);
setRegMask(MISCREG_CP0_RANDOM, random_Mask);
// PageGrain
setMiscRegNoEffect(MISCREG_PAGEGRAIN, pageGrain);
// Now, create Write Mask for the IntCtl register
RegVal pg_Mask = 0x10000000;
- replaceBits(pg_Mask, 0, 32, 0);
+ replaceBits(pg_Mask, 32, 0, 0);
setRegMask(MISCREG_PAGEGRAIN, pg_Mask);
// Status
setMiscRegNoEffect(MISCREG_STATUS, status);
// Now, create Write Mask for the Status register
RegVal stat_Mask = 0xFF78FF17;
- replaceBits(stat_Mask, 0, 32, 0);
+ replaceBits(stat_Mask, 32, 0, 0);
setRegMask(MISCREG_STATUS, stat_Mask);
RegVal mask = 0x7FFFFFFF;
// Now, create Write Mask for the Index register
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_INDEX, mask);
mask = 0x3FFFFFFF;
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_ENTRYLO0, mask);
setRegMask(MISCREG_ENTRYLO1, mask);
mask = 0xFF800000;
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_CONTEXT, mask);
mask = 0x1FFFF800;
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_PAGEMASK, mask);
mask = 0x0;
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_BADVADDR, mask);
setRegMask(MISCREG_LLADDR, mask);
mask = 0x08C00300;
- replaceBits(mask, 0, 32, 0);
+ replaceBits(mask, 32, 0, 0);
setRegMask(MISCREG_CAUSE, mask);
}