aboutsummaryrefslogtreecommitdiff
path: root/hw/mips/loongson3_bootp.c
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-05-08 10:31:09 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-09 00:07:21 +0200
commit5b1a3b9f8c0fbcd2420977678601948d7573c809 (patch)
tree5b8cc0f07f4b71c8d49ad10e86aa8af3ceef0202 /hw/mips/loongson3_bootp.c
parentd804ad98f51cc6ae795ff9c9890db66bae513214 (diff)
downloadqemu-5b1a3b9f8c0fbcd2420977678601948d7573c809.zip
qemu-5b1a3b9f8c0fbcd2420977678601948d7573c809.tar.gz
qemu-5b1a3b9f8c0fbcd2420977678601948d7573c809.tar.bz2
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>
Diffstat (limited to 'hw/mips/loongson3_bootp.c')
-rw-r--r--hw/mips/loongson3_bootp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/mips/loongson3_bootp.c b/hw/mips/loongson3_bootp.c
index f99af22..03a10b6 100644
--- a/hw/mips/loongson3_bootp.c
+++ b/hw/mips/loongson3_bootp.c
@@ -148,4 +148,5 @@ void init_reset_system(struct efi_reset_system_t *reset)
reset->Shutdown = cpu_to_le64(0xffffffffbfc000a8);
reset->ResetCold = cpu_to_le64(0xffffffffbfc00080);
reset->ResetWarm = cpu_to_le64(0xffffffffbfc00080);
+ reset->DoSuspend = cpu_to_le64(0xffffffffbfc000d0);
}