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