All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 0/3] tcg: Support debugging leakage of temporaries
Date: Mon, 7 Mar 2011 09:42:04 +0100	[thread overview]
Message-ID: <20110307084204.GD10503@volta.aurel32.net> (raw)
In-Reply-To: <AANLkTimU561DF3Gq5ap+5OVJ9rRwPnrZH0R19+L_HBDo@mail.gmail.com>

On Sun, Mar 06, 2011 at 09:52:56PM +0000, Peter Maydell wrote:
> On 6 March 2011 18:18, Aurelien Jarno <aurelien@aurel32.net> wrote:
> > On Wed, Feb 23, 2011 at 03:19:33PM +0000, Peter Maydell wrote:
> >> This patchset removes the ad-hoc debug code in target-arm for
> >> identifying cases where we leaked TCG temporary variables, in
> >> favour of an implementation in tcg itself.
> 
> > I am basically fine with this patch series modulo the small comment you
> > made about patch 1.
> 
> Thanks; I've sent a v2 which fixes that nit.
> 
> > My only concern is that, given ARM code is quite
> > sensitive to this kind of issue (there is no real rule if the caller or
> > the callee should free the temp), that we forget to enable TCG debug to
> > validate a patch. On the other hand I fully agree that this kind of
> > check should not be done in "production" use.
> 
> In the long term it would be good if we could make the ARM translate.c
> less brittle like this. Can we at least define a rule for where we're
> trying to get to so we can move in the right direction for new code?
> 
> My suggestion would be that we should say that for gen_* functions
> the callee should always have to free temps passed in as arguments.
> This matches the convention for tcg_gen_$OP() and gen_helper_$WHATEVER().
> 

I don't mind whatever convention, but my understanding is that this
doesn't match tcg_gen_$OP() and gen_helper_$WHATEVER(), which never free
temps passed in arguments.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

  reply	other threads:[~2011-03-07  8:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 15:19 [Qemu-devel] [PATCH 0/3] tcg: Support debugging leakage of temporaries Peter Maydell
2011-02-23 15:19 ` [Qemu-devel] [PATCH 1/3] tcg: Add support for " Peter Maydell
2011-02-23 17:53   ` Peter Maydell
2011-02-23 15:19 ` [Qemu-devel] [PATCH 2/3] target-arm: Remove ad-hoc leak checking code Peter Maydell
2011-02-23 15:19 ` [Qemu-devel] [PATCH 3/3] target-arm: Use TCG temporary leak debugging facilities Peter Maydell
2011-02-25 15:32   ` Blue Swirl
2011-02-25 15:48     ` Peter Maydell
2011-03-06 18:18 ` [Qemu-devel] [PATCH 0/3] tcg: Support debugging leakage of temporaries Aurelien Jarno
2011-03-06 21:52   ` Peter Maydell
2011-03-07  8:42     ` Aurelien Jarno [this message]
2011-03-07  9:11       ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110307084204.GD10503@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.