Revision fcb4a419 hw/mips_timer.c
b/hw/mips_timer.c | ||
---|---|---|
10 | 10 |
static uint32_t seed = 0; |
11 | 11 |
uint32_t idx; |
12 | 12 |
seed = seed * 314159 + 1; |
13 |
idx = (seed >> 16) % (MIPS_TLB_NB - env->CP0_Wired) + env->CP0_Wired;
|
|
13 |
idx = (seed >> 16) % (env->nb_tlb - env->CP0_Wired) + env->CP0_Wired;
|
|
14 | 14 |
return idx; |
15 | 15 |
} |
16 | 16 |
|
Also available in: Unified diff