Received: from [140.186.70.92] (port=35968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeVf9-0004pt-FX for qemu-devel@nongnu.org; Sun, 16 Jan 2011 11:41:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeVf8-0001aj-HF for qemu-devel@nongnu.org; Sun, 16 Jan 2011 11:41:07 -0500 Received: from adelie.canonical.com ([91.189.90.139]:56453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeVf8-0001ab-Bn for qemu-devel@nongnu.org; Sun, 16 Jan 2011 11:41:06 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PeVf6-0004qs-Ux for ; Sun, 16 Jan 2011 16:41:05 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E61DB2E80C2 for ; Sun, 16 Jan 2011 16:41:04 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 16 Jan 2011 16:31:08 -0000 From: Aurelien Jarno Sender: bounces@canonical.com References: <20101012153424.6472.42926.malonedeb@wampee.canonical.com> Message-Id: <20110116163108.22361.23555.malone@potassium.ubuntu.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 659276] Re: Accessing Century byte via RTC Reply-To: Bug 659276 <659276@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The century register is only present in "recent" version of the chip, and is at an address corresponding to the NVRAM memory. It is not manipulated directly by the RTC and therefore is always in BCD format. The current QEMU implementation is correct. ** Changed in: qemu Status: New =3D> Invalid -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/659276 Title: Accessing Century byte via RTC Status in QEMU: Invalid Bug description: With the RTC configure for Binary instead of BCD I am getting the incorrect result for Century. mov al, 0x0B ; Set RTC to binary mode out 0x70, al in al, 0x71 bts ax, 2 mov bl, al mov al, 0x0B out 0x70, al mov al, bl out 0x71, al mov al, 0x32 ; Century out 0x70, al in al, 0x71 In QEMU 0.12.5 it returns 0x20 but should return 0x14. The following work correctly: mov al, 0x09 ; Year out 0x70, al in al, 0x71 mov al, 0x08 ; Month out 0x70, al in al, 0x71 mov al, 0x07 ; Day out 0x70, al in al, 0x71