Skip to contentSkip to conversation

[4730] Allocate register pair for 64-bit registers on 32-bit host.

Qemu-devel Thiemo Seufer 1 participant 1 message Jun 11, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4730

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4730
Author:   ths
Date:     2008-06-11 11:03:34 +0000 (Wed, 11 Jun 2008)

Log Message:
-----------
Allocate register pair for 64-bit registers on 32-bit host.

Modified Paths:
--------------
trunk/tcg/tcg.c

Modified: trunk/tcg/tcg.c
===================================================================

tcg/tcg.c +2 -2
@@ -423,7 +423,7 @@
         idx = s->nb_temps;
 #if TCG_TARGET_REG_BITS == 32
         if (type == TCG_TYPE_I64) {
-            tcg_temp_alloc(s, s->nb_temps + 1);
+            tcg_temp_alloc(s, s->nb_temps + 2);
             ts = &s->temps[s->nb_temps];
             ts->base_type = type;
             ts->type = TCG_TYPE_I32;
@@ -1961,7 +1961,7 @@
             break;
         }
         args += def->nb_args;
-    next: ;
+    next:
         if (search_pc >= 0 && search_pc < s->code_ptr - gen_code_buf) {
             return op_index;
         }