[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Arm emulation tweak
From: |
Nigel Horne |
Subject: |
[Qemu-devel] Arm emulation tweak |
Date: |
Tue, 18 Aug 2009 16:57:43 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090701) |
This small patch reduces (on my machine) the call to new_tmp by 16
bytes, which may not sound much, but it's called so often that it makes
a nice speed up of Arm emulation:
*** Otranslate.c 2009-08-18 16:52:42.000000000 +0100
--- translate.c 2009-08-18 16:53:17.000000000 +0100
***************
*** 105,120 ****
/* Allocate a temporary variable. */
static TCGv_i32 new_tmp(void)
{
- TCGv tmp;
if (num_temps == MAX_TEMPS)
abort();
if (GET_TCGV_I32(temps[num_temps]))
return temps[num_temps++];
! tmp = tcg_temp_new_i32();
! temps[num_temps++] = tmp;
! return tmp;
}
/* Release a temporary variable. */
--- 105,117 ----
/* Allocate a temporary variable. */
static TCGv_i32 new_tmp(void)
{
if (num_temps == MAX_TEMPS)
abort();
if (GET_TCGV_I32(temps[num_temps]))
return temps[num_temps++];
! return temps[num_temps++] = tcg_temp_new_i32();
}
/* Release a temporary variable. */
--
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, ICQ#20252325
address@hidden http://www.bandsman.co.uk
- [Qemu-devel] Arm emulation tweak,
Nigel Horne <=