diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-05 06:49:55 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-05 06:49:55 +0000 |
commit | 6fd394811c23c623b9ad9aee5cffadbb4dc3e808 (patch) | |
tree | e7604f106eb7dd30260708cdd40ffd0816c40460 /src/target | |
parent | eb51d4f68b96dba5f955c683e92d2805f0828f81 (diff) | |
download | openocd+libswd-6fd394811c23c623b9ad9aee5cffadbb4dc3e808.tar.gz openocd+libswd-6fd394811c23c623b9ad9aee5cffadbb4dc3e808.tar.bz2 openocd+libswd-6fd394811c23c623b9ad9aee5cffadbb4dc3e808.tar.xz openocd+libswd-6fd394811c23c623b9ad9aee5cffadbb4dc3e808.zip |
Gabor Juhos juhosg at openwrt.org MIPS: fix a shift value in the MIPS32_R_INST macro
git-svn-id: svn://svn.berlios.de/openocd/trunk@1604 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/mips32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips32.h b/src/target/mips32.h index 6f73d321..049ce8f5 100644 --- a/src/target/mips32.h +++ b/src/target/mips32.h @@ -94,7 +94,7 @@ typedef struct mips32_core_reg_s #define MIPS32_COP0_MF 0x00 #define MIPS32_COP0_MT 0x04 -#define MIPS32_R_INST(opcode, rs, rt, rd, shamt, funct) (((opcode)<<26) |((rs)<<21)|((rt)<<16)|((rd)<<11)| ((shamt)<<5) | (funct)) +#define MIPS32_R_INST(opcode, rs, rt, rd, shamt, funct) (((opcode)<<26) |((rs)<<21)|((rt)<<16)|((rd)<<11)| ((shamt)<<6) | (funct)) #define MIPS32_I_INST(opcode, rs, rt, immd) (((opcode)<<26) |((rs)<<21)|((rt)<<16)|(immd)) #define MIPS32_J_INST(opcode, addr) (((opcode)<<26) |(addr)) |