libqemu.a not made with version 0.13
Hi all!
version 0.13 of qemu does not make libqemu.a
Is this some choice of developers, or due to any problem? How to fix that?
Thank you in advance!
Stefano B.
Quoted 3 lines · Stefano Bonifazi
Hi all!
version 0.13 of qemu does not make libqemu.a
Is this some choice of developers, or due to any problem?
The API provided by libqemu.a is not supported, so when the compile system was improved so that libqemu.a was no longer needed, it was decided to be dropped. This was during development of 0.11 I think.
These days, the only supported interface for integrating QEMU with other applications is QMP.
Quoted 11 lines · Blue Swirl
Quoted 3 lines · Stefano Bonifazi
Hi all!
version 0.13 of qemu does not make libqemu.a
Is this some choice of developers, or due to any problem?The API provided by libqemu.a is not supported, so when the compile system was improved so that libqemu.a was no longer needed, it was decided to be dropped. This was during development of 0.11 I think.
These days, the only supported interface for integrating QEMU with other applications is QMP.
Hi!
Thank you! You saved me from a lot of useless work then!
Is QMP some sort of server-client system? I mean the only way I might "control" qemu would be "remotely", isn't it?
So is there no more way of building a new application with inside qemu-capabilities?
I need to create an application that execute a PPC binary on a i386 host with some input, and get the result from that binary.. I thought I could use libqemu in some "user mode" way (i do not need the full system emulation) .. I can't simply call qemu-ppc, as I need everything to be in the same process .. I needed to do something like the qruncom test but with powerPC binaries .. What do you suggest? Thank you!
Best Regards!
Stefano B.
Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:
Quoted 1 line
I need to create an application that execute a PPC binary on a i386 host with some input, and get the result from that binary.. I thought I could use libqemu in some "user mode" way (i do not need the full system emulation) .. I can't simply call qemu-ppc, as I need everything to be in the same process ..
Why? Can't you just pass the input via command line?
Regards,
Andreas
Quoted 8 lines · Andreas Färber
Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:
Quoted 1 line
I need to create an application that execute a PPC binary on a i386 host with some input, and get the result from that binary.. I thought I could use libqemu in some "user mode" way (i do not need the full system emulation) .. I can't simply call qemu-ppc, as I need everything to be in the same process ..
Why? Can't you just pass the input via command line?
Regards,
Andreas
No I can't! First of all it is a specification of my project .. this "application" would be a SystemC TLM2 loosely timed module so it should be as fast as possible, it can't rely on "process intercommunication" all should be part of the same SystemC process.. moreover the inputs to be passed to the binary may be complex structs .. I'll need full access to the binaries address space for passing them someway the inputs .. Thank you for your interest! :)
Best Regards,
Stefano B.
Quoted 15 lines · Stefano Bonifazi
Quoted 9 lines · Andreas Färber
Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:
Quoted 5 lines
I need to create an application that execute a PPC binary on a i386 host with some input, and get the result from that binary.. I thought I could use libqemu in some "user mode" way (i do not need the full system emulation) .. I can't simply call qemu-ppc, as I need everything to be in the same process ..
Quoted 4 lines
Why? Can't you just pass the input via command line?
Regards,
Andreas
Quoted 6 lines
No I can't! First of all it is a specification of my project .. this "application" would be a SystemC TLM2 loosely timed module so it should be as fast as possible, it can't rely on "process intercommunication" all should be part of the same SystemC process.. moreover the inputs to be passed to the binary may be complex structs .. I'll need full access to the binaries address space for passing them someway the inputs ..
Are you aware of QEMU-SystemC:
http://www.greensocs.com/projects/QEMUSystemC
Perhaps that would be a better starting point than plain QEMU.
Quoted 4 lines · Blue Swirl
Are you aware of QEMU-SystemC:
http://www.greensocs.com/projects/QEMUSystemCPerhaps that would be a better starting point than plain QEMU.
Hi!
Thank you! Sure I already checked this project! I googled all the web for QEMU technical documents:) Even Chinese pages :D
QEMU-SystemC is great for electronic engineers, offering mixed simulation capabilities between QEMU devices and early SystemC designs (modules).. Engineers can test interaction of new devices since their first design with full systems .. Anyway that project simply allows QEMU to plug in a full architecture new SystemC modules through a bridge ..
My goal is opposite, I want SystemC to use a little part of QEMU only as a binary translation engine between PPC and i386 machines ..
Moreover that project is not updated to last QEMU version..
Surely I'll go back to it in case I don't manage to make SystemC sources compile fine with QEMU stuff ..
Thank You!
Best Regards!
Stefano B.
Am 19.12.2010 um 17:10 schrieb Blue Swirl:
Quoted 9 lines
Quoted 3 lines · Stefano Bonifazi
Hi all!
version 0.13 of qemu does not make libqemu.a
Is this some choice of developers, or due to any problem?The API provided by libqemu.a is not supported, so when the compile system was improved so that libqemu.a was no longer needed, it was decided to be dropped. This was during development of 0.11 I think.
In particular, on some platforms libqemu.a would seem to compile okay but the resulting QEMU executable would simply crash. We got around these --whole-archive issues by putting together lists of object files in Makefile.objs et al. that we can link into QEMU's executables directly.
It is theoretically possible for your application to integrate with our Makefiles and link to such objects directly. But again this is not supported and may break at any time. If you just need it for one assignment it may work - but don't expect instructions, you'd probably be the first one trying!
Regards,
Andreas
Quoted 6 lines · Andreas Färber
In particular, on some platforms libqemu.a would seem to compile okay but the resulting QEMU executable would simply crash. We got around these --whole-archive issues by putting together lists of object files in Makefile.objs et al. that we can link into QEMU's executables directly.
It is theoretically possible for your application to integrate with our Makefiles and link to such objects directly. But again this is not supported and may break at any time. If you just need it for one assignment it may work - but don't expect instructions, you'd probably be the first one trying!
Regards,
Andreas
Thank You for your warnings!
I am just a student, it is already very hard for me to understand all the mechanisms of QEMU.. I can't base my project on bugged sources, I would be not able of fixing them while developing my project upon them.. Any idea how to go on?
Maybe editing qemu-ppc, inserting inside my own code?
Thank you in advance!
Stefano B.