2007/4/25, Atif Hashmi <address@hidden>:
Instructions
like addl %ebx, (%eax) are also considered to be memory refernce instructions.
Do these type of instructions also refer to the functions that you
mentioned.
No. You are using __asm_volatile("mov %al %al") to mark the start of your transaction and __asm_volatile("mov %bl %bl") to mark the end. What I meant is that your compiler could generate mov %al,%al or mov %bl,%bl in any other place for whatever reason when it compiles C code. Also your guest OS or any other program running in it can use these two instructions too. Both cases would affect in what you intend to do.
Secondly, what is the purpose of undef ASM_SOFTMMU
If ASM_SOFTMMU is defined, pure assembly memory access routines are used (faster). If it is not defined, alternative C routines are used, which are slower but easier to modify.
Regards,
Eduardo