[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: Laurent Desnogues
Subject: Re: [Qemu-devel] Adding a parameter to a helper
Date: Tue, 31 Jul 2012 17:14:55 +0200

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]