From: Richard Henderson Date: Mon, 28 Apr 2014 19:01:23 +0000 (-0700) Subject: tcg: Require TCG_TARGET_INSN_UNIT_SIZE X-Git-Tag: pull-nvme-20200902~4807^2~10 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5053361b3edab82bc5bc276dae30345bf0261ee6;p=qemu-nvme.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 a3fb88cd04..4f4b1fa4d2 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;