From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxxj-0003Ep-Vh for qemu-devel@nongnu.org; Thu, 17 May 2012 06:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUxxf-0006Iw-BW for qemu-devel@nongnu.org; Thu, 17 May 2012 06:29:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxxf-0006In-3H for qemu-devel@nongnu.org; Thu, 17 May 2012 06:29:35 -0400 Message-ID: <4FB4D309.10107@redhat.com> Date: Thu, 17 May 2012 12:29:29 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6 4/7] RTC: Add divider reset support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Zhang, Yang Z" Cc: "'aliguori@us.ibm.com'" , "'qemu-devel@nongnu.org'" Il 17/05/2012 04:28, Zhang, Yang Z ha scritto: > > +static int32_t divider_reset; This must be a variable inside RTCState. The remark about inlining rtc_set_offset applies here as well. Paolo > +static inline bool rtc_running(RTCState *s) > +{ > + return (!(s->cmos_data[RTC_REG_B] & REG_B_SET) && > + (s->cmos_data[RTC_REG_A] & 0x70) <= 0x20); > +} > +