aboutsummaryrefslogtreecommitdiff
path: root/exec-all.h
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 /exec-all.h
parent2c8e03018571246e9c332a68ad7c89d2949155ab (diff)
downloadqemu-4b7df22f91dd314bd99f9f8f163600587434341f.zip
qemu-4b7df22f91dd314bd99f9f8f163600587434341f.tar.gz
qemu-4b7df22f91dd314bd99f9f8f163600587434341f.tar.bz2
added kqemu_set_notdirty()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1549 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/exec-all.h b/exec-all.h
index 5e809b0..0f79214 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