flash/nor/core: adjust flash_iterate_address_range_inner() for 64-bit 85/4985/2
authorTomas Vanek <vanekt@fbl.cz>
Sat, 2 Mar 2019 08:51:23 +0000 (09:51 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Wed, 27 Mar 2019 08:53:29 +0000 (08:53 +0000)
commit21ef7e30d4f47a78e2b3aacedd425f0966465352
tree86c9fdd15481914b11b4d6df91bbfa86338fb6da
parentbc72695f6738951571502706bd48680de5ccc84c
flash/nor/core: adjust flash_iterate_address_range_inner() for 64-bit

Use target_addr_t exclusively for comparison of sector boudaries and
address range.

Use the last addres for both address range end and sector end.
It avoids problems with a flash bank mapped at the very end of
target address space.

Change-Id: Idf97c837453d97cbc4cf8a1c76ad799f4142f19e
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4985
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/flash/nor/core.c