|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [RFC PATCH 3/4] accel/tcg: Guard tb_flush() with tcg_enabled() and remove the stub |
Date: | Fri, 15 Sep 2023 17:42:56 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 |
On 15/9/23 17:25, Harsh Prateek Bora wrote:
On 9/15/23 01:22, Philippe Mathieu-Daudé wrote:The check on tcg_enabled() make it clearer we want this call under TCG.tb_flush already has a check for tcg_enabled() in its definition. Do we really need to check for same before calling it?
Good point, I didn't notice. I'll replace the call in tb_flush() by an assertion.
Thanks HarshSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- accel/stubs/tcg-stub.c | 4 ---- cpu.c | 15 +++++++++------ gdbstub/softmmu.c | 5 ++++- hw/ppc/spapr_hcall.c | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-)
[Prev in Thread] | Current Thread | [Next in Thread] |