Re: [Qemu-devel] arm-linux-user, i386-linux-user: Make QEMU act as TCG compiler

2012-02-23 Thread Rajat Goyal
QEMU as a dynamic translator is already available. This adds extra
functionality to QEMU. I needed to do this since I wanted to explore the
ARM memory model over TCG micro-operations; so I needed translation of the
whole binary and not just the parts which QEMU needs to execute. Don't know
if others would find this feature useful.

Rajat.

On Thu, Feb 23, 2012 at 3:57 AM, 陳韋任 che...@iis.sinica.edu.tw wrote:

 Hi Rajat,

  Great work! It seems this is a kind of like static compilation, right? I
 think
 people are more interested in using QEMU as a dynamic translator as a
 library.
 Would you mind to tell me what scenario your work aims to?

 Regards,
 chenwj

 --
 Wei-Ren Chen (陳韋任)
 Computer Systems Lab, Institute of Information Science,
 Academia Sinica, Taiwan (R.O.C.)
 Tel:886-2-2788-3799 #1667
 Homepage: http://people.cs.nctu.edu.tw/~chenwj



Re: [Qemu-devel] arm-linux-user, i386-linux-user: Make QEMU act as TCG compiler

2012-02-23 Thread Rajat Goyal
Hi Peter,

Would QEMU developers be interested in integrating this TCG compilation
functionality that I have been working on into later releases of QEMU? The
patch I have right now breaks the original emulation but if there is some
interest in supporting static compilation into TCG in the future, I can
submit a clean patch which does not break emulation but instead adds a
run-time option to generate TCG compilation. I would be grateful if you
could let me know.

Many thanks in anticipation.

With warm regards,
Rajat.

2012/2/23 Rajat Goyal rajat.go...@cl.cam.ac.uk

 QEMU as a dynamic translator is already available. This adds extra
 functionality to QEMU. I needed to do this since I wanted to explore the
 ARM memory model over TCG micro-operations; so I needed translation of the
 whole binary and not just the parts which QEMU needs to execute. Don't know
 if others would find this feature useful.

 Rajat.


 On Thu, Feb 23, 2012 at 3:57 AM, 陳韋任 che...@iis.sinica.edu.tw wrote:

 Hi Rajat,

  Great work! It seems this is a kind of like static compilation, right? I
 think
 people are more interested in using QEMU as a dynamic translator as a
 library.
 Would you mind to tell me what scenario your work aims to?

 Regards,
 chenwj

 --
 Wei-Ren Chen (陳韋任)
 Computer Systems Lab, Institute of Information Science,
 Academia Sinica, Taiwan (R.O.C.)
 Tel:886-2-2788-3799 #1667
 Homepage: http://people.cs.nctu.edu.tw/~chenwj





Re: [Qemu-devel] arm-linux-user, i386-linux-user: Make QEMU act as TCG compiler

2012-02-23 Thread Peter Maydell
2012/2/23 Rajat Goyal rajat.go...@cl.cam.ac.uk:
 Would QEMU developers be interested in integrating this TCG compilation
 functionality that I have been working on into later releases of QEMU? The
 patch I have right now breaks the original emulation but if there is some
 interest in supporting static compilation into TCG in the future, I can
 submit a clean patch which does not break emulation but instead adds a
 run-time option to generate TCG compilation. I would be grateful if you
 could let me know.

To be honest I don't see any general utility in it, and refactoring
everything to be able to do anything resembling this cleanly would
be an enormously painful upheaval.

-- PMM



Re: [Qemu-devel] arm-linux-user, i386-linux-user: Make QEMU act as TCG compiler

2012-02-22 Thread 陳韋任
Hi Rajat,

  Great work! It seems this is a kind of like static compilation, right? I think
people are more interested in using QEMU as a dynamic translator as a library.
Would you mind to tell me what scenario your work aims to?

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj