qemu-cr16/linux-user/loongarch64
WANG Rui a9d3d1dff6 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>
2025-04-24 10:46:09 +08:00
..
cpu_loop.c linux-user/loongarch64: Decode BRK break codes for FPE signals 2025-04-24 10:46:09 +08:00
Makefile.vdso linux-user/loongarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
meson.build linux-user,loongarch: move to syscalltbl file 2024-09-22 09:30:18 +02:00
signal.c
sockbits.h
syscall.tbl linux-user,loongarch: move to syscalltbl file 2024-09-22 09:30:18 +02:00
syscallhdr.sh linux-user,loongarch: move to syscalltbl file 2024-09-22 09:30:18 +02:00
target_cpu.h
target_elf.h
target_errno_defs.h
target_fcntl.h
target_mman.h
target_prctl.h
target_proc.h
target_resource.h
target_signal.h
target_structs.h
target_syscall.h
termbits.h
vdso-asmoffset.h
vdso.ld
vdso.S
vdso.so linux-user/loongarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00