Re: [Qemu-devel] TCG questions

2012-09-12 Thread Xin Tong
I have the code on http://code.google.com/p/qemu-trace/. I currently have memory trace, branch trace and some special instructions traces ready ( unverified though). we should discuss about what is the best way to do this btw. Xin On Wed, Sep 12, 2012 at 10:09 AM, Xin Tong wrote: > On Wed, Sep

Re: [Qemu-devel] TCG questions

2012-09-12 Thread Xin Tong
On Wed, Sep 12, 2012 at 6:14 AM, Lluís Vilanova wrote: > Xin Tong writes: > >> i do not know. could be similar. I am doing architecture research. i >> need traces of memory access for programming running under a full >> system environment, so i wrote this. > >> i do nto seem to be able to access t

Re: [Qemu-devel] TCG questions

2012-09-12 Thread Lluís Vilanova
Xin Tong writes: > i do not know. could be similar. I am doing architecture research. i > need traces of memory access for programming running under a full > system environment, so i wrote this. > i do nto seem to be able to access the linked provided from the link > you give me though. > https:

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Xin Tong
i do not know. could be similar. I am doing architecture research. i need traces of memory access for programming running under a full system environment, so i wrote this. i do nto seem to be able to access the linked provided from the link you give me though. https://projects.gso.ac.upc.edu/proj

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Wei-Ren Chen
> I have created a set of instrument API on QEMU. one can write client > programs that compile into shared library. the shared library is then > loaded into qemu and extract statistics out of QEMU. Instrument API? Same as what Liuis did? Regards, chenwj [1] http://lists.gnu.org/archive/html/qe

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Richard Henderson
On 09/11/2012 03:56 PM, Xin Tong wrote: > Some of the files in the instrumentation module depends on TCGv. i > just want to find a way to include the tcg-op.h. it is not easy as it > is architecture dependent. It's not. Look at some of the other files in tcg/. r~

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Xin Tong
On Tue, Sep 11, 2012 at 9:12 AM, Richard Henderson wrote: > On 09/10/2012 08:17 PM, Xin Tong wrote: >> I have 2 questions about TCGv. >> >> 1. if DEBUG is enabled on TCGv, TCGv is wrapped in a C struct. and >> would it not be very expensive to pass TCGv by copy for all the >> tcg_gen_xxx function

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Peter Maydell
On 11 September 2012 17:12, Richard Henderson wrote: > On 09/10/2012 08:17 PM, Xin Tong wrote: >> 1. if DEBUG is enabled on TCGv, TCGv is wrapped in a C struct. and >> would it not be very expensive to pass TCGv by copy for all the >> tcg_gen_xxx functions.i.e. tcg_gen_mov_tl(cpu_cc_src, cpu_T[1]

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Richard Henderson
On 09/10/2012 08:17 PM, Xin Tong wrote: > I have 2 questions about TCGv. > > 1. if DEBUG is enabled on TCGv, TCGv is wrapped in a C struct. and > would it not be very expensive to pass TCGv by copy for all the > tcg_gen_xxx functions.i.e. tcg_gen_mov_tl(cpu_cc_src, cpu_T[1]); No. The compiler i

[Qemu-devel] TCG questions

2012-09-10 Thread Xin Tong
I have 2 questions about TCGv. 1. if DEBUG is enabled on TCGv, TCGv is wrapped in a C struct. and would it not be very expensive to pass TCGv by copy for all the tcg_gen_xxx functions.i.e. tcg_gen_mov_tl(cpu_cc_src, cpu_T[1]); 2. I have created some files that need to include tcg-op.h and cpu.h