int clroffset = 2;
if (xlen == 64)
{
- state.sv_csrs[tbidx+2].u = get_field(val, 0xffff<<32);
- state.sv_csrs[tbidx+3].u = get_field(val, 0xffff<<48);
+ state.sv_csrs[tbidx+2].u = get_field(val, 0xffffUL<<32);
+ state.sv_csrs[tbidx+3].u = get_field(val, 0xffffUL<<48);
clroffset = 4;
}
// clear out all CSRs above the one(s) being set: this ensures that
int clroffset = 2;
if (xlen == 64)
{
- state.sv_pred_csrs[tbidx+2].u = get_field(val, 0xffff<<32);
- state.sv_pred_csrs[tbidx+3].u = get_field(val, 0xffff<<48);
+ state.sv_pred_csrs[tbidx+2].u = get_field(val, 0xffffUL<<32);
+ state.sv_pred_csrs[tbidx+3].u = get_field(val, 0xffffUL<<48);
clroffset = 4;
}
for (int i = tbidx+clroffset; i < 16; i++)