Skip to contentSkip to conversation

gen_op* function definitions

Qemu-devel Ryan W Smith 2 participants 2 messages Jan 4, 2008

lore
Share & tools
lore
#0 lore raw

I'm trying to figure out how the translation blocks are generated and I'm having a bit of difficulty. I'm trying to find and modify a particular instruction rep ins*, which I've found and it looks like it's being broken down into simpler instructions in the translation process. I've followed it all the way down to the most basic instructions, the first of which is gen_op_movl_A0_reg[EDI](), which translates to gen_op_movl_A0_EDI(). This is where I'm stuck, I can't find the definition for this function, or any of the gen_op* instructions for that matter anywhere in the qemu source. I must be missing something, can someone point me in the right direction to find the definitions for the gen_op* functions.

Thanks,
Ryan

#1 lore raw
Quoted 11 lines · Ryan W Smith

I'm trying to figure out how the translation blocks are generated and I'm having a bit of difficulty. I'm trying to find and modify a particular instruction rep ins*, which I've found and it looks like it's being broken down into simpler instructions in the translation process. I've followed it all the way down to the most basic instructions, the first of which is gen_op_movl_A0_reg[EDI](), which translates to gen_op_movl_A0_EDI(). This is where I'm stuck, I can't find the definition for this function, or any of the gen_op* instructions for that matter anywhere in the qemu source. I must be missing something, can someone point me in the right direction to find the definitions for the gen_op* functions.

op.c is compiled and the resulting object file op.o is processed by dyngen program, producing gen-op.h, opc.h, and op.h. These define the gen_op* versions of the functions, originally op_something in op.c.