diff --git a/qemu/target-i386/cpu.h b/qemu/target-i386/cpu.h index 5aec802f..2f8acf97 100644 --- a/qemu/target-i386/cpu.h +++ b/qemu/target-i386/cpu.h @@ -28,8 +28,6 @@ #define TARGET_LONG_BITS 32 #endif -/* target supports implicit self modifying code */ -#define TARGET_HAS_SMC /* support for self modifying code even if the modified instruction is close to the modifying instruction */ #define TARGET_HAS_PRECISE_SMC diff --git a/qemu/translate-all.c b/qemu/translate-all.c index cb6ebd96..bf4e4cf2 100644 --- a/qemu/translate-all.c +++ b/qemu/translate-all.c @@ -1357,8 +1357,6 @@ static inline void tb_alloc_page(struct uc_struct *uc, TranslationBlock *tb, p->first_tb = (TranslationBlock *)((uintptr_t)tb | n); invalidate_page_bitmap(p); -#if defined(TARGET_HAS_SMC) || 1 - #if defined(CONFIG_USER_ONLY) if (p->flags & PAGE_WRITE) { target_ulong addr; @@ -1394,8 +1392,6 @@ static inline void tb_alloc_page(struct uc_struct *uc, TranslationBlock *tb, tlb_protect_code(uc, page_addr); } #endif - -#endif /* TARGET_HAS_SMC */ } void tb_invalidate_phys_page_fast(struct uc_struct* uc, tb_page_addr_t start, int len)