From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV5gu-0000pZ-E5 for qemu-devel@nongnu.org; Tue, 01 Apr 2014 16:54:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV5gl-0007V1-C7 for qemu-devel@nongnu.org; Tue, 01 Apr 2014 16:53:52 -0400 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:40462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV5gl-0007Uo-6I for qemu-devel@nongnu.org; Tue, 01 Apr 2014 16:53:43 -0400 Received: by mail-qg0-f54.google.com with SMTP id a108so6196666qge.13 for ; Tue, 01 Apr 2014 13:53:41 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 1 Apr 2014 13:53:25 -0700 Message-Id: <1396385614-19267-1-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v2 0/9] tcg: tidy the type of code_ptr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Here's a second revision, attempting to take Peter's review on board. In particular, inlines to hide some of the pointer differencing issues. I also chose a different name for the type: tcg_insn_unit as suggested by Jay Foad. r~ Peter Maydell (3): exec-all.h: Use stl_p to avoid undefined behaviour patching x86 jumps tcg: Avoid stores to unaligned addresses tcg: Avoid undefined behaviour patching code at unaligned addresses Richard Henderson (6): tcg: Introduce byte pointer arithmetic helpers tcg: Define tcg_insn_unit for code pointers tcg-i386: Define TCG_TARGET_INSN_UNIT_SIZE tcg-ppc64: Define TCG_TARGET_INSN_UNIT_SIZE tcg-ppc: Define TCG_TARGET_INSN_UNIT_SIZE tcg-sparc: Define TCG_TARGET_INSN_UNIT_SIZE include/exec/exec-all.h | 4 +- tcg/i386/tcg-target.c | 60 +++++++-------- tcg/i386/tcg-target.h | 1 + tcg/ppc/tcg-target.c | 194 +++++++++++++++++++++++------------------------- tcg/ppc/tcg-target.h | 1 + tcg/ppc64/tcg-target.c | 163 ++++++++++++++++++++-------------------- tcg/ppc64/tcg-target.h | 1 + tcg/sparc/tcg-target.c | 138 ++++++++++++++++------------------ tcg/sparc/tcg-target.h | 2 +- tcg/tcg-be-ldst.h | 4 +- tcg/tcg.c | 108 +++++++++++++++++++-------- tcg/tcg.h | 84 ++++++++++++++++++--- translate-all.c | 13 ++-- 13 files changed, 432 insertions(+), 341 deletions(-) -- 1.9.0