mbox series

[0/5] Introduce new api mem_read/mem_write

Message ID 20190107043020.145107-1-amitay@ozlabs.org
Headers show
Series Introduce new api mem_read/mem_write | expand

Message

Amitay Isaacs Jan. 7, 2019, 4:30 a.m. UTC
The current api for reading/writing memory is adu specific with functions
prefixed with adu_.  Introduce a new api for memory read/write similar to
the other read/write functions for consistency.

This will make adding other hardware units capable of reading memory
(e.g. sbefifo) easier.

Amitay Isaacs (5):
  adu: Convert __adu_{get,put}mem_blocksize to adu functions
  adu: Add read/write methods for adu target
  adu: Set default blocksize for adu
  adu: Add new api for memory read/write
  main: Use new api to read/write memory

 libpdbg/adu.c     | 84 ++++++++++++++++++++++++++++++++++-------------
 libpdbg/libpdbg.h |  3 ++
 libpdbg/target.c  | 20 +++++++++++
 libpdbg/target.h  |  2 ++
 src/mem.c         | 28 ++++++----------
 src/pdbgproxy.c   |  6 ++--
 src/thread.c      |  2 +-
 7 files changed, 101 insertions(+), 44 deletions(-)