summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 21:39:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 21:39:51 +0000
commit777aca2fd3f7edd6329e343f94401afe99919085 (patch)
tree39441fd516293ec4a53f7aecb45be686147e1a35 /target-i386
parent69e5bc90688361772120a1199e7459b8b72a9998 (diff)
downloadqemu-777aca2fd3f7edd6329e343f94401afe99919085.tar.gz
fixed dirty bit support for 4M pages (L4 Pistachio fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@549 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/helper2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/helper2.c b/target-i386/helper2.c
index 2feccc3459..d5c7727cb1 100644
--- a/target-i386/helper2.c
+++ b/target-i386/helper2.c
@@ -304,7 +304,7 @@ int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr,
/* if PSE bit is set, then we use a 4MB page */
if ((pde & PG_PSE_MASK) && (env->cr[4] & CR4_PSE_MASK)) {
is_dirty = is_write && !(pde & PG_DIRTY_MASK);
- if (!(pde & PG_ACCESSED_MASK)) {
+ if (!(pde & PG_ACCESSED_MASK) || is_dirty) {
pde |= PG_ACCESSED_MASK;
if (is_dirty)
pde |= PG_DIRTY_MASK;
@@ -363,7 +363,7 @@ int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr,
prot |= PROT_WRITE;
}
}
-
+
do_mapping:
pte = pte & a20_mask;