Full MIPS64 MMU implementation, by Aurelien Jarno.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2820 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2007-05-13 19:22:13 +00:00
parent f1b0aa5de7
commit 100ce98812
3 changed files with 53 additions and 7 deletions

View file

@ -1317,8 +1317,10 @@ void op_mtc0_entryhi (void)
target_ulong old, val;
/* 1k pages not implemented */
/* Ignore MIPS64 TLB for now */
val = (target_ulong)(int32_t)T0 & ~(target_ulong)0x1F00;
val = T0 & ((TARGET_PAGE_MASK << 1) | 0xFF);
#ifdef TARGET_MIPS64
val = T0 & 0xC00000FFFFFFFFFFULL;
#endif
old = env->CP0_EntryHi;
env->CP0_EntryHi = val;
/* If the ASID changes, flush qemu's TLB. */