From: Richard Henderson Date: Tue, 20 Jun 2017 18:34:55 +0000 (-0700) Subject: tcg: Return NULL temp for TCG_CALL_DUMMY_ARG X-Git-Tag: v2.11.0-rc0~27^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6c7d84df8889b9d6298466999b88a8a42e5f976;p=thirdparty%2Fqemu.git tcg: Return NULL temp for TCG_CALL_DUMMY_ARG Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- diff --git a/tcg/tcg.h b/tcg/tcg.h index fc4d1ed58b6..5fcdec1fc5b 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -731,7 +731,7 @@ extern bool parallel_cpus; static inline TCGTemp *arg_temp(TCGArg a) { - return &tcg_ctx.temps[a]; + return a == TCG_CALL_DUMMY_ARG ? NULL : &tcg_ctx.temps[a]; } static inline void tcg_set_insn_param(int op_idx, int arg, TCGArg v)