[Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-05-15 Thread Alexander Graf
When QEMU gets compiled with --enable-debug-tcg we can check for temporary leakage. Implement the necessary target code for this and fail emulation when we hit a leakage. This hopefully ensures that we don't get new leaks. Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/translate.c |

[Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Alexander Graf
When QEMU gets compiled with --enable-debug-tcg we can check for temporary leakage. Implement the necessary target code for this and fail emulation when we hit a leakage. This hopefully ensures that we don't get new leaks. Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/translate.c |

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Peter Maydell
On 19 January 2014 16:32, Alexander Graf ag...@suse.de wrote: When QEMU gets compiled with --enable-debug-tcg we can check for temporary leakage. Implement the necessary target code for this and fail emulation when we hit a leakage. This hopefully ensures that we don't get new leaks.

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Alexander Graf
On 19.01.2014, at 17:51, Peter Maydell peter.mayd...@linaro.org wrote: On 19 January 2014 16:32, Alexander Graf ag...@suse.de wrote: When QEMU gets compiled with --enable-debug-tcg we can check for temporary leakage. Implement the necessary target code for this and fail emulation when we hit

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Peter Maydell
On 19 January 2014 20:15, Alexander Graf ag...@suse.de wrote: On 19.01.2014, at 17:51, Peter Maydell peter.mayd...@linaro.org wrote: Exiting is pretty harsh; ARM just warns and continues. Well, the check only ever happens when QEMU gets compiled with --enable-debug-tcg, so I figured it's

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Alexander Graf
On 19.01.2014, at 21:52, Peter Maydell peter.mayd...@linaro.org wrote: On 19 January 2014 20:15, Alexander Graf ag...@suse.de wrote: On 19.01.2014, at 17:51, Peter Maydell peter.mayd...@linaro.org wrote: Exiting is pretty harsh; ARM just warns and continues. Well, the check only ever

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Peter Maydell
On 19 January 2014 20:55, Alexander Graf ag...@suse.de wrote: On 19.01.2014, at 21:52, Peter Maydell peter.mayd...@linaro.org wrote: Longer term I was wondering if we should define the concept of a 'scope object' for TCG temporaries, so you create a scope object and then we have versions of

Re: [Qemu-devel] [PATCH 2/2] PPC: Fail on leaking temporaries

2014-01-19 Thread Alexander Graf
On 19.01.2014, at 22:04, Peter Maydell peter.mayd...@linaro.org wrote: On 19 January 2014 20:55, Alexander Graf ag...@suse.de wrote: On 19.01.2014, at 21:52, Peter Maydell peter.mayd...@linaro.org wrote: Longer term I was wondering if we should define the concept of a 'scope object' for TCG