Skip to contentSkip to conversation

target-mips: Fix compilation

PATCH In review Stefan Weil 2 participants 2 messages Jun 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-mips: Fix compilation

TCGv t1 needs tcg_temp_free instead of tcg_temp_free_i32.

Cc Nathan Froyd <[email protected]>
Cc Aurelien Jarno <[email protected]>
---
 target-mips/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-mips/translate.c +1 -1
index 3473281..940f57c 100644
@@ -9478,7 +9478,7 @@ static void gen_ldst_multiple (DisasContext *ctx, uint32_t opc, int reglist,
     }
     MIPS_DEBUG("%s, %x, %d(%s)", opn, reglist, offset, regnames[base]);
     tcg_temp_free(t0);
-    tcg_temp_free_i32(t1);
+    tcg_temp_free(t1);
     tcg_temp_free_i32(t2);
 }
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 8 lines · Stefan Weil

TCGv t1 needs tcg_temp_free instead of tcg_temp_free_i32.

Cc Nathan Froyd <[email protected]>
Cc Aurelien Jarno <[email protected]>
---
 target-mips/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks for spotting this, I have just applied the patch.

Quoted 18 lines
target-mips/translate.c +1 -1
index 3473281..940f57c 100644
@@ -9478,7 +9478,7 @@ static void gen_ldst_multiple (DisasContext *ctx, uint32_t opc, int reglist,
     }
     MIPS_DEBUG("%s, %x, %d(%s)", opn, reglist, offset, regnames[base]);
     tcg_temp_free(t0);
-    tcg_temp_free_i32(t1);
+    tcg_temp_free(t1);
     tcg_temp_free_i32(t2);
 }
 
Signature · 1 line
1.7.1
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net