static int gdb_set_avr_reg(CPUState *env, uint8_t *mem_buf, int n)

{

    if (n < 32) {

#ifdef WORDS_BIGENDIAN

        env->avr[n].u64[0] = ldq_p(mem_buf);

        env->avr[n].u64[1] = ldq_p(mem_buf+8);

#else

        env->avr[n].u64[1] = ldq_p(mem_buf);

        env->avr[n].u64[0] = ldq_p(mem_buf+8);

#endif

        return 16;

    }

    if (n == 33) {

        env->vscr = ldl_p(mem_buf);

        return 4;

    }

    if (n == 34) {

        env->spr[SPR_VRSAVE] = (target_ulong)ldl_p(mem_buf);

        return 4;

    }

    return 0;

}

static int gdb_set_avr_reg(CPUState *env, uint8_t *mem_buf, int n)

{

    if (n < 32) {

#ifdef WORDS_BIGENDIAN

        env->avr[n].u64[0] = ldq_p(mem_buf);

        env->avr[n].u64[1] = ldq_p(mem_buf+8);

#else

        env->avr[n].u64[1] = ldq_p(mem_buf);

        env->avr[n].u64[0] = ldq_p(mem_buf+8);

#endif

        return 16;

    }

    if (n == 33) {

        env->vscr = ldl_p(mem_buf);

        return 4;

    }

    if (n == 34) {

        env->spr[SPR_VRSAVE] = (target_ulong)ldl_p(mem_buf);

        return 4;

    }

    return 0;

}

    if (n == 33) {     if (n == 34) {     if (n == 33) {     if (n == 34) {     if (n == 33) {     if (n == 34) {     if (n == 33) {     if (n == 34) {
static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)

{

    if (VAR_2 < 32) {

#ifdef WORDS_BIGENDIAN

        VAR_0->avr[VAR_2].u64[0] = ldq_p(VAR_1);

        VAR_0->avr[VAR_2].u64[1] = ldq_p(VAR_1+8);

#else

        VAR_0->avr[VAR_2].u64[1] = ldq_p(VAR_1);

        VAR_0->avr[VAR_2].u64[0] = ldq_p(VAR_1+8);

#endif

        return 16;

    }

    if (VAR_2 == 33) {

        VAR_0->vscr = ldl_p(VAR_1);

        return 4;

    }

    if (VAR_2 == 34) {

        VAR_0->spr[SPR_VRSAVE] = (target_ulong)ldl_p(VAR_1);

        return 4;

    }

    return 0;

}

static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)
{ if (VAR_2 < 32) { #ifdef WORDS_BIGENDIAN
VAR_0->avr[VAR_2].u64[0] = ldq_p(VAR_1); VAR_0->avr[VAR_2].u64[1] = ldq_p(VAR_1+8); #else
VAR_0->avr[VAR_2].u64[1] = ldq_p(VAR_1); VAR_0->avr[VAR_2].u64[0] = ldq_p(VAR_1+8); #endif
return 16; } if (VAR_2 == 33) { VAR_0->vscr = ldl_p(VAR_1); return 4; } if (VAR_2 == 34) { VAR_0->spr[SPR_VRSAVE] = (target_ulong)ldl_p(VAR_1); return 4; } return 0; }