зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c8cffeb5eb
Коммит
1c01660cdc
|
@ -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), \
|
||||
|
|
Загрузка…
Ссылка в новой задаче