Re: [Qemu-devel] Self-modifying code with REP-prefix on TCG

2013-11-18 Thread Richard Henderson
On 11/19/2013 05:47 AM, Clemens Kolbitsch wrote: > Getting around this is not trivial, so if it's a new issue, does anyone have > an > idea how to approach it most meaningfully? I was thinking about detecting this > very specific case and marking the TB for re-translation only after the TB is > ex

[Qemu-devel] Self-modifying code with REP-prefix on TCG

2013-11-18 Thread Clemens Kolbitsch
Hi guys, a quick search on the archives did not reveal anything - if this is already a known issue, please don't kick me ;) We encountered an issue using TCG, where self-modifying code is overwriting the executing instruction, causing different behavior in TCG and a real CPU. Clearly, when code

Re: [Qemu-devel] self modifying code

2011-11-25 Thread 陳韋任
On Fri, Nov 25, 2011 at 08:15:33AM -0500, Xin Tong wrote: > I have 2 questions regarding self modifying code on qemu. > > 1. how does qemu detect self modifying code. > 2. does qemu flush the code cache completely or partially when self > modifying code is encountered ? I mean qemu does NOT the

Re: [Qemu-devel] self modifying code

2011-11-25 Thread 陳韋任
On Fri, Nov 25, 2011 at 08:15:33AM -0500, Xin Tong wrote: > I have 2 questions regarding self modifying code on qemu. > > 1. how does qemu detect self modifying code. > 2. does qemu flush the code cache completely or partially when self > modifying code is encountered ? > > Thanks > > Xin How

[Qemu-devel] self modifying code

2011-11-25 Thread Xin Tong
I have 2 questions regarding self modifying code on qemu. 1. how does qemu detect self modifying code. 2. does qemu flush the code cache completely or partially when self modifying code is encountered ? Thanks Xin