diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-03-31 21:30:31 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-06-05 12:04:29 -0700 |
commit | 747bd69d0f6d278923c50a3be6dd9b85e5dfd603 (patch) | |
tree | c1cf6d6c2bd3aa031a1ca8bf8fb124e07f3df332 /include/tcg/tcg-op.h | |
parent | e03291cd9a9f511a70a9164bbe8673ed1e9de360 (diff) | |
download | qemu-747bd69d0f6d278923c50a3be6dd9b85e5dfd603.zip qemu-747bd69d0f6d278923c50a3be6dd9b85e5dfd603.tar.gz qemu-747bd69d0f6d278923c50a3be6dd9b85e5dfd603.tar.bz2 |
tcg: Add insn_start_words to TCGContext
This will enable replacement of TARGET_INSN_START_WORDS in tcg.c.
Split out "tcg/insn-start-words.h" and use it in target/.
Reviewed-by: Anton Johansson <anjo@rev.ng>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg/tcg-op.h')
-rw-r--r-- | include/tcg/tcg-op.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 47f1dce..d63683c 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -22,20 +22,20 @@ # error #endif -#if TARGET_INSN_START_WORDS == 1 +#ifndef TARGET_INSN_START_EXTRA_WORDS static inline void tcg_gen_insn_start(target_ulong pc) { TCGOp *op = tcg_emit_op(INDEX_op_insn_start, 64 / TCG_TARGET_REG_BITS); tcg_set_insn_start_param(op, 0, pc); } -#elif TARGET_INSN_START_WORDS == 2 +#elif TARGET_INSN_START_EXTRA_WORDS == 1 static inline void tcg_gen_insn_start(target_ulong pc, target_ulong a1) { TCGOp *op = tcg_emit_op(INDEX_op_insn_start, 2 * 64 / TCG_TARGET_REG_BITS); tcg_set_insn_start_param(op, 0, pc); tcg_set_insn_start_param(op, 1, a1); } -#elif TARGET_INSN_START_WORDS == 3 +#elif TARGET_INSN_START_EXTRA_WORDS == 2 static inline void tcg_gen_insn_start(target_ulong pc, target_ulong a1, target_ulong a2) { @@ -45,7 +45,7 @@ static inline void tcg_gen_insn_start(target_ulong pc, target_ulong a1, tcg_set_insn_start_param(op, 2, a2); } #else -# error "Unhandled number of operands to insn_start" +#error Unhandled TARGET_INSN_START_EXTRA_WORDS value #endif #if TARGET_LONG_BITS == 32 |