From: Jose Cano Reyes <jcano@ac.upc.edu>
To: Laurent Desnogues <laurent.desnogues@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Adding a parameter to a helper
Date: Tue, 31 Jul 2012 19:14:46 +0200 [thread overview]
Message-ID: <50181286.5080800@ac.upc.edu> (raw)
In-Reply-To: <CABoDooN8sduFV8JBz7Vv1Lsqw4rekv5c7vAdnyQq7RuWfSDhZg@mail.gmail.com>
Ok, I am going to try...
In fact, I did it before posting Laurent, but I don't understand it
completely. Anyway, thanks a lot for your help.
Jose.
El 31/07/12 17:14, Laurent Desnogues escribió:
> On Tue, Jul 31, 2012 at 5:09 PM, Jose Cano Reyes <jcano@ac.upc.edu> wrote:
>> - So, how ca I obtain the value that TCGv_i32 represents?
> In the generated code (that is after TCG is translated to host
> machine code), you'll et your value in your helper. If you mean
> before running the helper, then it's much more complex and
> would require to process the TCG code.
>
>> - I don't understand well how a helper functions. For instance, cosidering
>> this call to a helper again:
>>
>> gen_helper_flds_ST0(cpu_tmp2_i32, tcg_const_i32(MY_INT_VALUE))
>>
>> Can I obtain the parameters "cpu_tmp2_i32" and
>> "tcg_const_i32(MY_INT_VALUE)" from the args[0] and args[1] described in
>> DEF_HELPER_FLAGS_2???
> cf. above. Again look at existing helpers and how they get
> const values.
>
>
> Laurent
prev parent reply other threads:[~2012-07-31 17:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 16:40 [Qemu-devel] Adding a parameter to a helper Jose Cano Reyes
2012-07-31 13:19 ` Laurent Desnogues
2012-07-31 15:09 ` Jose Cano Reyes
2012-07-31 15:14 ` Laurent Desnogues
2012-07-31 17:14 ` Jose Cano Reyes [this message]
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=50181286.5080800@ac.upc.edu \
--to=jcano@ac.upc.edu \
--cc=laurent.desnogues@gmail.com \
--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.