aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-21 09:37:35 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-21 09:37:35 +0000
commit4b7df22f91dd314bd99f9f8f163600587434341f (patch)
tree6dfa800c5bc0bc3aa8ccfe40e6e14b9b0da2e1c3
parent2c8e03018571246e9c332a68ad7c89d2949155ab (diff)
added kqemu_set_notdirty()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1549 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--exec-all.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/exec-all.h b/exec-all.h
index 5e809b0b78..0f7921465a 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -572,7 +572,6 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr)
/* NOTE: this function can trigger an exception */
/* NOTE2: the returned address is not exactly the physical address: it
is the offset relative to phys_ram_base */
-/* XXX: i386 target specific */
static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr)
{
int is_user, index, pd;
@@ -607,6 +606,7 @@ int kqemu_init(CPUState *env);
int kqemu_cpu_exec(CPUState *env);
void kqemu_flush_page(CPUState *env, target_ulong addr);
void kqemu_flush(CPUState *env, int global);
+void kqemu_set_notdirty(CPUState *env, ram_addr_t ram_addr);
static inline int kqemu_is_ok(CPUState *env)
{
@@ -615,8 +615,11 @@ static inline int kqemu_is_ok(CPUState *env)
(env->eflags & IOPL_MASK) != IOPL_MASK &&
(env->cr[0] & CR0_PE_MASK) &&
(env->eflags & IF_MASK) &&
- !(env->eflags & VM_MASK) &&
- (env->ldt.limit == 0 || env->ldt.limit == 0x27));
+ !(env->eflags & VM_MASK)
+#if 1
+ && (env->ldt.limit == 0 || env->ldt.limit == 0x27)
+#endif
+ );
}
#endif