From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwG20-0002Su-Pg for qemu-devel@nongnu.org; Tue, 31 Jul 2012 13:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwG1y-00031F-W6 for qemu-devel@nongnu.org; Tue, 31 Jul 2012 13:14:52 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:59860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwG1y-00030Z-LS for qemu-devel@nongnu.org; Tue, 31 Jul 2012 13:14:50 -0400 Message-ID: <50181286.5080800@ac.upc.edu> Date: Tue, 31 Jul 2012 19:14:46 +0200 From: Jose Cano Reyes MIME-Version: 1.0 References: <5016B8EE.9060203@ac.upc.edu> <5017F53E.2060706@ac.upc.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Adding a parameter to a helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Desnogues Cc: qemu-devel@nongnu.org Ok, I am going to try... In fact, I did it before posting Laurent, but I don't understand it=20 completely. Anyway, thanks a lot for your help. Jose. El 31/07/12 17:14, Laurent Desnogues escribi=F3: > On Tue, Jul 31, 2012 at 5:09 PM, Jose Cano Reyes wro= te: >> - 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, coside= ring >> 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 i= n >> DEF_HELPER_FLAGS_2??? > cf. above. Again look at existing helpers and how they get > const values. > > > Laurent