linux-user/mips: Improve do_break
commitbf19bdb8f39a3aeb1353d412669b958c2b6cece8
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jan 2022 21:32:33 +0000 (7 13:32 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 11 Jan 2022 17:40:44 +0000 (11 18:40 +0100)
tree72e51a12efdd3c06f69c3075ba9e8dbe096fe68c
parent0b25c4a1f6345994d103ad08b2f4e1b366131dd9
linux-user/mips: Improve do_break

Rename to do_tr_or_bp, as per the kernel function.
Add a 'trap' argument, akin to the kernel's si_code, but clearer.
The return value is always 0, so change the return value to void.
Use force_sig and force_sig_fault.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220107213243.212806-15-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/mips/cpu_loop.c