[Top][All Lists]

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

Re: [PATCH-for-8.0 1/4] cputlb: Restrict SavedIOTLB to system emulation

From: Philippe Mathieu-Daudé
Subject: Re: [PATCH-for-8.0 1/4] cputlb: Restrict SavedIOTLB to system emulation
Date: Thu, 8 Dec 2022 11:00:32 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 8/12/22 09:40, Alex Bennée wrote:

Philippe Mathieu-Daudé <philmd@linaro.org> writes:

Commit 2f3a57ee47 ("cputlb: ensure we save the IOTLB data in
case of reset") added the SavedIOTLB structure -- which is
system emulation specific -- in the generic CPUState structure.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  accel/tcg/cputlb.c    | 4 ++--
  include/hw/core/cpu.h | 6 ++++--
  2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
index 6f1c00682b..0ea96fbcdf 100644
--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -1395,7 +1395,7 @@ static uint64_t io_readx(CPUArchState *env, 
CPUTLBEntryFull *full,
  static void save_iotlb_data(CPUState *cs, MemoryRegionSection *section,
                              hwaddr mr_offset)
+#if defined(CONFIG_PLUGIN) && !defined(CONFIG_USER_ONLY)

cputlb is softmmu only so I don't think we need to check CONFIG_USER_ONLY here.
Indeed, only "hw/core/cpu.h" requires it, thanks!

reply via email to

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