riscv-openocd/src
Peter Collingbourne ee96a95d44 openocd: src/target: Correctly handle CCSIDR_EL1.Associativity=0
Associativity=0 means that only one CMO is needed for all ways.
It could also mean that the cache is 1-way, but this is less likely.

Currently Associativity=0 causes us to hang in the while loop in
decode_cache_reg. Fix it by skipping the loop in this case. We can let
way_shift be set to the arbitrary value of 0 because in the case where
Associativity=0 we only ever shift 0 by it before ORing it into the
CMO operand.

Change-Id: I7c1de68d33f6b3ed627cbb1e2401d43185e4c1e3
Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7916
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2023-11-18 11:20:56 +00:00
..
flash nor: rsl10: fix minor coding style 2023-11-18 11:15:47 +00:00
helper jep106: update to revision JEP106BH September 2023 2023-11-11 18:02:24 +00:00
jtag jtag/drivers: Extension of jtag_libusb_open 2023-10-25 01:35:16 +00:00
pld pld/certus: fix crash when loading bitstream 2023-11-11 18:47:36 +00:00
rtos OpenOCD memory leak in `hwthread_update_threads()` 2023-10-27 11:41:30 +00:00
rtt rtt: rewrite command 'rtt channellist' as COMMAND_HANDLER 2023-03-25 18:11:14 +00:00
server server/gdb_server: Log gdb index in debug messages. 2023-10-14 12:04:02 +00:00
svf svf: make command 'svf' syntax consistent 2023-03-25 18:09:06 +00:00
target openocd: src/target: Correctly handle CCSIDR_EL1.Associativity=0 2023-11-18 11:20:56 +00:00
transport transport: rewrite command 'transport select' as COMMAND_HANDLER 2023-03-25 18:09:47 +00:00
xsvf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: rewrite command 'version' as COMMAND_HANDLER 2023-03-25 18:10:54 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00