diff options
author | Stefan Mahr <stefan.mahr@sphairon.com> | 2011-06-03 11:10:34 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-06-05 22:45:21 +0200 |
commit | 5d9b7cdd2b2a4759740e35b23aade517b8b3a548 (patch) | |
tree | 7d7f53bd8205b5a03b87db0cd4a3b095966c27a4 /src/target | |
parent | c989de0cea1dafa22b0a089f2d68a80190f560e1 (diff) | |
download | openocd_libswd-5d9b7cdd2b2a4759740e35b23aade517b8b3a548.tar.gz openocd_libswd-5d9b7cdd2b2a4759740e35b23aade517b8b3a548.tar.bz2 openocd_libswd-5d9b7cdd2b2a4759740e35b23aade517b8b3a548.tar.xz openocd_libswd-5d9b7cdd2b2a4759740e35b23aade517b8b3a548.zip |
mips: add nor flash write from memory block
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/mips32.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/target/mips32.h b/src/target/mips32.h index 0d544a40..4f0f0ef0 100644 --- a/src/target/mips32.h +++ b/src/target/mips32.h @@ -110,6 +110,8 @@ struct mips32_algorithm #define MIPS32_OP_SH 0x29 #define MIPS32_OP_SW 0x2B #define MIPS32_OP_ORI 0x0D +#define MIPS32_OP_XOR 0x26 +#define MIPS32_OP_SRL 0x03 #define MIPS32_COP0_MF 0x00 #define MIPS32_COP0_MT 0x04 @@ -135,10 +137,12 @@ struct mips32_algorithm #define MIPS32_MFHI(reg) MIPS32_R_INST(0, 0, 0, reg, 0, MIPS32_OP_MFHI) #define MIPS32_MTLO(reg) MIPS32_R_INST(0, reg, 0, 0, 0, MIPS32_OP_MTLO) #define MIPS32_MTHI(reg) MIPS32_R_INST(0, reg, 0, 0, 0, MIPS32_OP_MTHI) -#define MIPS32_ORI(src, tar, val) MIPS32_I_INST(MIPS32_OP_ORI, src, tar, val) +#define MIPS32_ORI(tar, src, val) MIPS32_I_INST(MIPS32_OP_ORI, src, tar, val) #define MIPS32_SB(reg, off, base) MIPS32_I_INST(MIPS32_OP_SB, base, reg, off) #define MIPS32_SH(reg, off, base) MIPS32_I_INST(MIPS32_OP_SH, base, reg, off) #define MIPS32_SW(reg, off, base) MIPS32_I_INST(MIPS32_OP_SW, base, reg, off) +#define MIPS32_XOR(reg, val1, val2) MIPS32_R_INST(0, val1, val2, reg, 0, MIPS32_OP_XOR) +#define MIPS32_SRL(reg, src, off) MIPS32_R_INST(0, 0, src, reg, off, MIPS32_OP_SRL) /* ejtag specific instructions */ #define MIPS32_DRET 0x4200001F |