]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler
authorHelge Deller <deller@gmx.de>
Thu, 27 Oct 2022 06:58:37 +0000 (08:58 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 2 Nov 2022 16:14:02 +0000 (17:14 +0100)
commitdcd86148e23509fb2cedeb5ac38c20763b71141f
tree606e13b25224b268e3907f68b6cd274fd88e6520
parenta11f65ec1b8adcb012b89c92819cbda4dc25aaf1
linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler

The glibc on the hppa platform uses the "iitlbp %r0,(%sr0, %r0)"
assembler instruction as ABORT_INSTRUCTION.
If this (in userspace context) illegal assembler statement is found,
dump the registers and report the failure to userspace the same way as
the Linux kernel on physical hardware.

For other illegal instructions report TARGET_ILL_ILLOPC instead of
TARGET_ILL_ILLOPN as si_code.

Additionally add the missing EXCP_BREAK exception handler which occurs
when the "break x,y" assembler instruction is executed and report
EXCP_ASSIST traps.

Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <Y1osHVsylkuZNUnY@p100>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/hppa/cpu_loop.c