[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 04/10] tcg/mips: don't use global pointer
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH 04/10] tcg/mips: don't use global pointer |
Date: |
Fri, 21 Sep 2012 23:13:05 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Sep 21, 2012 at 11:18:39AM -0700, Richard Henderson wrote:
> On 09/21/2012 09:43 AM, Aurelien Jarno wrote:
> > Don't use the global pointer in TCG, in case helpers try access global
> > variables.
>
> Err.. isn't the GP computed at the entry point of functions that need to use
> it?
I read that GP should be preserved when checking the MIPS ABI for other
things. But you are right, GCC emit code to recompute GP at the entry point
of the function when used later. I guess I checked the wrong ABI.
> That said, under n32 and n64 abis it is call-saved; under o32 it's
> call-clobbered.
> So by itself this is still a fix for new-abis, since we don't save it in the
> prologue. OTOH, this does suggest an alternate solution... ;-)
>
Supporting n32 or n64 implies a lot more things than that. So I guess
I'll just drop that patch for now.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH 00/10] tcg/mips: cleanup and improvements, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 09/10] tcg/mips: implement deposit op on MIPS32R2, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 07/10] tcg/mips: optimize bswap{16, 16s, 32} on MIPS32R2, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 01/10] tcg-mips: fix wrong usage of 'Z' constraint, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 04/10] tcg/mips: don't use global pointer, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 10/10] tcg/mips: implement movcond op on MIPS32R2, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 08/10] tcg/mips: implement rotl/rotr ops on MIPS32R2, Aurelien Jarno, 2012/09/21
- [Qemu-devel] [PATCH 05/10] tcg/mips: use stack for TCG temps, Aurelien Jarno, 2012/09/21
[Qemu-devel] [PATCH 02/10] tcg/mips: kill warnings in user mode, Aurelien Jarno, 2012/09/21
[Qemu-devel] [PATCH 06/10] tcg/mips: optimize brcond arg, 0, Aurelien Jarno, 2012/09/21
[Qemu-devel] [PATCH 03/10] tcg/mips: use TCGArg or TCGReg instead of int, Aurelien Jarno, 2012/09/21