mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
sh7750: handle MMUCR TI bit
When the MMUCR TI bit is set, all the UTLB and ITLB entries should be flushed. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
434254aa5f
commit
e0bcb9ca36
3 changed files with 25 additions and 2 deletions
|
@ -396,8 +396,11 @@ static void sh7750_mem_writel(void *opaque, target_phys_addr_t addr,
|
|||
portb_changed(s, temp);
|
||||
return;
|
||||
case SH7750_MMUCR_A7:
|
||||
s->cpu->mmucr = mem_value;
|
||||
return;
|
||||
if (mem_value & MMUCR_TI) {
|
||||
cpu_sh4_invalidate_tlb(s->cpu);
|
||||
}
|
||||
s->cpu->mmucr = mem_value & ~MMUCR_TI;
|
||||
return;
|
||||
case SH7750_PTEH_A7:
|
||||
/* If asid changes, clear all registered tlb entries. */
|
||||
if ((s->cpu->pteh & 0xff) != (mem_value & 0xff))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue