* [Qemu-devel] PL022 VMSD versions bump
@ 2014-04-09 12:42 Peter Crosthwaite
2014-04-09 13:46 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Peter Crosthwaite @ 2014-04-09 12:42 UTC (permalink / raw)
To: Peter Maydell, qemu-devel@nongnu.org Developers; +Cc: Markus Armbruster
Hi Peter,
Im looking to do some cleanup around pl022 and I would like to use it
as my lead example of code using the new generic FIFO (as I think I
have test cases handy for it). But the VMSD description for this
device is a bit ugly as it is:
VMSTATE_INT32(tx_fifo_head, PL022State),
VMSTATE_INT32(rx_fifo_head, PL022State),
VMSTATE_INT32(tx_fifo_len, PL022State),
VMSTATE_INT32(rx_fifo_len, PL022State),
VMSTATE_UINT16(tx_fifo[0], PL022State),
VMSTATE_UINT16(rx_fifo[0], PL022State),
VMSTATE_UINT16(tx_fifo[1], PL022State),
VMSTATE_UINT16(rx_fifo[1], PL022State),
VMSTATE_UINT16(tx_fifo[2], PL022State),
VMSTATE_UINT16(rx_fifo[2], PL022State),
VMSTATE_UINT16(tx_fifo[3], PL022State),
VMSTATE_UINT16(rx_fifo[3], PL022State),
VMSTATE_UINT16(tx_fifo[4], PL022State),
VMSTATE_UINT16(rx_fifo[4], PL022State),
VMSTATE_UINT16(tx_fifo[5], PL022State),
VMSTATE_UINT16(rx_fifo[5], PL022State),
VMSTATE_UINT16(tx_fifo[6], PL022State),
VMSTATE_UINT16(rx_fifo[6], PL022State),
VMSTATE_UINT16(tx_fifo[7], PL022State),
VMSTATE_UINT16(rx_fifo[7], PL022State),
There is a way to covert to Fifo while maintaining full backwards
compat (in much the same way as I did for serial), although as you can
imagine, it will be messy. Is it worth the VMSD version bump to get it
cleaned up?
Regards,
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] PL022 VMSD versions bump
2014-04-09 12:42 [Qemu-devel] PL022 VMSD versions bump Peter Crosthwaite
@ 2014-04-09 13:46 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2014-04-09 13:46 UTC (permalink / raw)
To: Peter Crosthwaite; +Cc: qemu-devel@nongnu.org Developers, Markus Armbruster
On 9 April 2014 13:42, Peter Crosthwaite <peter.crosthwaite@xilinx.com> wrote:
> Hi Peter,
>
> Im looking to do some cleanup around pl022 and I would like to use it
> as my lead example of code using the new generic FIFO (as I think I
> have test cases handy for it). But the VMSD description for this
> device is a bit ugly as it is:
This will just be because it's a transliteration of a previous
save/load function implementation.
> There is a way to covert to Fifo while maintaining full backwards
> compat (in much the same way as I did for serial), although as you can
> imagine, it will be messy. Is it worth the VMSD version bump to get it
> cleaned up?
A version bump is fine with me.
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-09 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 12:42 [Qemu-devel] PL022 VMSD versions bump Peter Crosthwaite
2014-04-09 13:46 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).