Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-15 Thread Peter Maydell
On 14 January 2012 14:48, Aurelien Jarno wrote: > On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: >> When doing TCG code translation, the target-foo translate.c >> code is allowed to bake assumptions into the generated code from >> the current values of various fields in the CPUStat

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-14 Thread Aurelien Jarno
On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: > When doing TCG code translation, the target-foo translate.c > code is allowed to bake assumptions into the generated code from > the current values of various fields in the CPUState. This then > imposes the requirement that if the fie

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-13 Thread 陳韋任
On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: > When doing TCG code translation, the target-foo translate.c > code is allowed to bake assumptions into the generated code from > the current values of various fields in the CPUState. This then > imposes the requirement that if the fie

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-13 Thread Peter Maydell
On 13 January 2012 07:55, 陳韋任 wrote: > On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: >> When doing TCG code translation, the target-foo translate.c >> code is allowed to bake assumptions into the generated code from >> the current values of various fields in the CPUState. This the

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-12 Thread Andreas Färber
Am 12.01.2012 15:00, schrieb Peter Maydell: > When doing TCG code translation, the target-foo translate.c > code is allowed to bake assumptions into the generated code from > the current values of various fields in the CPUState. This then > imposes the requirement that if the field is changed then

[Qemu-devel] throwing away translated code on CPU reset

2012-01-12 Thread Peter Maydell
When doing TCG code translation, the target-foo translate.c code is allowed to bake assumptions into the generated code from the current values of various fields in the CPUState. This then imposes the requirement that if the field is changed then tb_flush must be called to throw away the now-incorr