Revision 925fd0f2 target-mips/helper.c

b/target-mips/helper.c
41 41
static int map_address (CPUState *env, target_ulong *physical, int *prot,
42 42
                        target_ulong address, int rw, int access_type)
43 43
{
44
    uint8_t ASID = env->CP0_EntryHi & 0xFF;
44 45
    int i;
45 46

  
46 47
    for (i = 0; i < env->tlb_in_use; i++) {
47 48
        tlb_t *tlb = &env->tlb[i];
48 49
        /* 1k pages are not supported. */
49
        uint8_t ASID = env->CP0_EntryHi & 0xFF;
50 50
        target_ulong mask = tlb->PageMask | 0x1FFF;
51 51
        target_ulong tag = address & ~mask;
52 52
        int n;

Also available in: Unified diff