qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 04/31] target/loongarch: Add basic vmstate description of CPU


From: Richard Henderson
Subject: Re: [PATCH 04/31] target/loongarch: Add basic vmstate description of CPU.
Date: Tue, 19 Oct 2021 12:35:55 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/19/21 12:34 AM, Xiaojuan Yang wrote:
+#ifndef CONFIG_USER_ONLY
+#include "hw/core/sysemu-cpu-ops.h"
+
+static const struct SysemuCPUOps loongarch_sysemu_ops = {
+    .legacy_vmsd = &vmstate_loongarch_cpu,
+};
+#endif
The documentation for legacy_vmsd is quite clear:

    Do not use in new targets, use #DeviceClass::vmsd instead.

+/* LoongArch CPU state */
+
+const VMStateDescription vmstate_loongarch_cpu = {
+    .name = "cpu",
+    .version_id = 20,
+    .minimum_version_id = 20,

Version id should start at 0.


r~



reply via email to

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