Re: [Qemu-devel] gen_icount_start

2013-01-18 Thread biswaranjan panda
> What I understand is that in gen_icount_start 'icount_arg' keeps a pointer > to gen_opparam_ptr which is used in gen_icount_end to patch up the value . I > however didnt understand what the 'horrid hack' is about. Can any one give > me some idea on this ? >My guess is that it's a hack because it

Re: [Qemu-devel] gen_icount_start

2012-12-30 Thread Peter Maydell
On 30 December 2012 23:14, biswaranjan panda wrote: > What I understand is that in gen_icount_start 'icount_arg' keeps a pointer > to gen_opparam_ptr which is used in gen_icount_end to patch up the value . I > however didnt understand what the 'horrid hack' is about. Can any one give > me some ide

[Qemu-devel] gen_icount_start

2012-12-30 Thread biswaranjan panda
Hi , I am trying to understand how to count the number of instructions executed in the guest and came across the gen_icount_start and gen_icount_end functions. What I understand is that in gen_icount_start 'icount_arg' keeps a pointer to gen_opparam_ptr which is used in gen_icount_end to patch up