diff options
author | WANG Rui <wangrui@loongson.cn> | 2025-08-04 21:22:12 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2025-08-08 09:18:44 +0800 |
commit | e66644c48e96e81848c6aa94b185f59fc212d080 (patch) | |
tree | f582d4b35cb2be33b74617fc572081143e07802a /rust/qemu-api/tests/vmstate_tests.rs | |
parent | cd21ee5b27b22ae66c103d36516aa5077881aa3d (diff) | |
download | qemu-e66644c48e96e81848c6aa94b185f59fc212d080.zip qemu-e66644c48e96e81848c6aa94b185f59fc212d080.tar.gz qemu-e66644c48e96e81848c6aa94b185f59fc212d080.tar.bz2 |
target/loongarch: Fix [X]VLDI raising exception incorrectly
According to the specification, [X]VLDI should trigger an invalid instruction
exception only when Bit[12] is 1 and Bit[11:8] > 12. This patch fixes an issue
where an exception was incorrectly raised even when Bit[12] was 0.
Test case:
```
.global main
main:
vldi $vr0, 3328
ret
```
Reported-by: Zhou Qiankang <wszqkzqk@qq.com>
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-ID: <20250804132212.4816-1-wangrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'rust/qemu-api/tests/vmstate_tests.rs')
0 files changed, 0 insertions, 0 deletions