|
@@ -304,17 +304,14 @@ static inline int is_sp_move_ins(union mips_instruction *ip)
|
|
|
|
|
|
static int get_frame_info(struct mips_frame_info *info)
|
|
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 max_insns = info->func_size / sizeof(union mips_instruction);
|
|
unsigned i;
|
|
unsigned i;
|
|
|
|
|
|
info->pc_offset = -1;
|
|
info->pc_offset = -1;
|
|
info->frame_size = 0;
|
|
info->frame_size = 0;
|
|
|
|
|
|
|
|
+ ip = (void *)msk_isa16_mode((ulong)info->func);
|
|
if (!ip)
|
|
if (!ip)
|
|
goto err;
|
|
goto err;
|
|
|
|
|