static void tnetw1130_mem1_writeb(void *opaque, target_phys_addr_t addr,
                                  uint32_t val)
{
    pci_tnetw1130_t *d = (pci_tnetw1130_t *) opaque;
    tnetw1130_t *s = &d->tnetw1130;
    addr -= s->region[1];
    tnetw1130_write1b(d, addr, val);
}
Beispiel #2
0
static void tnetw1130_write1(void *opaque, hwaddr addr,
                             uint64_t val, unsigned size)
{
    TNETW1130State *d = opaque;
    tnetw1130_t *s = &d->tnetw1130;
    switch (size) {
    case 1:
        tnetw1130_write1b(s, addr, val);
        break;
    case 2:
        tnetw1130_write1w(s, addr, val);
        break;
    case 4:
        tnetw1130_write1l(s, addr, val);
        break;
    default:
        assert(!"bad size");
    }
}