On 22 January 2014 19:35, Xin Tong <trent.t...@gmail.com> wrote: > It seems that BOCHS have AVX instructions support in interpreter. I am > thinking an easy/reliable way to do this would be generate helper > calls to emulate every AVX instruction and follow how BOCHS emulates > them. Then depending on the expected frequency and difficulties, one > can decide whether to move some of the instructions into TCG JITted > code ?
I would recommend implementing them from scratch for QEMU based on the Intel architecture documentation. That will produce much nicer results. > Also, it would be desirable to use the MMX/SSE structures and > functions that already exist in QEMU target-i386/translate.c It would certainly be advisable to use them where there is commonality. thanks -- PMM