MIPS: Clear ISA bit correctly in get_frame_info()

am: 0d45490221

Change-Id: I531d407a5a29d93c60ac199b7ff7d13ced328c05
This commit is contained in:
Paul Burton 2017-03-12 08:11:42 +00:00 committed by android-build-merger
commit c6e7fd7d72

View file

@ -299,17 +299,14 @@ static inline int is_sp_move_ins(union mips_instruction *ip)
static int get_frame_info(struct mips_frame_info *info)
{
#ifdef CONFIG_CPU_MICROMIPS
union mips_instruction *ip = (void *) (((char *) info->func) - 1);
#else
union mips_instruction *ip = info->func;
#endif
union mips_instruction *ip;
unsigned max_insns = info->func_size / sizeof(union mips_instruction);
unsigned i;
info->pc_offset = -1;
info->frame_size = 0;
ip = (void *)msk_isa16_mode((ulong)info->func);
if (!ip)
goto err;