[Qemu-devel] User mode restart execution
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. I tried to modify the source code (where it starts to execute a loaded binary) but I don't know what variables or structs must be reinitialized in order to start the execution from the beginning of binary without exiting. Any comment will be very very helpuf. Thanx in advance
[Qemu-devel] Compile qemu-i386 as library
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
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
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 executable before any processing by the Qemu or it is an input assembly after some processing? Thanx in advance
[Qemu-devel] Execute a char buffer without loading ELF
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 linux-user/linuxload.c loader_exec() function and linux-user/elfload.c load_elf_binary() function. Is there a way to bypass the loading of an ELF file and load a single buffer of bytes (that is i386 code) into memory and make Qemu start execution on it? Any help or comment is very very appreciated. Thanx in advance