diff options
author | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-01-13 10:12:34 +0000 |
---|---|---|
committer | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-02-28 22:26:53 +0000 |
commit | b8d8953ae9995829a61ce7b34e544f004bb23c55 (patch) | |
tree | a49edb41880e6cfc308e428a781f7773373a581e /src/target/mips32.h | |
parent | a851ce0d6f2b961f94e09746304e0fb0dad6a15f (diff) |
MIPS: add mips algorithm support
- add mips support for target algorithms.
- added handlers for target_checksum_memory and target_blank_check_memory.
- clean up long lines
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/mips32.h')
-rw-r--r-- | src/target/mips32.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/mips32.h b/src/target/mips32.h index b731c686..94d29ff8 100644 --- a/src/target/mips32.h +++ b/src/target/mips32.h @@ -85,6 +85,12 @@ struct mips32_core_reg struct mips32_common *mips32_common; }; +struct mips32_algorithm +{ + int common_magic; + enum mips32_isa_mode isa_mode; +}; + #define MIPS32_OP_BEQ 0x04 #define MIPS32_OP_BNE 0x05 #define MIPS32_OP_ADDI 0x08 @@ -164,5 +170,9 @@ int mips32_register_commands(struct command_context *cmd_ctx); int mips32_get_gdb_reg_list(struct target *target, struct reg **reg_list[], int *reg_list_size); +int mips32_checksum_memory(struct target *target, uint32_t address, + uint32_t count, uint32_t* checksum); +int mips32_blank_check_memory(struct target *target, + uint32_t address, uint32_t count, uint32_t* blank); #endif /*MIPS32_H*/ |