gdb_server, target: Add target_address_bits() 47/4947/3
authorTim Newsome <tim@sifive.com>
Mon, 25 Feb 2019 22:02:30 +0000 (14:02 -0800)
committerMatthias Welwarsky <matthias@welwarsky.de>
Fri, 8 Mar 2019 14:05:19 +0000 (14:05 +0000)
commit57e30102ea440d77aa001e26eb901d0cbb305a30
treeed63b282decaa8a1fdbe04c2f4c213e56e493eae
parent85ba2dc4c6ab4c91f4461c2853660cc2cb9e2623
gdb_server, target: Add target_address_bits()

Targets can use this to expose how many address bits there are.
gdb_server uses this to send gdb the appropriate upper limit in the
memory-map. (Before this change the upper limit would only be correct
for 32-bit targets.)

Change-Id: Idb0933255ed53951fcfb05e040674bcdf19441e1
Signed-off-by: Tim Newsome <tim@sifive.com>
Reviewed-on: http://openocd.zylin.com/4947
Tested-by: jenkins
Reviewed-by: Peter Mamonov <pmamonov@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/server/gdb_server.c
src/target/riscv/riscv.c
src/target/target.c
src/target/target.h
src/target/target_type.h