mbox series

[0/4] Improve getspr/putspr command

Message ID 20200723052641.561009-1-amitay@ozlabs.org
Headers show
Series Improve getspr/putspr command | expand

Message

Amitay Isaacs July 23, 2020, 5:26 a.m. UTC
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