From: Richard Henderson Date: Mon, 28 Apr 2014 19:01:23 +0000 (-0700) Subject: tcg: Require TCG_TARGET_INSN_UNIT_SIZE X-Git-Tag: v2.1.0-rc0~129^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5053361b3edab82bc5bc276dae30345bf0261ee6;p=thirdparty%2Fqemu.git tcg: Require TCG_TARGET_INSN_UNIT_SIZE 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 --- diff --git a/tcg/tcg.h b/tcg/tcg.h index a3fb88cd04b..4f4b1fa4d2c 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;