aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2023-10-12 14:41:23 +0800
committerSong Gao <gaosong@loongson.cn>2023-10-13 10:04:52 +0800
commit89daabe385a58f52ee902c203bb9560f8c914e8f (patch)
treecdfa50e66a064223e0b651dbde61d5acea584acc /tests
parent3866e2f98ef4f9b84d920af31a98c4c642ff8d77 (diff)
hw/loongarch/virt: Remove unused 'loongarch_virt_pm' region
The system test shutdown uses the 'loongarch_virt_pm' region. We can use the write AcpiFadtData.sleep_clt register to realize the shutdown. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-ID: <20231012072351.1409344-1-gaosong@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'tests')
-rw-r--r--tests/tcg/loongarch64/system/boot.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tcg/loongarch64/system/boot.S b/tests/tcg/loongarch64/system/boot.S
index 67eb1c04ce..37a81bafe7 100644
--- a/tests/tcg/loongarch64/system/boot.S
+++ b/tests/tcg/loongarch64/system/boot.S
@@ -21,9 +21,10 @@ _start:
.align 16
_exit:
2: /* QEMU ACPI poweroff */
- li.w t0, 0xff
- li.w t1, 0x10080010
- st.w t0, t1, 0
+ li.w t0, 0x34
+ li.w t1, 0x100e001c
+ st.b t0, t1, 0
+
idle 0
bl 2b