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

2012-07-31 Thread Jose Cano Reyes
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 wrote: - So, how ca I obtain the value

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

2012-07-31 Thread Laurent Desnogues
On Tue, Jul 31, 2012 at 5:09 PM, Jose Cano Reyes 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 comple

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

2012-07-31 Thread Jose Cano Reyes
Many thanks for your response Laurent. - So, how ca I obtain the value that TCGv_i32 represents? - 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

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

2012-07-31 Thread Laurent Desnogues
On Mon, Jul 30, 2012 at 6:40 PM, Jose Cano Reyes wrote: > I am trying to add a new integer parameter to an existing helper and call > this helper in "targeti386/translate.c". I have several problems: > > 1) I cannot add an integer parameter to the helper, the compiler says that > it must be "TCGv_

[Qemu-devel] Adding a parameter to a helper

2012-07-30 Thread Jose Cano Reyes
Hi all, I am trying to add a new integer parameter to an existing helper and call this helper in "targeti386/translate.c". I have several problems: 1) I cannot add an integer parameter to the helper, the compiler says that it must be "TCGv_i32", despite I declare this new parameter as "int"