static void fill_thread_info(struct elf_note_info *info, const CPUState *env)

{

    TaskState *ts = (TaskState *)env->opaque;

    struct elf_thread_status *ets;



    ets = qemu_mallocz(sizeof (*ets));

    ets->num_notes = 1; /* only prstatus is dumped */

    fill_prstatus(&ets->prstatus, ts, 0);

    elf_core_copy_regs(&ets->prstatus.pr_reg, env);

    fill_note(&ets->notes[0], "CORE", NT_PRSTATUS, sizeof (ets->prstatus),

        &ets->prstatus);



    TAILQ_INSERT_TAIL(&info->thread_list, ets, ets_link);



    info->notes_size += note_size(&ets->notes[0]);

}

static void fill_thread_info(struct elf_note_info *info, const CPUState *env)

{

    TaskState *ts = (TaskState *)env->opaque;

    struct elf_thread_status *ets;



    ets = qemu_mallocz(sizeof (*ets));

    ets->num_notes = 1; 

    fill_prstatus(&ets->prstatus, ts, 0);

    elf_core_copy_regs(&ets->prstatus.pr_reg, env);

    fill_note(&ets->notes[0], "CORE", NT_PRSTATUS, sizeof (ets->prstatus),

        &ets->prstatus);



    TAILQ_INSERT_TAIL(&info->thread_list, ets, ets_link);



    info->notes_size += note_size(&ets->notes[0]);

}

static void FUNC_0(struct elf_note_info *VAR_0, const CPUState *VAR_1)

{

    TaskState *ts = (TaskState *)VAR_1->opaque;

    struct elf_thread_status *VAR_2;



    VAR_2 = qemu_mallocz(sizeof (*VAR_2));

    VAR_2->num_notes = 1; 

    fill_prstatus(&VAR_2->prstatus, ts, 0);

    elf_core_copy_regs(&VAR_2->prstatus.pr_reg, VAR_1);

    fill_note(&VAR_2->notes[0], "CORE", NT_PRSTATUS, sizeof (VAR_2->prstatus),

        &VAR_2->prstatus);



    TAILQ_INSERT_TAIL(&VAR_0->thread_list, VAR_2, ets_link);



    VAR_0->notes_size += note_size(&VAR_2->notes[0]);

}

static void FUNC_0(struct elf_note_info *VAR_0, const CPUState *VAR_1)
{ TaskState *ts = (TaskState *)VAR_1->opaque; struct elf_thread_status *VAR_2; VAR_2 = qemu_mallocz(sizeof (*VAR_2)); VAR_2->num_notes = 1; fill_prstatus(&VAR_2->prstatus, ts, 0); elf_core_copy_regs(&VAR_2->prstatus.pr_reg, VAR_1); fill_note(&VAR_2->notes[0], "CORE", NT_PRSTATUS, sizeof (VAR_2->prstatus),
&VAR_2->prstatus); TAILQ_INSERT_TAIL(&VAR_0->thread_list, VAR_2, ets_link); VAR_0->notes_size += note_size(&VAR_2->notes[0]); }