From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTVyS-0004hk-M4 for qemu-devel@nongnu.org; Fri, 07 Jul 2017 12:19:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTVyS-0000Gf-0N for qemu-devel@nongnu.org; Fri, 07 Jul 2017 12:19:20 -0400 Date: Fri, 7 Jul 2017 12:19:13 -0400 From: "Emilio G. Cota" Message-ID: <20170707161913.GA16183@flamenco> References: <149865219962.17063.10630533069463266646.stgit@frigg.lan> <149865801156.17063.15618379976159104550.stgit@frigg.lan> <244b5aab-8863-3139-f252-09cc02333eda@twiddle.net> <87inj4ebqn.fsf@frigg.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v11 24/29] target/arm: [tcg, a64] Port to translate_insn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, Peter Maydell , Peter Crosthwaite , "open list:ARM" , Paolo Bonzini , Alex =?iso-8859-1?Q?Benn=E9e?= On Fri, Jul 07, 2017 at 05:46:19 -1000, Richard Henderson wrote: > I do wonder if we should provide a generic empty hook, so that a target that > does not need a particular hook need not define an empty function. It could > just put e.g. "translator_noop" into the structure. Ok, maybe a better name > than that... NULL would serve that purpose well. The subsequent "if (hook)" branch would be essentially free because it'd be trivially predicted. E.