qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 19/20] cpus: Register VMState per user / system emulation


From: Richard Henderson
Subject: Re: [PATCH 19/20] cpus: Register VMState per user / system emulation
Date: Sun, 26 Jan 2025 13:35:25 -0800
User-agent: Mozilla Thunderbird

On 1/23/25 15:44, Philippe Mathieu-Daudé wrote:
Simplify cpu-target.c by extracting mixed vmstate code
into the cpu_vmstate_register() / cpu_vmstate_unregister()
helpers, implemented in cpu-user.c and cpu-system.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
XXX: tlb_flush() temporary declared manually.

Only 2 more CONFIG_USER_ONLY to go.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

--- a/hw/core/cpu-system.c
+++ b/hw/core/cpu-system.c
@@ -22,10 +22,21 @@
  #include "qapi/error.h"
  #include "exec/address-spaces.h"
  #include "exec/memory.h"
+#include "exec/tb-flush.h"
  #include "exec/tswap.h"
  #include "hw/qdev-core.h"
  #include "hw/qdev-properties.h"
  #include "hw/core/sysemu-cpu-ops.h"
+#include "migration/vmstate.h"
+#include "system/tcg.h"
+
+/*
+ * XXX this series plan is to be applied on top on my exec/cputlb rework 
series,
+ * then tlb_flush() won't be declared target-specific in exec-all.h.
+ * Meanwhile, declare locally.
+ * XXX
+ */
+void tlb_flush(CPUState *cs);

Ack.


r~



reply via email to

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