target/arm_adi_v5: rework Nuvoton NPCX quirk workaround.
commitffdcec938fb6bd2d6f7f1f4aed7b41c627934a24
authorTomas Vanek <vanekt@fbl.cz>
Sun, 2 Apr 2023 16:49:12 +0000 (2 18:49 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 6 Jan 2024 13:56:02 +0000 (6 13:56 +0000)
tree775bb8eb9ac82e21fea24aef7e35ba66b9610b07
parent5039848424f818241a8d256b7e49f6c3152c4dc6
target/arm_adi_v5: rework Nuvoton NPCX quirk workaround.

Prevent packed writes with Nuvoton NPCX quirks because the workaround
uses all byte lanes for one byte or halfword and thus precludes packing.

Eliminate quirk code for size 4 as it is equivalent to the common code.

Make the quirk code for sizes 2 and 1 easier readable.

Change-Id: I72324e56a49b4712bd3769e03dce01427d9fcd73
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7575
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/arm_adi_v5.c