mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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:
parent
f1b0aa5de7
commit
100ce98812
3 changed files with 53 additions and 7 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue