Port clear_tlb
This commit is contained in:
parent
dcde1db73a
commit
42351c527a
|
@ -215,7 +215,6 @@ function V86Starter(options)
|
|||
"_cpl_changed": function() { return cpu.cpl_changed.apply(cpu, arguments); },
|
||||
"_set_cr0": function() { return cpu.set_cr0.apply(cpu, arguments); },
|
||||
"_update_cs_size": function() { return cpu.update_cs_size.apply(cpu, arguments); },
|
||||
"_clear_tlb": function() { return cpu.clear_tlb.apply(cpu, arguments); },
|
||||
"_cpuid": function() { return cpu.cpuid.apply(cpu, arguments); },
|
||||
|
||||
"_load_ldt": function() { return cpu.load_ldt.apply(cpu, arguments); },
|
||||
|
|
|
@ -570,3 +570,11 @@ void write_e32(int32_t value)
|
|||
reg32s[*modrm_byte & 7] = value;
|
||||
}
|
||||
}
|
||||
|
||||
void clear_tlb()
|
||||
{
|
||||
for(int32_t i = 0; i < 0x100000; i += 4)
|
||||
{
|
||||
*(int32_t*)(tlb_info + i) = *(int32_t*)(tlb_info_global + i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue