From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQOR1-0002PW-6B for qemu-devel@nongnu.org; Wed, 19 Mar 2014 17:54:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQOQu-0004UG-Pj for qemu-devel@nongnu.org; Wed, 19 Mar 2014 17:54:03 -0400 Received: from cantor2.suse.de ([195.135.220.15]:58639 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQOQu-0004U4-K0 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 17:53:56 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 19 Mar 2014 22:53:24 +0100 Message-Id: <1395266004-15219-2-git-send-email-afaerber@suse.de> In-Reply-To: <1395266004-15219-1-git-send-email-afaerber@suse.de> References: <1395266004-15219-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL for-2.0 1/1] cpu: Move tcg_exit_req to the end of CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson From: Richard Henderson Reverse an increase in the size of generated code. Signed-off-by: Richard Henderson Signed-off-by: Andreas F=C3=A4rber --- include/qom/cpu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 06ee263..f99885a 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -227,7 +227,6 @@ struct CPUState { bool stop; bool stopped; volatile sig_atomic_t exit_request; - volatile sig_atomic_t tcg_exit_req; uint32_t interrupt_request; int singlestep_enabled; int64_t icount_extra; @@ -272,6 +271,12 @@ struct CPUState { } icount_decr; uint32_t can_do_io; int32_t exception_index; /* used by m68k TCG */ + + /* Note that this is accessed at the start of every TB via a negativ= e + offset from AREG0. Leave this field at the end so as to make the + (absolute value) offset as small as possible. This reduces code + size, especially for hosts without large memory offsets. */ + volatile sig_atomic_t tcg_exit_req; }; =20 QTAILQ_HEAD(CPUTailQ, CPUState); --=20 1.8.4.5