aboutsummaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorWANG Rui <wangrui@loongson.cn>2025-04-14 15:49:52 +0800
committerSong Gao <gaosong@loongson.cn>2025-04-24 10:46:09 +0800
commita9d3d1dff6f9e1544e8a84e74645b8e4fe08c0ad (patch)
tree766501cbd7a94e1cd8f0235132e62cd17d917745 /rust
parent0d4c2e408d418ec5c412ec9f58e7b8f3aecc6948 (diff)
downloadqemu-a9d3d1dff6f9e1544e8a84e74645b8e4fe08c0ad.zip
qemu-a9d3d1dff6f9e1544e8a84e74645b8e4fe08c0ad.tar.gz
qemu-a9d3d1dff6f9e1544e8a84e74645b8e4fe08c0ad.tar.bz2
linux-user/loongarch64: Decode BRK break codes for FPE signals
Handle specific LoongArch BRK break codes in user-mode emulation to deliver accurate floating-point exception signals. Specifically, BRK_OVERFLOW (6) triggers TARGET_FPE_INTOVF, and BRK_DIVZERO (7) triggers TARGET_FPE_INTDIV. Other BRK codes fall back to a generic SIGTRAP. This improves correctness for programs that rely on BRK to signal overflow or divide-by-zero conditions. Signed-off-by: WANG Rui <wangrui@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Message-Id: <20250414074952.6253-1-wangrui@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions