[Qemu-devel] User mode restart execution

2010-12-07 Thread John Vele
Grettings, I am using user mode qemu for running stand-alone i386 binaries in linux. What I want to do is this: I want to run a binary until it ends, but I don't want qemu-i386 to exit (that is what it does normally) but restart the execution of the same binary from the beginning without exiting.

[Qemu-devel] Compile qemu-i386 as library

2010-05-24 Thread John Vele
Greetings, I want to compile the i386 linux user part of qemu as a library (Shared or static) to use it with other applications. (Right now it produces a ./i386-linux-user/qemu-i386 executable). Anyone does know if this is possible? Which Makefile shall I edit? Thanx in advance

[Qemu-devel] Print input opcodes before translation

2010-05-10 Thread John Vele
Greetings, I'm using qemu user mode for i386 and I would like to print the opcodes of an input executable one bye one before any translation. Is the file target-i386/translate.c the one that I shall edit? The function disas_insn() in the same file is the appropriate one? Thanx in advance

[Qemu-devel] Print inpit assembly

2010-04-10 Thread John Vele
Hello to all, I am using i386 linux user mode to run linux i386 binaries. I was wondering if there is way to print the input assembly of the executable. I run: ./i386-linux-user/qemu-i386 -d in_asm ../executable but I don't know exactly what in_asm stands for: is it the exact assembly of the exe

[Qemu-devel] Execute a char buffer without loading ELF

2010-03-23 Thread John Vele
Hello, I am involved in a project that we use Qemu user mode for i386 (./i386-linux-user/qemu-i386). I want to modify the source code in such a way to make qemu execute a buffer of bytes (given from the comman line for example) rather than loading an ELF file and executing. I started looking at li