static void patch_reloc(tcg_insn_unit *code_ptr, int type,

                        intptr_t value, intptr_t addend)

{

    tcg_insn_unit *target;

    tcg_insn_unit old;



    value += addend;

    target = (tcg_insn_unit *)value;



    switch (type) {

    case R_PPC_REL14:

        reloc_pc14(code_ptr, target);

        break;

    case R_PPC_REL24:

        reloc_pc24(code_ptr, target);

        break;

    case R_PPC_ADDR16:

        assert(value == (int16_t)value);

        old = *code_ptr;

        old = deposit32(old, 0, 16, value);

        *code_ptr = old;

        break;

    default:

        tcg_abort();

    }

}

static void patch_reloc(tcg_insn_unit *code_ptr, int type,

                        intptr_t value, intptr_t addend)

{

    tcg_insn_unit *target;

    tcg_insn_unit old;



    value += addend;

    target = (tcg_insn_unit *)value;



    switch (type) {

    case R_PPC_REL14:

        reloc_pc14(code_ptr, target);

        break;

    case R_PPC_REL24:

        reloc_pc24(code_ptr, target);

        break;

    case R_PPC_ADDR16:

        assert(value == (int16_t)value);

        old = *code_ptr;

        old = deposit32(old, 0, 16, value);

        *code_ptr = old;

        break;

    default:

        tcg_abort();

    }

}

static void patch_reloc(tcg_insn_unit *code_ptr, int type,                         intptr_t value, intptr_t addend)     tcg_insn_unit *target;     tcg_insn_unit old;     value += addend;     target = (tcg_insn_unit *)value;     switch (type) {     case R_PPC_REL14:         reloc_pc14(code_ptr, target);         break;     case R_PPC_REL24:         reloc_pc24(code_ptr, target);         break;     case R_PPC_ADDR16:         assert(value == (int16_t)value);         old = *code_ptr;         old = deposit32(old, 0, 16, value);         *code_ptr = old;         break;     default:         tcg_abort();
static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,

                        intptr_t VAR_2, intptr_t VAR_3)

{

    tcg_insn_unit *target;

    tcg_insn_unit old;



    VAR_2 += VAR_3;

    target = (tcg_insn_unit *)VAR_2;



    switch (VAR_1) {

    case R_PPC_REL14:

        reloc_pc14(VAR_0, target);

        break;

    case R_PPC_REL24:

        reloc_pc24(VAR_0, target);

        break;

    case R_PPC_ADDR16:

        assert(VAR_2 == (int16_t)VAR_2);

        old = *VAR_0;

        old = deposit32(old, 0, 16, VAR_2);

        *VAR_0 = old;

        break;

    default:

        tcg_abort();

    }

}

static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,
intptr_t VAR_2, intptr_t VAR_3)
{ tcg_insn_unit *target; tcg_insn_unit old; VAR_2 += VAR_3; target = (tcg_insn_unit *)VAR_2; switch (VAR_1) { case R_PPC_REL14:
reloc_pc14(VAR_0, target); break; case R_PPC_REL24:
reloc_pc24(VAR_0, target); break; case R_PPC_ADDR16:
assert(VAR_2 == (int16_t)VAR_2); old = *VAR_0; old = deposit32(old, 0, 16, VAR_2); *VAR_0 = old; break; default:
tcg_abort(); } }