target-i386: remove superfluous TARGET_HAS_SMC macro
authorEmilio G. Cota <cota@braap.org>
Sat, 21 Mar 2015 17:29:09 +0000 (13:29 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 4 Apr 2015 06:45:59 +0000 (09:45 +0300)
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>
target-i386/cpu.h
translate-all.c

index 15db6d7abaff5f56256934857b888a3b5259bd0a..4ee12ca2e92d1d66e8df7d869a2b197742ba7b78 100644 (file)
@@ -31,8 +31,6 @@
 /* Maximum instruction code size */
 #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
    close to the modifying instruction */
 #define TARGET_HAS_PRECISE_SMC
index 9f47ce7f71453229f2b299c566b5562193996857..11763c6c3a1cfaf131194aab96e19ca095b51a0d 100644 (file)
@@ -1334,8 +1334,6 @@ static inline void tb_alloc_page(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;
@@ -1371,8 +1369,6 @@ static inline void tb_alloc_page(TranslationBlock *tb,
         tlb_protect_code(page_addr);
     }
 #endif
-
-#endif /* TARGET_HAS_SMC */
 }
 
 /* add a new TB and link it to the physical page tables. phys_page2 is