From df41e9ffd3cf6faec2e8d85a44afe8eed4d3c78e Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Mon, 12 Feb 2018 16:41:31 -0500 Subject: [PATCH] target-i386: remove superfluous TARGET_HAS_SMC macro Backports commit 9c04146ad4696b20c440bfbb4a6ab27ea254e7ca from qemu --- qemu/target-i386/cpu.h | 2 -- qemu/translate-all.c | 4 ---- 2 files changed, 6 deletions(-) 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)