Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-19 Thread Richard Henderson
On 2012-10-20 06:24, Aurelien Jarno wrote: > Agreed. On the other hand, the few lines just above the one your quoted > would be more complicated: > > +if (!(call_flags & TCG_CALL_NO_READ_GLOBALS)) { > +/* globals should be synced to memory */ > +

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-19 Thread Aurelien Jarno
On Wed, Oct 10, 2012 at 10:11:54AM -0700, Richard Henderson wrote: > On 10/09/2012 12:56 PM, Aurelien Jarno wrote: > > +if (!(call_flags & (TCG_CALL_NO_WRITE_GLOBALS | > > +TCG_CALL_NO_READ_GLOBALS))) { > > Code like this would be shorter

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-10 Thread Richard Henderson
On 10/10/2012 10:12 AM, Richard Henderson wrote: > On 10/09/2012 01:24 PM, Aurelien Jarno wrote: >> Maybe NO_RG_SE? > > Perhaps, yes. But I certainly can't think of anything better. How about NO_RWG_SE. I like having the fact that R implies W be included in the symbol. r~

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-10 Thread Richard Henderson
On 10/09/2012 01:24 PM, Aurelien Jarno wrote: > Maybe NO_RG_SE? Perhaps, yes. But I certainly can't think of anything better. r~

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-10 Thread Richard Henderson
On 10/09/2012 12:56 PM, Aurelien Jarno wrote: > +if (!(call_flags & (TCG_CALL_NO_WRITE_GLOBALS | > +TCG_CALL_NO_READ_GLOBALS))) { Code like this would be shorter, and perhaps clearer, by > +/* Helper does not read globals (either directl

[Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-09 Thread Aurelien Jarno
The current helper flags, TCG_CALL_CONST and TCG_CALL_PURE might be confusing and doesn't provide enough granularity for some helpers (FP helpers for example). This patch changes them into the following helpers flags: - TCG_CALL_NO_READ_GLOBALS means that the helper does not read globals, either

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-09 Thread Aurelien Jarno
On Tue, Oct 09, 2012 at 09:04:24PM +0100, Peter Maydell wrote: > On 9 October 2012 20:56, Aurelien Jarno wrote: > > +#define TCG_CALL_NO_RGSE(TCG_CALL_NO_RG | TCG_CALL_NO_SE) > > When I first read this (in the target-arm patch) I assumed it had > to be a typo for NO_REGS... > > (alas I c

Re: [Qemu-devel] [PATCH v2 14/26] tcg: rework TCG helper flags

2012-10-09 Thread Peter Maydell
On 9 October 2012 20:56, Aurelien Jarno wrote: > +#define TCG_CALL_NO_RGSE(TCG_CALL_NO_RG | TCG_CALL_NO_SE) When I first read this (in the target-arm patch) I assumed it had to be a typo for NO_REGS... (alas I can't think of a better name) -- PMM