]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
tcg: Require TCG_TARGET_INSN_UNIT_SIZE
authorRichard Henderson <rth@twiddle.net>
Mon, 28 Apr 2014 19:01:23 +0000 (12:01 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 12 May 2014 17:07:06 +0000 (10:07 -0700)
Now that all backends do define TCG_TARGET_INSN_UNIT_SIZE,
remove the fallback definition.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.h

index a3fb88cd04bbc10612a56422687601ff8f73da3c..4f4b1fa4d2ccdc55ce3f1c120585044271464d29 100644 (file)
--- 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;