Hello In tcg_gen_qemu_ld8s(tmp, addr, index); a TCGv addr is passed to the INDEX_op_qemu_ld8s as param and the loaded value is passed back in tmp. i want to get the translated value as well. how can i do that ?
one way i can think of right now is to modify the INDEX_op_qemu_ld8s and make it take one more TCGv and pass the translated address back there. but this may need non-trial modifications to the target-* and tcg. another way is to pass out the translated address in the TCGv addr. but it seems the register TCGv addr is assigned to is saved (edx on i386 linux) before entering the translation. how can i make addr clobberable in the tcg_out_qemu_ld/tcg_out_qemu_st ? Thanks Xin