target-i386: remove superfluous TARGET_HAS_SMC macro

Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Emilio G. Cota 2015-03-21 13:29:09 -04:00 committed by Michael Tokarev
parent ecf2e5a46d
commit 9c04146ad4
2 changed files with 0 additions and 6 deletions

View File

@ -31,8 +31,6 @@
/* Maximum instruction code size */ /* Maximum instruction code size */
#define TARGET_MAX_INSN_SIZE 16 #define TARGET_MAX_INSN_SIZE 16
/* target supports implicit self modifying code */
#define TARGET_HAS_SMC
/* support for self modifying code even if the modified instruction is /* support for self modifying code even if the modified instruction is
close to the modifying instruction */ close to the modifying instruction */
#define TARGET_HAS_PRECISE_SMC #define TARGET_HAS_PRECISE_SMC

View File

@ -1334,8 +1334,6 @@ static inline void tb_alloc_page(TranslationBlock *tb,
p->first_tb = (TranslationBlock *)((uintptr_t)tb | n); p->first_tb = (TranslationBlock *)((uintptr_t)tb | n);
invalidate_page_bitmap(p); invalidate_page_bitmap(p);
#if defined(TARGET_HAS_SMC) || 1
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
if (p->flags & PAGE_WRITE) { if (p->flags & PAGE_WRITE) {
target_ulong addr; target_ulong addr;
@ -1371,8 +1369,6 @@ static inline void tb_alloc_page(TranslationBlock *tb,
tlb_protect_code(page_addr); tlb_protect_code(page_addr);
} }
#endif #endif
#endif /* TARGET_HAS_SMC */
} }
/* add a new TB and link it to the physical page tables. phys_page2 is /* add a new TB and link it to the physical page tables. phys_page2 is