Received: from [140.186.70.92] (port=45384 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q26ck-00063X-7M for qemu-devel@nongnu.org; Tue, 22 Mar 2011 14:48:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q26cW-000194-BB for qemu-devel@nongnu.org; Tue, 22 Mar 2011 14:47:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q26cV-00018n-QQ for qemu-devel@nongnu.org; Tue, 22 Mar 2011 14:47:56 -0400 From: Juan Quintela In-Reply-To: <1300805597-24058-1-git-send-email-dbaryshkov@gmail.com> (Dmitry Eremin-Solenikov's message of "Tue, 22 Mar 2011 17:53:16 +0300") References: <1300805597-24058-1-git-send-email-dbaryshkov@gmail.com> Date: Tue, 22 Mar 2011 19:46:12 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 1/2] Implement basic part of SA-1110/SA-1100 Reply-To: quintela@redhat.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitry Eremin-Solenikov Cc: qemu-devel@nongnu.org Dmitry Eremin-Solenikov wrote: > +static inline void strongarm_rtc_alarm_tick(void *opaque) > +{ > + StrongARMRTCState *s = (StrongARMRTCState *) opaque; cast is not needed. Just a NOP in C. (lost of places) > +static const VMStateDescription vmstate_strongarm_rtc_regs = { > + .name = "strongarm-rtc", > + .version_id = 0, New devices should be added with version 0. You add them with version 1 in a several places. > +static VMStateDescription vmstate_strongarm_pic_regs = { > + .name = "strongarm_pic", > + .version_id = 0, > + .minimum_version_id = 0, > + .minimum_version_id_old = 0, > + .post_load = strongarm_pic_post_load, > + .fields = (VMStateField[]) { > +// VMSTATE_UINT32_ARRAY(int_enabled, StrongARMPICState, 2), > +// VMSTATE_UINT32_ARRAY(int_pending, StrongARMPICState, 2), > +// VMSTATE_UINT32_ARRAY(is_fiq, StrongARMPICState, 2), > +// VMSTATE_UINT32(int_idle, StrongARMPICState), > +// VMSTATE_UINT32_ARRAY(priority, StrongARMPICState, PXA2XX_PIC_SRCS), This looks fishy. You implement savevm for this device, or you don't O:-) Rest of vmstate stuff look right. (I didn't look at the other stuff, though). Later, Juan.