]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/mips/loongson3_virt: Emulate suspend function
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 8 May 2024 09:31:09 +0000 (10:31 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 May 2024 22:07:21 +0000 (00:07 +0200)
commit5b1a3b9f8c0fbcd2420977678601948d7573c809
tree5b8cc0f07f4b71c8d49ad10e86aa8af3ceef0202
parentd804ad98f51cc6ae795ff9c9890db66bae513214
hw/mips/loongson3_virt: Emulate suspend function

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.yang@flygoat.com>
Message-ID: <20240508-loongson3v-suspend-v1-1-186725524a39@flygoat.com>
[PMD: Use g_memdup2(), constify suspend array]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/mips/loongson3_bootp.c
hw/mips/loongson3_virt.c