Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-24 Thread Blue Swirl
On Thu, Sep 22, 2011 at 1:09 PM, Xin Tong Utoronto wrote: > > > On Mon, Sep 19, 2011 at 9:49 AM, Peter Maydell > wrote: >> >> On 19 September 2011 13:06, Xin Tong Utoronto wrote: >> > There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c >> >  helper.c), what are their differe

Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-22 Thread Peter Maydell
On 22 September 2011 14:09, Xin Tong Utoronto wrote: > On Mon, Sep 19, 2011 at 9:49 AM, Peter Maydell > wrote: >> We're currently trying to cut back on the use of the implicit global, >> so new helper functions should probably go in helper.c. >> > Why do we want to cut back on the use of the impl

Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-22 Thread Xin Tong Utoronto
On Mon, Sep 19, 2011 at 9:49 AM, Peter Maydell wrote: > On 19 September 2011 13:06, Xin Tong Utoronto wrote: > > There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c > > helper.c), what are their differences ? also, what kind of functions are > > typically emulated using help

Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-19 Thread Peter Maydell
On 19 September 2011 13:06, Xin Tong Utoronto wrote: > There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c >  helper.c), what are their differences ? also, what kind of functions are > typically emulated using helpers ? The key difference is that op_helper.c is compiled with

Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-19 Thread Alexander Graf
On 19.09.2011, at 14:06, Xin Tong Utoronto wrote: > There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c > helper.c), what are their differences ? General rule: op_helper.c: Code snippets called from TCG generated code. Implement more complex operations that gcc gets be

[Qemu-devel] op-helper.c vs helper.c

2011-09-19 Thread Xin Tong Utoronto
There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c helper.c), what are their differences ? also, what kind of functions are typically emulated using helpers ? Thanks Xin