Re: [PATCH] linux-user/loongarch64: Decode BRK break codes for FPE signals

2025-04-23 Thread gaosong
在 2025/4/14 下午3:49, WANG Rui 写道: 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

[PATCH] linux-user/loongarch64: Decode BRK break codes for FPE signals

2025-04-14 Thread WANG Rui
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 correctnes