Re: [Qemu-devel] Expensive emulation of CPU condition flags

2016-07-01 Thread Richard Henderson
On 06/30/2016 11:13 AM, Shuang Zhai wrote: We wonder if there exists any optimization, e.g., directly mapping the frontend flags to that of the backend? Any suggestions are appreciated. Directly mapping frontend to backend flags is a non-starter, since not all backends have those flags. Ther

[Qemu-devel] Expensive emulation of CPU condition flags

2016-06-30 Thread Shuang Zhai
Hi everyone. In running an ARMv7 guest on an x86 host, we observed that a guest instruction affecting condition flags is often translated into 10+ host instructions. The reason seems to be the way that the frontend emulates the condition flags. For instance: Target ARM instruction: cmp r9,