]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/loongarch: Implement lbt registers save/restore function
authorBibo Mao <maobibo@loongson.cn>
Sun, 29 Sep 2024 07:04:05 +0000 (15:04 +0800)
committerSong Gao <gaosong@loongson.cn>
Sat, 2 Nov 2024 07:20:41 +0000 (15:20 +0800)
commita45df286013270868e6d6e94c287dff19339a4b4
treee77acf3be0b1c0255da6ce9fb0d9380c07bca899
parentc23a53d89429d9181bc0423e2708851b02b9ff4a
target/loongarch: Implement lbt registers save/restore function

Six registers scr0 - scr3, eflags and ftop are added in percpu vmstate.
And two functions kvm_loongarch_get_lbt/kvm_loongarch_put_lbt are added
to save/restore lbt registers.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240929070405.235200-3-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu.h
target/loongarch/kvm/kvm.c
target/loongarch/machine.c