diff options
Diffstat (limited to 'arch/sh/mm/fault_64.c')
-rw-r--r-- | arch/sh/mm/fault_64.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/sh/mm/fault_64.c b/arch/sh/mm/fault_64.c index bd63b961b2a9..2b356cec2489 100644 --- a/arch/sh/mm/fault_64.c +++ b/arch/sh/mm/fault_64.c | |||
@@ -56,16 +56,7 @@ inline void __do_tlb_refill(unsigned long address, | |||
56 | /* | 56 | /* |
57 | * Set PTEH register | 57 | * Set PTEH register |
58 | */ | 58 | */ |
59 | pteh = address & MMU_VPN_MASK; | 59 | pteh = neff_sign_extend(address & MMU_VPN_MASK); |
60 | |||
61 | /* Sign extend based on neff. */ | ||
62 | #if (NEFF == 32) | ||
63 | /* Faster sign extension */ | ||
64 | pteh = (unsigned long long)(signed long long)(signed long)pteh; | ||
65 | #else | ||
66 | /* General case */ | ||
67 | pteh = (pteh & NEFF_SIGN) ? (pteh | NEFF_MASK) : pteh; | ||
68 | #endif | ||
69 | 60 | ||
70 | /* Set the ASID. */ | 61 | /* Set the ASID. */ |
71 | pteh |= get_asid() << PTEH_ASID_SHIFT; | 62 | pteh |= get_asid() << PTEH_ASID_SHIFT; |