Commit 4b7df22f91dd314bd99f9f8f163600587434341f
1 parent
2c8e0301
added kqemu_set_notdirty()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1549 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
3 deletions
exec-all.h
... | ... | @@ -572,7 +572,6 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr) |
572 | 572 | /* NOTE: this function can trigger an exception */ |
573 | 573 | /* NOTE2: the returned address is not exactly the physical address: it |
574 | 574 | is the offset relative to phys_ram_base */ |
575 | -/* XXX: i386 target specific */ | |
576 | 575 | static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr) |
577 | 576 | { |
578 | 577 | int is_user, index, pd; |
... | ... | @@ -607,6 +606,7 @@ int kqemu_init(CPUState *env); |
607 | 606 | int kqemu_cpu_exec(CPUState *env); |
608 | 607 | void kqemu_flush_page(CPUState *env, target_ulong addr); |
609 | 608 | void kqemu_flush(CPUState *env, int global); |
609 | +void kqemu_set_notdirty(CPUState *env, ram_addr_t ram_addr); | |
610 | 610 | |
611 | 611 | static inline int kqemu_is_ok(CPUState *env) |
612 | 612 | { |
... | ... | @@ -615,8 +615,11 @@ static inline int kqemu_is_ok(CPUState *env) |
615 | 615 | (env->eflags & IOPL_MASK) != IOPL_MASK && |
616 | 616 | (env->cr[0] & CR0_PE_MASK) && |
617 | 617 | (env->eflags & IF_MASK) && |
618 | - !(env->eflags & VM_MASK) && | |
619 | - (env->ldt.limit == 0 || env->ldt.limit == 0x27)); | |
618 | + !(env->eflags & VM_MASK) | |
619 | +#if 1 | |
620 | + && (env->ldt.limit == 0 || env->ldt.limit == 0x27) | |
621 | +#endif | |
622 | + ); | |
620 | 623 | } |
621 | 624 | |
622 | 625 | #endif | ... | ... |