static void pic_write(void *opaque, target_phys_addr_t addr,

                      uint64_t value, unsigned int size)

{

    struct etrax_pic *fs = opaque;

    D(printf("%s addr=%x val=%x\n", __func__, addr, value));



    if (addr == R_RW_MASK) {

        fs->regs[R_RW_MASK] = value;

        pic_update(fs);

    }

}

static void pic_write(void *opaque, target_phys_addr_t addr,

                      uint64_t value, unsigned int size)

{

    struct etrax_pic *fs = opaque;

    D(printf("%s addr=%x val=%x\n", __func__, addr, value));



    if (addr == R_RW_MASK) {

        fs->regs[R_RW_MASK] = value;

        pic_update(fs);

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                      uint64_t VAR_2, unsigned int VAR_3)

{

    struct etrax_pic *VAR_4 = VAR_0;

    D(printf("%s VAR_1=%x val=%x\n", __func__, VAR_1, VAR_2));



    if (VAR_1 == R_RW_MASK) {

        VAR_4->regs[R_RW_MASK] = VAR_2;

        pic_update(VAR_4);

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned int VAR_3)
{ struct etrax_pic *VAR_4 = VAR_0; D(printf("%s VAR_1=%x val=%x\n", __func__, VAR_1, VAR_2)); if (VAR_1 == R_RW_MASK) { VAR_4->regs[R_RW_MASK] = VAR_2; pic_update(VAR_4); } }