target/mips32: optimize pracc access
commitb1231287372a03e1c255052dd17016ca03c07c35
authorWalter Ji <walter.ji@oss.cipunited.com>
Tue, 29 Aug 2023 05:27:49 +0000 (29 13:27 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 6 Jan 2024 13:52:02 +0000 (6 13:52 +0000)
tree7dfc2aea7c8c991b7b811e3979c15cfccdbd19ff
parent019bf5f83c79353392471529f7cb961c5c603bfd
target/mips32: optimize pracc access

Update mips32 instructions, add barrier and sync related insts.
Add SYNC and barrier instruction blocks for memory access safety.

These instructions are not supported on Lexra and/or MIPSr1 CPUs,
detections were added and they will be executed conditionally.

Rework mips32_pracc_read/write_regs function.
Checkpatch-ignore: MACRO_ARG_REUSE

Change-Id: Ib14112f37ff1f060b1633df73d671a6b09bb2178
Signed-off-by: Walter Ji <walter.ji@oss.cipunited.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7865
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/mips32.c
src/target/mips32.h
src/target/mips32_pracc.c
src/target/mips32_pracc.h
src/target/mips_ejtag.h