From: oharboe at B. <oh...@ma...> - 2009-05-05 08:49:58
|
Author: oharboe Date: 2009-05-05 08:49:55 +0200 (Tue, 05 May 2009) New Revision: 1604 Modified: trunk/src/target/mips32.h Log: Gabor Juhos juhosg at openwrt.org MIPS: fix a shift value in the MIPS32_R_INST macro Modified: trunk/src/target/mips32.h =================================================================== --- trunk/src/target/mips32.h 2009-05-05 05:55:14 UTC (rev 1603) +++ trunk/src/target/mips32.h 2009-05-05 06:49:55 UTC (rev 1604) @@ -94,7 +94,7 @@ #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)) |