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