target/xtensa: avoid IHI for writes to non-executable memorymaster
commit2c8376b79d104a855bd3a559e59edf330309bcad
authorIan Thompson <ianst@cadence.com>
Wed, 31 Jan 2024 23:14:25 +0000 (31 15:14 -0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 11 May 2024 11:55:55 +0000 (11 11:55 +0000)
tree6e8f3cc6de524e48e8bd3ff285b62e50656210ed
parent22ddf62d759b10a89e9c4c3f3929a66c9d72572d
target/xtensa: avoid IHI for writes to non-executable memory

For MPU configs, determine memory access rights
by probing protection TLB.  Issuing IHI without execute
permissions can trigger an exception.

No new clang static analyzer warnings.

Change-Id: Iea8eab5c2113df3f954285c3b9a79e96d41aa941
Signed-off-by: Ian Thompson <ianst@cadence.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8080
Reviewed-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/xtensa/xtensa.c