From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9qJ4-0004Cf-B3 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9qIy-0004E0-VB for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:54:46 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9qIy-0004Du-OS for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:54:40 -0400 Received: by mail-wm0-x235.google.com with SMTP id n184so81225194wmn.1 for ; Mon, 06 Jun 2016 01:54:40 -0700 (PDT) From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <575457DD.6070106@gmail.com> Date: Mon, 06 Jun 2016 09:54:53 +0100 Message-ID: <87h9d6itnm.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v1 09/12] translate-all: introduces tb_flush_safe. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: mttcg@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, qemu-devel@nongnu.org, mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite Sergey Fedorov writes: > On 15/04/16 17:23, Alex Bennée wrote: >> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h >> index f695577..858055b 100644 >> --- a/include/exec/exec-all.h >> +++ b/include/exec/exec-all.h >> @@ -307,6 +307,7 @@ struct TBContext { >> >> void tb_free(TranslationBlock *tb); >> void tb_flush(CPUState *cpu); >> +void tb_flush_safe(CPUState *cpu); > > Do we really want to have both tb_flush_safe() and tb_flush()? I guess if we are going to include user-mode in the party ;-) > > Kind regards, > Sergey > >> void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr); >> >> #if defined(USE_DIRECT_JUMP) -- Alex Bennée