diff options
author | Alberto García Hierro <alberto@garciahierro.com> | 2020-10-20 16:13:17 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-07 20:52:46 +0000 |
commit | 535f5309ba1277479d44f471655bf722e32fbb6b (patch) | |
tree | 8e5db5e90841ed6c7f77ac5661ba511474e0208e /src | |
parent | 92ea7e41b9261d4d7a88d96cc3ef0a727d1059f0 (diff) | |
download | riscv-openocd-535f5309ba1277479d44f471655bf722e32fbb6b.zip riscv-openocd-535f5309ba1277479d44f471655bf722e32fbb6b.tar.gz riscv-openocd-535f5309ba1277479d44f471655bf722e32fbb6b.tar.bz2 |
stm32h7x: Fix reset with non-HLA interfaces on macOS
regsub doesn't work correctly on macOS Catalina, which results in
an incorrect CHIPNAME derived from the current target. Since regsub
is only used by this target, replace it with a simple string search
for '.' followed by a substring. This is funcionally equivalent to
what the regular expression was doing, but instead relies in simpler
string operations that should have little to no differences
between systems.
Also, refactor CHIPNAME detection into proc stm32h7x_chipname, so
it's always retrieved in the same way without duplicating the code.
Change-Id: Ia9f63f56b508688e74278b022eaec47e503916e7
Signed-off-by: Alberto Garcia Hierro <alberto@garciahierro.com>
Reviewed-on: http://openocd.zylin.com/5872
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Christopher Head <chead@zaber.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions