[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] Hexagon: fix signal context save & restore bug
From: |
Mukilan Thiyagarajan |
Subject: |
[PATCH 0/2] Hexagon: fix signal context save & restore bug |
Date: |
Tue, 27 Dec 2022 21:04:45 +0530 |
This patchset is to fix the issue discovered in this thread
when hexagon toolchain was upgraded to a newer version.
https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg01102.html
Investigation revealed that the bug was not in the
toolchain as suspected in the above thread, but in the
hexagon specific logic in linux-user for saving & restoring
thread context during signal delivery.
The first patch contains the fix for the issue along with a
test case and the second patch contains the change to rename
the enum for HEX_REG_P3_0 register, to provide some warning
to new code that it is an aliased version of the
individual predicate registers.
- Mukilan
Mukilan Thiyagarajan (2):
linux-user/hexagon: fix signal context save & restore
target/hexagon: rename aliased register HEX_REG_P3_0
linux-user/hexagon/signal.c | 17 +++---
target/hexagon/cpu.c | 6 +--
target/hexagon/genptr.c | 12 ++---
target/hexagon/hex_regs.h | 2 +-
tests/tcg/hexagon/Makefile.target | 1 +
tests/tcg/hexagon/signal_context.c | 84 ++++++++++++++++++++++++++++++
6 files changed, 106 insertions(+), 16 deletions(-)
create mode 100644 tests/tcg/hexagon/signal_context.c
--
2.17.1