[Pdbg] [PATCH 0/5] Introduce new api mem_read/mem_write
Amitay Isaacs
amitay at ozlabs.org
Mon Jan 7 15:30:15 AEDT 2019
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(-)
--
2.20.1
More information about the Pdbg
mailing list