openocd/src/flash/nor
Tomas Vanek 21ef7e30d4 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>
2019-03-27 08:53:29 +00:00
..
aduc702x.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
aducm360.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
ambiqmicro.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
at91sam3.c flash/nor: use default_flash_blank_check() instead of dummy 2018-12-05 07:55:53 +00:00
at91sam4.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
at91sam4l.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
at91sam7.c target, flash: prepare infrastructure for multi-block blank check 2018-04-10 06:16:40 +01:00
at91samd.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
ath79.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
atsame5.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
atsamv.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
avrf.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
bluenrg-x.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
cc26xx.c flash/nor: update CC26xx/CC13xx support 2018-12-11 13:27:17 +00:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c flash/nor: update cc3220sf for issue found in code review 2018-12-11 13:27:29 +00:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
cfi.h cfi: Add support for strangely endianness broken SoC implementations 2016-06-23 07:39:57 +01:00
core.c flash/nor/core: adjust flash_iterate_address_range_inner() for 64-bit 2019-03-27 08:53:29 +00:00
core.h flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
driver.h flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
drivers.c flash/nor: flash driver and cfg for SAM E54, E53, E51 and D51 2019-02-05 17:45:18 +00:00
dsp5680xx_flash.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
efm32.c efm32: correct erase address if bank->base != 0 2018-11-18 08:22:18 +00:00
em357.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
esirisc_flash.c flash/esirisc: refactor register write protection 2018-12-12 08:48:11 +00:00
faux.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
fespi.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
fm3.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
fm4.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
jtagspi.c SPI table updates (some new devices and new info) 2018-11-29 08:18:24 +00:00
kinetis_ke.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
kinetis.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
lpc288x.c flash/nor: use default_flash_blank_check() instead of dummy 2018-12-05 07:55:53 +00:00
lpc2000.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
lpc2900.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
lpcspifi.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
Makefile.am flash/nor: flash driver and cfg for SAM E54, E53, E51 and D51 2019-02-05 17:45:18 +00:00
max32xxx.c max32xxx: Support for MAX32XXX devices. 2018-08-21 19:24:58 +01:00
mdr.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
mrvlqspi.c SPI table updates (some new devices and new info) 2018-11-29 08:18:24 +00:00
msp432.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
msp432.h flash/nor: add support for TI MSP432 devices 2018-07-18 21:09:23 +01:00
niietcm4.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
non_cfi.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
numicro.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
ocl.c flash/nor: use default_flash_blank_check() instead of dummy 2018-12-05 07:55:53 +00:00
ocl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
pic32mx.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
psoc4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
psoc5lp.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
psoc6.c psoc6: Run flash algorithm asynchronously to improve performance 2018-04-23 20:42:06 +01:00
sim3x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
spi.c flash/nor/spi: add adesto AT25DF081A 2018-12-19 13:16:45 +00:00
spi.h SPI table updates (some new devices and new info) 2018-11-29 08:18:24 +00:00
stellaris.c arm_adi_v5: rewrite dap_to_jtag and dap_to_swd 2019-01-30 14:29:10 +00:00
stm32f1x.c flash/nor/stm32f1x: Ability to change user option bytes. 2019-02-07 07:52:44 +00:00
stm32f2x.c flash: stm32f2/f4/f7: Add One-Time-Porgrammable (OTP) support 2019-02-27 00:16:50 +00:00
stm32h7x.c flash/stm32h7x: remove IWDG1_SW separate variable 2019-03-14 14:18:30 +00:00
stm32l4x.c Fix support for single-bank stm32l4 processors 2019-02-21 06:19:55 +00:00
stm32lx.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
stmsmi.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
str7x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9xpec.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
tcl.c flash/nor/tcl.c: use COMMAND_PARSE_ADDRESS 2019-03-12 06:43:17 +00:00
tms470.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
virtual.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
w600.c add w600 support 2018-12-21 07:11:19 +00:00
xcf.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
xmc1xxx.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00
xmc4xxx.c flash/nor: use target_addr_t for flash bank base 2019-03-08 14:05:35 +00:00