Received: from eggs.gnu.org ([140.186.70.92]:46427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPcUE-0007dx-4F for qemu-devel@nongnu.org; Sun, 13 Nov 2011 11:00:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPcUC-0002RB-Mb for qemu-devel@nongnu.org; Sun, 13 Nov 2011 11:00:50 -0500 Received: from indium.canonical.com ([91.189.90.7]:49972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPcUC-0002Qr-GS for qemu-devel@nongnu.org; Sun, 13 Nov 2011 11:00:48 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RPcUA-0000CG-Fx for ; Sun, 13 Nov 2011 16:00:46 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 72C972E8079 for ; Sun, 13 Nov 2011 16:00:46 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 13 Nov 2011 15:51:38 -0000 From: "Steven G. Messervey" <889868@bugs.launchpad.net> Sender: bounces@canonical.com References: <20111113155139.27237.9055.malonedeb@gac.canonical.com> Message-Id: <20111113155139.27237.9055.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 889868] [NEW] CM_CTRL always reads as 0x00000000 (arm/integratorcp) Reply-To: Bug 889868 <889868@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: qemu -version: QEMU PC emulator version 0.12.5, Copyright (c) 2003-2008 Fabrice Bellard uname -a: Linux zenwalk 2.6.37.4 #1 SMP PREEMPT Fri Mar 18 18:17:50 CET 2011 i686 Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz GenuineIntel GNU/Linux command-line: qemu-system-arm -M integratorcp -cpu arm926 -m 16 -kernel mykernel.elf -serial stdio steps to reproduce: --------------8<------------------------ @ assembler @ after trivial set up for arm read_ccmr: ld r4,=3D0x10000000 ld r0,[r4,#0x0C] ------------------>8-------------------- ---------------8<------------------------ ; in C int main(void) { unsigned int volatile *ccmr,test1,test2,value; ccmr =3D (unsigned int volatile *)0x1000000C; test1 =3D (*ccmr); // reads as zero (printk, printf,etc....) value =3D 0x00000001; // set GREEN LED (*ccmr) =3D value; // should set bit 0 in CM_CTL test2 =3D (*ccmr); // should return 1! if (test1 =3D=3D test2) { = // printk.printf,etc // if test2 =3D=3D 1, this code = // is not reached } } ------------------------------>8----------------- ** Affects: qemu Importance: Undecided Status: New ** Tags: arm -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/889868 Title: CM_CTRL always reads as 0x00000000 (arm/integratorcp) Status in QEMU: New Bug description: qemu -version: QEMU PC emulator version 0.12.5, Copyright (c) 2003-2008 Fabrice Bellard uname -a: Linux zenwalk 2.6.37.4 #1 SMP PREEMPT Fri Mar 18 18:17:50 CET 2011 i686 Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz GenuineIntel GNU/Linux command-line: qemu-system-arm -M integratorcp -cpu arm926 -m 16 -kernel mykernel.elf -serial stdio steps to reproduce: --------------8<------------------------ @ assembler @ after trivial set up for arm read_ccmr: ld r4,=3D0x10000000 ld r0,[r4,#0x0C] ------------------>8-------------------- ---------------8<------------------------ ; in C int main(void) { unsigned int volatile *ccmr,test1,test2,value; ccmr =3D (unsigned int volatile *)0x1000000C; test1 =3D (*ccmr); // reads as zero (printk, printf,etc....) value =3D 0x00000001; // set GREEN LED (*ccmr) =3D value; // should set bit 0 in CM_CTL test2 =3D (*ccmr); // should return 1! if (test1 =3D=3D test2) { = // printk.printf,etc // if test2 =3D=3D 1, this code = // is not reached } } ------------------------------>8----------------- To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/889868/+subscriptions