riscv-openocd/src/flash
Karl Palsson 05ee889155 target/cortex_m: check core implementor field
Presently, we only look at the Part Number field of the CPUID, and
completely ignore the Implmentor field, simply assuming it to be ARM.

Parts have since been found, with different implementors, that use
overlapping part numbers, causing detection to fail.

Expand the "part number" field to be a full implementor+part number,
excluding the revision/patch fields, to make checking more reliable.

Change-Id: Id81774f829104f57a0c105320d0d2e479fa01522
Signed-off-by: Karl Palsson <karlp@tweak.au>
Reviewed-on: https://review.openocd.org/c/openocd/+/7845
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2023-08-26 11:39:20 +00:00
..
nand flash: nand: move in include file the declaration of 'nand_devices' 2023-05-18 10:15:41 +00:00
nor target/cortex_m: check core implementor field 2023-08-26 11:39:20 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
common.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
common.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
startup.tcl openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00