Skip to contentSkip to conversation

gen_op_stl_raw_T0_A0 and the softmmu

Qemu-devel [email protected] 2 participants 2 messages Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

Hello everybody,

I am working on a project that extends qemu to track the memory accesses. All the functions in target-i386/ops_mem.h are instrumented. Logging the reads work fine, the writes give are troublesome. The code that I am tracking contains a lot of xor instructions.

I have tracked the generation of an example xorl $0x9432bf80, (%esi) instruction in target-i386/translate.c. The result of the xorl instruction results in the generation of op_stl_raw_T0_A0 by gen_op_stl_raw_T0_A0. The op_stl_raw_T0_A0 instruction in instrumented in the ops_mem.h header file but somehow nothing is logged.

So to conclude, the reads are logged, but the writes give me some problems. Is there any documentation regarding to the softmmu and these memory operands.

Kind regards,

Remco

#1 lore raw
Quoted 11 lines · On Tue, Nov 24, 2009 at 7:51 PM, <[email protected]> wrote:

I am working on a project that extends qemu to track the memory accesses. All the functions in target-i386/ops_mem.h are instrumented. Logging the reads work fine, the writes give are troublesome. The code that I am tracking contains a lot of xor instructions.

I have tracked the generation of an example xorl $0x9432bf80, (%esi) instruction in target-i386/translate.c. The result of the xorl instruction results in the generation of op_stl_raw_T0_A0 by gen_op_stl_raw_T0_A0. The op_stl_raw_T0_A0 instruction in instrumented in the ops_mem.h header file but somehow nothing is logged.

You seem to be using a very old version of QEMU. You'd better use a more recent one if you want to get more help :-)

Laurent

Quoted 9 lines

So to conclude,  the reads are logged, but the writes give me some problems. Is there any documentation regarding to the softmmu and these memory operands.

Kind regards,

Remco