From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WntlB-0001Jc-0o for qemu-devel@nongnu.org; Fri, 23 May 2014 14:00:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wntl5-0004ky-0W for qemu-devel@nongnu.org; Fri, 23 May 2014 14:00:00 -0400 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:52489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wntl4-0004ip-Pd for qemu-devel@nongnu.org; Fri, 23 May 2014 13:59:54 -0400 Received: by mail-qc0-f171.google.com with SMTP id c9so507701qcz.2 for ; Fri, 23 May 2014 10:59:53 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Fri, 23 May 2014 10:59:19 -0700 Message-Id: <1400867959-10747-2-git-send-email-rth@twiddle.net> In-Reply-To: <1400867959-10747-1-git-send-email-rth@twiddle.net> References: <1400867959-10747-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL] tci: Fix tcg_out_call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Broken since dddbb2e1e3f8137d7e3f1faf9758c66cca0c94ea. Do all the rest of the things that tcg_out_op did before and after the big switch statement. Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/tci/tcg-target.c b/tcg/tci/tcg-target.c index 9b39231..375e590 100644 --- a/tcg/tci/tcg-target.c +++ b/tcg/tci/tcg-target.c @@ -544,7 +544,10 @@ static void tcg_out_movi(TCGContext *s, TCGType type, static inline void tcg_out_call(TCGContext *s, tcg_insn_unit *arg) { + uint8_t *old_code_ptr = s->code_ptr; + tcg_out_op_t(s, INDEX_op_call); tcg_out_ri(s, 1, (uintptr_t)arg); + old_code_ptr[1] = s->code_ptr - old_code_ptr; } static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, -- 1.9.0