From: Nigel Horne <njh@bandsman.co.uk>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Arm emulation tweak
Date: Tue, 18 Aug 2009 16:57:43 +0100 [thread overview]
Message-ID: <4A8ACF77.3090801@bandsman.co.uk> (raw)
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
njh@bandsman.co.uk http://www.bandsman.co.uk
next reply other threads:[~2009-08-18 15:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 15:57 Nigel Horne [this message]
2009-08-18 16:14 ` [Qemu-devel] Arm emulation tweak Jamie Lokier
2009-08-19 9:46 ` Filip Navara
2009-08-19 10:12 ` Nigel Horne
2009-08-19 10:38 ` Filip Navara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A8ACF77.3090801@bandsman.co.uk \
--to=njh@bandsman.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).