Received: from eggs.gnu.org ([2001:4830:134:3::10]:59405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjzhh-0005GR-PH for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjzhc-0005wJ-Tr for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:17 -0400 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:43382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjzhc-0005vn-Q4 for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:12 -0400 Received: by mail-qg0-f50.google.com with SMTP id z60so8614699qgd.9 for ; Mon, 12 May 2014 16:32:12 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 12 May 2014 16:31:04 -0700 Message-Id: <1399937474-6530-17-git-send-email-rth@twiddle.net> In-Reply-To: <1399937474-6530-1-git-send-email-rth@twiddle.net> References: <1399937474-6530-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] [PULL 16/26] tcg: Require TCG_TARGET_INSN_UNIT_SIZE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Now that all backends do define TCG_TARGET_INSN_UNIT_SIZE, remove the fallback definition. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index a3fb88c..4f4b1fa 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -147,9 +147,8 @@ typedef enum TCGOpcode { #define tcg_regset_not(d, a) (d) = ~(a) #ifndef TCG_TARGET_INSN_UNIT_SIZE -#define TCG_TARGET_INSN_UNIT_SIZE 1 -#endif -#if TCG_TARGET_INSN_UNIT_SIZE == 1 +# error "Missing TCG_TARGET_INSN_UNIT_SIZE" +#elif TCG_TARGET_INSN_UNIT_SIZE == 1 typedef uint8_t tcg_insn_unit; #elif TCG_TARGET_INSN_UNIT_SIZE == 2 typedef uint16_t tcg_insn_unit; -- 1.9.0