Revision fcb4a419 target-mips/op.c

b/target-mips/op.c
1270 1270

  
1271 1271
void op_mtc0_index (void)
1272 1272
{
1273
    env->CP0_Index = (env->CP0_Index & 0x80000000) | (T0 & (MIPS_TLB_NB - 1));
1273
    env->CP0_Index = (env->CP0_Index & 0x80000000) | (T0 % env->nb_tlb);
1274 1274
    RETURN();
1275 1275
}
1276 1276

  
......
1314 1314

  
1315 1315
void op_mtc0_wired (void)
1316 1316
{
1317
    env->CP0_Wired = T0 & (MIPS_TLB_NB - 1);
1317
    env->CP0_Wired = T0 % env->nb_tlb;
1318 1318
    RETURN();
1319 1319
}
1320 1320

  

Also available in: Unified diff