target/mips32: rework mips core register related functions
Update mips core definitions. Reworked mips core register structure and read/write function. Add coprocessor0 register definitions for target configuration. Change-Id: I59c1f4cc4020db8a78e8d79f7421b87382fa1709 Signed-off-by: Walter Ji <walter.ji@oss.cipunited.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7864 Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
c7d1f0ddab
commit
18c64af135
@@ -36,6 +36,8 @@
|
||||
|
||||
#define PRACC_BLOCK 128 /* 1 Kbyte */
|
||||
|
||||
struct mips32_common;
|
||||
|
||||
struct pa_list {
|
||||
uint32_t instr;
|
||||
uint32_t addr;
|
||||
@@ -64,8 +66,8 @@ int mips32_pracc_write_mem(struct mips_ejtag *ejtag_info,
|
||||
int mips32_pracc_fastdata_xfer(struct mips_ejtag *ejtag_info, struct working_area *source,
|
||||
int write_t, uint32_t addr, int count, uint32_t *buf);
|
||||
|
||||
int mips32_pracc_read_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
||||
int mips32_pracc_write_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
||||
int mips32_pracc_read_regs(struct mips32_common *mips32);
|
||||
int mips32_pracc_write_regs(struct mips32_common *mips32);
|
||||
|
||||
/**
|
||||
* \b mips32_cp0_read
|
||||
|
||||
Reference in New Issue
Block a user