On 8/5/24 17:35, Philippe Mathieu-Daudé wrote:
On 8/5/24 11:31, Jiaxun Yang wrote:
Suspend function is emulated as what hardware actually do.
Doorbell register fields are updates to include suspend value,
suspend vector is encoded in firmware blob and fw_cfg is updated
to include S3 bits as what x86 did.

Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
---
  hw/mips/loongson3_bootp.c |  1 +
  hw/mips/loongson3_virt.c  | 19 +++++++++++++++++++
  2 files changed, 20 insertions(+)

Thanks, patch queued.

Fixed:

ERROR: use g_memdup2() instead of unsafe g_memdup()
#76: FILE: hw/mips/loongson3_virt.c:293:
+    fw_cfg_add_file(fw_cfg, "etc/system-states", g_memdup(suspend, 6), 6);

Reply via email to