static uint64_t omap_pwt_read(void *opaque, target_phys_addr_t addr,

                              unsigned size)

{

    struct omap_pwt_s *s = (struct omap_pwt_s *) opaque;

    int offset = addr & OMAP_MPUI_REG_MASK;



    if (size != 1) {

        return omap_badwidth_read8(opaque, addr);

    }



    switch (offset) {

    case 0x00:	/* FRC */

        return s->frc;

    case 0x04:	/* VCR */

        return s->vrc;

    case 0x08:	/* GCR */

        return s->gcr;

    }

    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t omap_pwt_read(void *opaque, target_phys_addr_t addr,

                              unsigned size)

{

    struct omap_pwt_s *s = (struct omap_pwt_s *) opaque;

    int offset = addr & OMAP_MPUI_REG_MASK;



    if (size != 1) {

        return omap_badwidth_read8(opaque, addr);

    }



    switch (offset) {

    case 0x00:	

        return s->frc;

    case 0x04:	

        return s->vrc;

    case 0x08:	

        return s->gcr;

    }

    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,

                              unsigned size)

{

    struct omap_pwt_s *VAR_0 = (struct omap_pwt_s *) opaque;

    int VAR_1 = addr & OMAP_MPUI_REG_MASK;



    if (size != 1) {

        return omap_badwidth_read8(opaque, addr);

    }



    switch (VAR_1) {

    case 0x00:	

        return VAR_0->frc;

    case 0x04:	

        return VAR_0->vrc;

    case 0x08:	

        return VAR_0->gcr;

    }

    OMAP_BAD_REG(addr);

    return 0;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{ struct omap_pwt_s *VAR_0 = (struct omap_pwt_s *) opaque; int VAR_1 = addr & OMAP_MPUI_REG_MASK; if (size != 1) { return omap_badwidth_read8(opaque, addr); } switch (VAR_1) { case 0x00:
return VAR_0->frc; case 0x04:
return VAR_0->vrc; case 0x08:
return VAR_0->gcr; } OMAP_BAD_REG(addr); return 0; }