Re: [Qemu-devel] nb_globals vs nb_temps

2012-01-08 Thread Andreas Färber
Am 08.01.2012 14:05, schrieb Xin Tong: > i can not find where nb_temps is set. Anyone > care to answer ? $ grep -r nb_temps path/to/qemu/sources shows a manageable amount of search hits, with two assignments: one in tcg/optimize.c, one in tcg/tcg.c. Andreas -- SUSE LINUX Products GmbH, Maxfeld

Re: [Qemu-devel] nb_globals vs nb_temps

2012-01-08 Thread Peter Maydell
On 8 January 2012 14:02, Xin Tong wrote: >    s->nb_temps = s->nb_globals; in tcg_func_start. > > Is it still possible to allocated TCGTemp globals after tcg_func_start > is called. No. From tcg/README: # A TCG "global" is a variable which is live in all the functions # (equivalent of a C global

Re: [Qemu-devel] nb_globals vs nb_temps

2012-01-08 Thread Xin Tong
s->nb_temps = s->nb_globals; in tcg_func_start. Is it still possible to allocated TCGTemp globals after tcg_func_start is called. If it is allowed, aren't global temps and local temps going to become interleaved ? Thanks Xin On Sun, Jan 8, 2012 at 8:37 AM, Peter Maydell wrote: > On 8 Janu

Re: [Qemu-devel] nb_globals vs nb_temps

2012-01-08 Thread Peter Maydell
On 8 January 2012 13:05, Xin Tong wrote: > From the line of comment at TCGTemp * temps. The  "globals first, > temps after". Whenever a global/temp is allocated, the > nb_globals/nb_temps is incremented. nb_globals is set to 0 when the > tcg is initialized, but i can not find where nb_temps is set

[Qemu-devel] nb_globals vs nb_temps

2012-01-08 Thread Xin Tong
>From the line of comment at TCGTemp * temps. The "globals first, temps after". Whenever a global/temp is allocated, the nb_globals/nb_temps is incremented. nb_globals is set to 0 when the tcg is initialized, but i can not find where nb_temps is set. Anyone care to answer ? Thanks Xin