[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] simplify global register save/restore

From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 0/2] simplify global register save/restore
Date: Thu, 11 Feb 2010 00:26:00 +0100

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]