tcg: Set MAX_OPC_PARAM_IARGS to 7
The last entry of DEF_HELPERS_FLAGS_n is DEF_HELPER_FLAGS_7 and
thus the MAX_OPC_PARAM_IARGS should be 7.
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Ziqiao Kong <ziqiaokong@gmail.com>
Message-Id: <20220227113127.414533-2-ziqiaokong@gmail.com>
Fixes: e6cadf49c3
("tcg: Add support for a helper with 7 arguments")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
9becc36f02
commit
0166feda32
|
@ -43,7 +43,7 @@
|
||||||
#else
|
#else
|
||||||
#define MAX_OPC_PARAM_PER_ARG 1
|
#define MAX_OPC_PARAM_PER_ARG 1
|
||||||
#endif
|
#endif
|
||||||
#define MAX_OPC_PARAM_IARGS 6
|
#define MAX_OPC_PARAM_IARGS 7
|
||||||
#define MAX_OPC_PARAM_OARGS 1
|
#define MAX_OPC_PARAM_OARGS 1
|
||||||
#define MAX_OPC_PARAM_ARGS (MAX_OPC_PARAM_IARGS + MAX_OPC_PARAM_OARGS)
|
#define MAX_OPC_PARAM_ARGS (MAX_OPC_PARAM_IARGS + MAX_OPC_PARAM_OARGS)
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ static const int tcg_target_reg_alloc_order[] = {
|
||||||
TCG_REG_R0,
|
TCG_REG_R0,
|
||||||
};
|
};
|
||||||
|
|
||||||
#if MAX_OPC_PARAM_IARGS != 6
|
#if MAX_OPC_PARAM_IARGS != 7
|
||||||
# error Fix needed, number of supported input arguments changed!
|
# error Fix needed, number of supported input arguments changed!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue