[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Adding a parameter to a helper

From: Jose Cano Reyes
Subject: Re: [Qemu-devel] Adding a parameter to a helper
Date: Tue, 31 Jul 2012 19:14:46 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

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.


El 31/07/12 17:14, Laurent Desnogues escribió:
On Tue, Jul 31, 2012 at 5:09 PM, Jose Cano Reyes <address@hidden> 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
cf. above.  Again look at existing helpers and how they get
const values.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]