On Tue, Jul 31, 2012 at 5:09 PM, Jose Cano Reyes <[email protected]> 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

Reply via email to