[PATCH 0/3] MIPS: DSP ASE regset support

From: Maciej W. Rozycki
Date: Tue May 15 2018 - 18:33:19 EST


Hi,

For years, quite oddly, we have been missing DSP ASE register state from
core files. These days regsets are used to define what goes into a core
file, so here's a change adding one.

As a side effect ptrace(2) can now also access this regset, however no
complementing client implementation has been made. Eventually that'll
have to change though so that DSP ASE registers can be correctly accessed
in n32 processes, which suffer from ptrace(2) 32-bit data types truncating
contents exchanged by PTRACE_PEEKUSR and PTRACE_POKEUSR requests with
64-bit registers and no means defined to access partial registers via this
API.

In the course of this implementation I came across two bugs affecting the
area being updated and hence this has become a small patch series with the
audience wider than originally expected.

See individual commit descriptions for the details of changes made.

NB there is no strict functional dependency between 1/3 and 2/3-3/3, so
the order of commits does not have to be preserved as far as these two
subsets are concerned. However 3/3 does trigger the problem addressed
with 1/3 (and gracefully handles it), hence the grouping in a series.

Please apply.

Maciej