[Pdbg] [PATCH 0/4] Improve getspr/putspr command

Amitay Isaacs amitay at ozlabs.org
Thu Jul 23 15:26:37 AEST 2020


Currently getspr/putspr command does not support all SPRs by id.  There are
few SPRs (e.g. NIA, CR, etc.) which have special -ve number assigned to them
for getspr/putspr interface.

Instead allow getspr/putspr commands to use names of the SPRs and support
get/set for all SPRs.  This also adds libpdbg apis to translate between SPR
names and ids.

Amitay Isaacs (4):
  libpdbg: Use spr specific procedures if defined
  libpdbg: Add apis to convert between spr name and id
  main: Drop special commands for getting/setting few sprs
  main: Change (get|put)spr command to use spr names

 Makefile.am       |   1 +
 libpdbg/libpdbg.h |  18 +++++
 libpdbg/sprs.c    | 200 ++++++++++++++++++++++++++++++++++++++++++++++
 libpdbg/thread.c  |  37 +++++++++
 src/main.c        |  12 ---
 src/parsers.c     |  11 ++-
 src/reg.c         | 140 +++++++-------------------------
 7 files changed, 288 insertions(+), 131 deletions(-)
 create mode 100644 libpdbg/sprs.c

-- 
2.26.2



More information about the Pdbg mailing list