Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfLwh-0005vn-5j for qemu-devel@nongnu.org; Wed, 10 Feb 2010 18:26:11 -0500 Received: from [199.232.76.173] (port=58698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfLwg-0005vM-Eo for qemu-devel@nongnu.org; Wed, 10 Feb 2010 18:26:10 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfLwf-00046I-IS for qemu-devel@nongnu.org; Wed, 10 Feb 2010 18:26:10 -0500 Received: from mail-fx0-f223.google.com ([209.85.220.223]:47235) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfLwf-000462-80 for qemu-devel@nongnu.org; Wed, 10 Feb 2010 18:26:09 -0500 Received: by fxm23 with SMTP id 23so604524fxm.2 for ; Wed, 10 Feb 2010 15:26:08 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 11 Feb 2010 00:26:00 +0100 Message-Id: <1265844362-29836-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] simplify global register save/restore List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Since b567b38 (target-arm: remove T0 and T1, 2009-10-16) the only global register that is actually used is AREG0, so the complexity of hostregs_helper.h is unwarranted. Let's just say that env should be the only global register. AREG1 and AREG2 in principle could still be used to work around bad register allocation in GCC, so I'm leaving them in dyngen-exec.h. Blue Swirl, can you check whether changing AREG0 to another register in dyngen-exec.h would fix the "annoying glibc bugs mangling global register variables"? Or maybe we can remove the workaround altogether, considering the bug was fixed in version 2.3 of glibc dated 2001-11-29 (at least that's what I'd guess from the history)? Paolo Bonzini (2): remove dead m68k global register definitions get rid of hostregs_helper.h cpu-exec.c | 15 +++++++----- hostregs_helper.h | 61 ---------------------------------------------------- qemu-common.h | 2 + target-m68k/exec.h | 4 --- 4 files changed, 11 insertions(+), 71 deletions(-) delete mode 100644 hostregs_helper.h