summaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-07 04:31:49 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-07 04:31:49 +0000
commitc588979bfc41a0340bdf8b5e32fe4ae8f1e25aed (patch)
tree140073f1689dc2f944dc71ba538063e3726defe5 /tcg/tcg.c
parentec9d6075b484fed47d55bf1590148f1fc081538c (diff)
downloadqemu-c588979bfc41a0340bdf8b5e32fe4ae8f1e25aed.tar.gz
Allocate a register pair instead of a single register.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4688 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index ef4460d257..b4b8d8ea22 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -353,7 +353,7 @@ TCGv tcg_global_mem_new(TCGType type, int reg, tcg_target_long offset,
#if TCG_TARGET_REG_BITS == 32
if (type == TCG_TYPE_I64) {
char buf[64];
- tcg_temp_alloc(s, s->nb_globals + 1);
+ tcg_temp_alloc(s, s->nb_globals + 2);
ts = &s->temps[s->nb_globals];
ts->base_type = type;
ts->type = TCG_TYPE_I32;