Skip to contentSkip to conversation

tci point fix

GIT PULL Richard Henderson 1 participant 2 messages May 23, 2014

lore
Share & tools
lore
#0 lore raw

My fault; sorry about the breakage.

r~

The following changes since commit 5118dc5975e6aa2e823961e15b162919f94721cc:

Merge remote-tracking branch 'remotes/kraxel/tags/pull-audio-5' into staging (2014-05-22 17:05:36 +0100)

are available in the git repository at:

git://github.com/rth7680/qemu.git fix-tci

for you to fetch changes up to a3abb29292dccd5681beb16f610b2b838eec2174:

tci: Fix tcg_out_call (2014-05-22 13:25:34 -0700)

----------------------------------------------------------------
Richard Henderson (1):
tci: Fix tcg_out_call

 tcg/tci/tcg-target.c | 3 +++
 1 file changed, 3 insertions(+)
#1 lore raw

[Qemu-devel] [PULL] tci: Fix tcg_out_call

Broken since dddbb2e1e3f8137d7e3f1faf9758c66cca0c94ea. Do all the rest of the things that tcg_out_op did before and after the big switch statement.

---
 tcg/tci/tcg-target.c | 3 +++
 1 file changed, 3 insertions(+)
tcg/tci/tcg-target.c +3 -0
index 9b39231..375e590 100644
@@ -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,
Signature · 1 line
1.9.0