From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZOPR-0007GY-Fy for qemu-devel@nongnu.org; Sat, 21 Mar 2015 14:46:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZOPQ-0007ZK-N1 for qemu-devel@nongnu.org; Sat, 21 Mar 2015 14:46:09 -0400 Sender: Paolo Bonzini Message-ID: <550DBC66.1070803@redhat.com> Date: Sat, 21 Mar 2015 19:45:58 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <550D8014.2020000@redhat.com> <1426958949-2729-1-git-send-email-cota@braap.org> In-Reply-To: <1426958949-2729-1-git-send-email-cota@braap.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-i386: remove superfluous TARGET_HAS_SMC macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org On 21/03/2015 18:29, Emilio G. Cota wrote: > Suggested-by: Paolo Bonzini > Signed-off-by: Emilio G. Cota > --- > target-i386/cpu.h | 2 -- > translate-all.c | 4 ---- > 2 files changed, 6 deletions(-) > > diff --git a/target-i386/cpu.h b/target-i386/cpu.h > index 15db6d7..4ee12ca 100644 > --- a/target-i386/cpu.h > +++ b/target-i386/cpu.h > @@ -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 > diff --git a/translate-all.c b/translate-all.c > index 9f47ce7..11763c6 100644 > --- a/translate-all.c > +++ b/translate-all.c > @@ -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 > Reviewed-by: Paolo Bonzini