From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPYGe-0002LQ-9h for qemu-devel@nongnu.org; Mon, 26 Jun 2017 13:57:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPYGX-000518-IA for qemu-devel@nongnu.org; Mon, 26 Jun 2017 13:57:40 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:47107) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPYGX-00050u-DO for qemu-devel@nongnu.org; Mon, 26 Jun 2017 13:57:37 -0400 Date: Mon, 26 Jun 2017 13:57:36 -0400 From: "Emilio G. Cota" Message-ID: <20170626175736.GD17935@flamenco> References: <149838022308.6497.2104916050645246693.stgit@frigg.lan> <149838119390.6497.17430428991952287717.stgit@frigg.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <149838119390.6497.17430428991952287717.stgit@frigg.lan> Subject: Re: [Qemu-devel] [PATCH v9 04/26] target: [tcg] Add generic translation framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: qemu-devel@nongnu.org, Paolo Bonzini , Peter Crosthwaite , Alex =?iso-8859-1?Q?Benn=E9e?= , Richard Henderson On Sun, Jun 25, 2017 at 11:59:54 +0300, Lluís Vilanova wrote: > Signed-off-by: Lluís Vilanova > --- > Makefile.target | 1 > include/exec/gen-icount.h | 2 > include/exec/translate-block.h | 125 +++++++++++++++++++++++++++ > include/qom/cpu.h | 22 +++++ > translate-block.c | 185 ++++++++++++++++++++++++++++++++++++++++ > 5 files changed, 334 insertions(+), 1 deletion(-) > create mode 100644 include/exec/translate-block.h > create mode 100644 translate-block.c > > diff --git a/Makefile.target b/Makefile.target > index ce8dfe44a8..253c6e7999 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -90,6 +90,7 @@ all: $(PROGS) stap > # cpu emulator library > obj-y = exec.o translate-all.o cpu-exec.o > obj-y += translate-common.o > +obj-y += translate-block.o Let's just call this something else; the string "block" will just confuse people who work on the "block" layer (and will slow down the visual filtering of patches on qemu-devel). I suggest translator.[ch] since TranslatorOps is the key struct here. E.