qemu/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 linux-user: Move tswap_siginfo out of target code 2024-03-13 11:43:52 +00:00
sockbits.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
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 linux-user: Add LoongArch cpu_loop support 2022-07-04 11:08:57 +05:30
target_elf.h linux-user: Add LoongArch elf support 2022-07-04 11:08:57 +05:30
target_errno_defs.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
target_fcntl.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
target_mman.h linux-user: Define ELF_ET_DYN_BASE in $guest/target_mman.h 2023-08-08 13:27:15 -07:00
target_prctl.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
target_proc.h linux-user: Split out cpu/target_proc.h 2023-09-01 13:33:09 -07:00
target_resource.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
target_signal.h linux-user: Add LoongArch signal support 2022-07-04 11:08:57 +05:30
target_structs.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
target_syscall.h linux-user/loongarch64: Remove TARGET_FORCE_SHMLBA 2024-02-29 14:24:30 -10:00
termbits.h linux-user: Add LoongArch generic header files 2022-07-04 11:08:57 +05:30
vdso-asmoffset.h linux-user/loongarch64: Add vdso 2023-10-30 13:41:55 -07:00
vdso.ld linux-user/loongarch64: Add vdso 2023-10-30 13:41:55 -07:00
vdso.S linux-user/loongarch64: Add vdso 2023-10-30 13:41:55 -07:00
vdso.so linux-user/loongarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00