Bug 590212 - Use correct mask for j/jal instructions on MIPS (r=wmaddox+)

Patch submitted by chris@mips.com

--HG--
extra : convert_revision : 2a6f54d0e9aafc1b3973d01cb7bf78815d53f9ec
This commit is contained in:
William Maddox 2010-09-08 17:37:02 -07:00
Родитель c8cffeb5eb
Коммит 1c01660cdc
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -401,17 +401,17 @@ namespace nanojit
#define JINDEX(dest) ((uint32_t(dest)>>2)&0x03ffffff)
#define J(dest) \
do { count_jmp(); EMIT(J_FORMAT(OP_J, JINDEX(dest)), \
#define J(dest) \
do { count_jmp(); EMIT(J_FORMAT(OP_J, JINDEX(dest)), \
"j %p", dest); } while (0)
#define trampJ(dest) \
do { count_jmp(); TRAMP(J_FORMAT(OP_J, (uint32_t(dest)>>2)&0x3fffffff), \
#define trampJ(dest) \
do { count_jmp(); TRAMP(J_FORMAT(OP_J, JINDEX(dest)), \
"j %p", dest); } while (0)
#define JAL(dest) \
do { count_jmp(); EMIT(J_FORMAT(OP_JAL, ((dest)>>2)&0x3fffffff), \
"jal 0x%x", uint32_t(dest)); } while (0)
#define JAL(dest) \
do { count_jmp(); EMIT(J_FORMAT(OP_JAL, JINDEX(dest)), \
"jal %p", dest); } while (0)
#define JALR(rs) \
do { count_jmp(); EMIT(R_FORMAT(OP_SPECIAL, rs, 0, RA, 0, SPECIAL_JALR), \