]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tcg: Return NULL temp for TCG_CALL_DUMMY_ARG
authorRichard Henderson <rth@twiddle.net>
Tue, 20 Jun 2017 18:34:55 +0000 (11:34 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 19:44:02 +0000 (21:44 +0200)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.h

index fc4d1ed58b60aaf20a91c717378c4cb9e6d3d28f..5fcdec1fc5b029e38ba2e3942a95b082a8059611 100644 (file)
--- 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)