qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 3/4] accel/tcg: Guard tb_flush() with tcg_enabled() and r


From: Harsh Prateek Bora
Subject: Re: [RFC PATCH 3/4] accel/tcg: Guard tb_flush() with tcg_enabled() and remove the stub
Date: Tue, 19 Sep 2023 12:22:20 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0



On 9/15/23 21:12, Philippe Mathieu-Daudé wrote:
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.

I guess you meant asserting in else case of the check inside ?
We may want to have the check internally only than having every caller to do that.



Thanks
Harsh

Signed-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(-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]