MIPS patches 2016-09-29
Changes: * MIPS Maintainer update * vmstateify rc4030 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJX7QRlAAoJECI464bV95fCfWIP/085j5qcxbjiR//ni9dq7UVJ RyLjvofncn6aV8QEdy/GB9PkP03UGFrvlyd1I34r4+p80abHfrL99RDogGxhWvzL Xnj4+Ju2j+ywuapIJBlRA1kat8esVU3ZhYPE7q7qg3hEjtXDfrFnpIL9SjYoIxLl r2QXTlZjN3CcWLTRaSx8SKH25JifIXeaTDNP24V53SgKA+xv6Ki/nqRahndgZVK5 7uYS0cx92mAF0wmmkKL1/oiUtwG+aa/ZDt9IXjB1+0B0z99E4JstbcH2zwbllbdU jSLSk23huxRFL32tqdmgdxf3H+OiJyLYZNxy6GTbxJ0LWRFlxpNYYfwWhppZ13ab CFJxnYGu6OP0Ap49OuYoxmODvIDLYmm/tuVmaJHi9Ccxdj+fMiifUnU8XIZpttzO oymTIGZceJwPk7bkNw4HqKabABDIf7waCyRBOftKcNWE1T4andOysZ7PlxtmFiOy vXTmv5f8f6KE5jtSGZ3zU1vRat2CAAB//0S933tc6/nBNJ4P+zxZKXJvtZfqNpcw ThQ2PuR883N5IwZVSxJfSfQ36PtHOfPTBMK0dGgVoWQpJTnAfNHNSo9fk3EdqG15 CAWZTKBDju7TEspv9ABIO9su6LQg9y3lDuOLZkLvS49OAqPssRqJw52BbPp/WxfH +e4fJ+HUa2Eo3j3RflIz =WvHy -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/yongbok/tags/mips-20160929' into staging MIPS patches 2016-09-29 Changes: * MIPS Maintainer update * vmstateify rc4030 # gpg: Signature made Thu 29 Sep 2016 13:09:09 BST # gpg: using RSA key 0x2238EB86D5F797C2 # gpg: Good signature from "Yongbok Kim <yongbok.kim@imgtec.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 8600 4CF5 3415 A5D9 4CFA 2B5C 2238 EB86 D5F7 97C2 * remotes/yongbok/tags/mips-20160929: hw/dma: vmstateify rc4030 MAINTAINERS: update target-mips maintainers Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
c69e3cef21
@ -145,7 +145,7 @@ F: disas/microblaze.c
|
||||
|
||||
MIPS
|
||||
M: Aurelien Jarno <aurelien@aurel32.net>
|
||||
M: Leon Alrae <leon.alrae@imgtec.com>
|
||||
M: Yongbok Kim <yongbok.kim@imgtec.com>
|
||||
S: Maintained
|
||||
F: target-mips/
|
||||
F: hw/mips/
|
||||
|
@ -616,34 +616,9 @@ static void rc4030_reset(DeviceState *dev)
|
||||
qemu_irq_lower(s->jazz_bus_irq);
|
||||
}
|
||||
|
||||
static int rc4030_load(QEMUFile *f, void *opaque, int version_id)
|
||||
static int rc4030_post_load(void *opaque, int version_id)
|
||||
{
|
||||
rc4030State* s = opaque;
|
||||
int i, j;
|
||||
|
||||
if (version_id != 2)
|
||||
return -EINVAL;
|
||||
|
||||
s->config = qemu_get_be32(f);
|
||||
s->invalid_address_register = qemu_get_be32(f);
|
||||
for (i = 0; i < 8; i++)
|
||||
for (j = 0; j < 4; j++)
|
||||
s->dma_regs[i][j] = qemu_get_be32(f);
|
||||
s->dma_tl_base = qemu_get_be32(f);
|
||||
s->dma_tl_limit = qemu_get_be32(f);
|
||||
s->cache_maint = qemu_get_be32(f);
|
||||
s->remote_failed_address = qemu_get_be32(f);
|
||||
s->memory_failed_address = qemu_get_be32(f);
|
||||
s->cache_ptag = qemu_get_be32(f);
|
||||
s->cache_ltag = qemu_get_be32(f);
|
||||
s->cache_bmask = qemu_get_be32(f);
|
||||
s->memory_refresh_rate = qemu_get_be32(f);
|
||||
s->nvram_protect = qemu_get_be32(f);
|
||||
for (i = 0; i < 15; i++)
|
||||
s->rem_speed[i] = qemu_get_be32(f);
|
||||
s->imr_jazz = qemu_get_be32(f);
|
||||
s->isr_jazz = qemu_get_be32(f);
|
||||
s->itr = qemu_get_be32(f);
|
||||
|
||||
set_next_tick(s);
|
||||
update_jazz_irq(s);
|
||||
@ -651,32 +626,31 @@ static int rc4030_load(QEMUFile *f, void *opaque, int version_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rc4030_save(QEMUFile *f, void *opaque)
|
||||
{
|
||||
rc4030State* s = opaque;
|
||||
int i, j;
|
||||
|
||||
qemu_put_be32(f, s->config);
|
||||
qemu_put_be32(f, s->invalid_address_register);
|
||||
for (i = 0; i < 8; i++)
|
||||
for (j = 0; j < 4; j++)
|
||||
qemu_put_be32(f, s->dma_regs[i][j]);
|
||||
qemu_put_be32(f, s->dma_tl_base);
|
||||
qemu_put_be32(f, s->dma_tl_limit);
|
||||
qemu_put_be32(f, s->cache_maint);
|
||||
qemu_put_be32(f, s->remote_failed_address);
|
||||
qemu_put_be32(f, s->memory_failed_address);
|
||||
qemu_put_be32(f, s->cache_ptag);
|
||||
qemu_put_be32(f, s->cache_ltag);
|
||||
qemu_put_be32(f, s->cache_bmask);
|
||||
qemu_put_be32(f, s->memory_refresh_rate);
|
||||
qemu_put_be32(f, s->nvram_protect);
|
||||
for (i = 0; i < 15; i++)
|
||||
qemu_put_be32(f, s->rem_speed[i]);
|
||||
qemu_put_be32(f, s->imr_jazz);
|
||||
qemu_put_be32(f, s->isr_jazz);
|
||||
qemu_put_be32(f, s->itr);
|
||||
}
|
||||
static const VMStateDescription vmstate_rc4030 = {
|
||||
.name = "rc4030",
|
||||
.version_id = 3,
|
||||
.post_load = rc4030_post_load,
|
||||
.fields = (VMStateField []) {
|
||||
VMSTATE_UINT32(config, rc4030State),
|
||||
VMSTATE_UINT32(invalid_address_register, rc4030State),
|
||||
VMSTATE_UINT32_2DARRAY(dma_regs, rc4030State, 8, 4),
|
||||
VMSTATE_UINT32(dma_tl_base, rc4030State),
|
||||
VMSTATE_UINT32(dma_tl_limit, rc4030State),
|
||||
VMSTATE_UINT32(cache_maint, rc4030State),
|
||||
VMSTATE_UINT32(remote_failed_address, rc4030State),
|
||||
VMSTATE_UINT32(memory_failed_address, rc4030State),
|
||||
VMSTATE_UINT32(cache_ptag, rc4030State),
|
||||
VMSTATE_UINT32(cache_ltag, rc4030State),
|
||||
VMSTATE_UINT32(cache_bmask, rc4030State),
|
||||
VMSTATE_UINT32(memory_refresh_rate, rc4030State),
|
||||
VMSTATE_UINT32(nvram_protect, rc4030State),
|
||||
VMSTATE_UINT32_ARRAY(rem_speed, rc4030State, 16),
|
||||
VMSTATE_UINT32(imr_jazz, rc4030State),
|
||||
VMSTATE_UINT32(isr_jazz, rc4030State),
|
||||
VMSTATE_UINT32(itr, rc4030State),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
||||
static void rc4030_do_dma(void *opaque, int n, uint8_t *buf, int len, int is_write)
|
||||
{
|
||||
@ -753,8 +727,6 @@ static void rc4030_initfn(Object *obj)
|
||||
sysbus_init_irq(sysbus, &s->timer_irq);
|
||||
sysbus_init_irq(sysbus, &s->jazz_bus_irq);
|
||||
|
||||
register_savevm(NULL, "rc4030", 0, 2, rc4030_save, rc4030_load, s);
|
||||
|
||||
sysbus_init_mmio(sysbus, &s->iomem_chipset);
|
||||
sysbus_init_mmio(sysbus, &s->iomem_jazzio);
|
||||
}
|
||||
@ -813,6 +785,7 @@ static void rc4030_class_init(ObjectClass *klass, void *class_data)
|
||||
dc->realize = rc4030_realize;
|
||||
dc->unrealize = rc4030_unrealize;
|
||||
dc->reset = rc4030_reset;
|
||||
dc->vmsd = &vmstate_rc4030;
|
||||
}
|
||||
|
||||
static const TypeInfo rc4030_info = {
|
||||
|
Loading…
Reference in New Issue
Block a user