File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,8 @@ static inline int is_jump_ins(union mips_instruction *ip)
326
326
* microMIPS is kind of more fun...
327
327
*/
328
328
if (mm_insn_16bit (ip -> word >> 16 )) {
329
- if (ip -> mm16_r5_format .opcode == mm_pool16c_op &&
330
- ip -> mm16_r5_format .rt == mm_jr16_op )
329
+ if (( ip -> mm16_r5_format .opcode == mm_pool16c_op &&
330
+ ( ip -> mm16_r5_format .rt & mm_jr16_op ) == mm_jr16_op ) )
331
331
return 1 ;
332
332
return 0 ;
333
333
}
@@ -339,7 +339,7 @@ static inline int is_jump_ins(union mips_instruction *ip)
339
339
if (ip -> r_format .opcode != mm_pool32a_op ||
340
340
ip -> r_format .func != mm_pool32axf_op )
341
341
return 0 ;
342
- return ((ip -> u_format .uimmediate >> 6 ) & GENMASK ( 9 , 0 ) ) == mm_jalr_op ;
342
+ return ((ip -> u_format .uimmediate >> 6 ) & mm_jalr_op ) == mm_jalr_op ;
343
343
#else
344
344
if (ip -> j_format .opcode == j_op )
345
345
return 1 ;
You can’t perform that action at this time.
0 commit comments