Received: from eggs.gnu.org ([208.118.235.92]:39159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7Az-0005o4-Dg for qemu-devel@nongnu.org; Tue, 16 Apr 2013 10:48:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US7Av-0007Sx-1T for qemu-devel@nongnu.org; Tue, 16 Apr 2013 10:48:05 -0400 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]:45233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US6X5-0007s2-Kd for qemu-devel@nongnu.org; Tue, 16 Apr 2013 10:06:52 -0400 Received: from mail.thom.fr.eu.org (unknown [IPv6:2a01:e35:2f1f:e7b0:215:17ff:fec0:7e1f]) by smtp1-g21.free.fr (Postfix) with ESMTP id 74D6694013B for ; Tue, 16 Apr 2013 16:06:45 +0200 (CEST) Received: from mail.thom.fr.eu.org (localhost [127.0.0.1]) by mail.thom.fr.eu.org (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3GE6h53014656 for ; Tue, 16 Apr 2013 16:06:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Tue, 16 Apr 2013 16:06:43 +0200 From: =?UTF-8?Q?Fran=C3=A7ois_Legal?= In-Reply-To: References: <3e0e268a897603d5ae067f6e01fad68e@thom.fr.eu.org> <0487933dd01712ab479f234975b8ea2c@thom.fr.eu.org> <37e5da1bbc6d72dac52559deac7ef181@thom.fr.eu.org> Message-ID: <8ef2379319acbe554b18ad823dda1d26@thom.fr.eu.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2] ARM Cortex A9 Global Timer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi Peter, Le 16-04-2013 15:23, Peter Crosthwaite a =C3=A9crit : > Hi Francois, >=20 > On Tue, Apr 16, 2013 at 10:50 PM, Fran=C3=A7ois Legal > wrote: >=20 >> Le 16-04-2013 14:19, Peter Maydell a =C3=A9crit : >>=20 >>> On 16 April 2013 13:09, Fran=C3=A7ois Legal wr= ote: >>> Ugh. Your mail client has completely mangled things (it's run all the >>> lines of code into each other and it's still posting as multipart >>> text+HTML). Please could you look at fixing its configuration -- it >>> makes it hard to reply in response to individual things you've said. >> Sorry ! >>=20 >>> Anyway, you may be right about needing multiple qemutimers, I think I >>> misunderstood that part. We set up one timer for each comparator, >>> right? (ie it fires when the comparator would fire). In that case I >>> think that is correct. >=20 > I had this problem with timer/cadence_ttc.c, which is a single timer > with multiple comparators. Went the other way implementation wise > though, using a single QEMUTimer and each trap of the timer it > computes which event is going to occur next and qemu_mod_timer with > the MIN of the comparators. >=20 That's another solution, but I found out that, given my poor knowledge on= =20 Qemu, the other way was easier ;-) >> At least, that's how I understood the stuff. >>=20 >>> You might like to try having each gTimerBlock have an >>> ARMMPGTimerState* field, so you get at the non-banked parts of the >>> control register with 'gtb->gtimer.gtimer_control' rather than via an >>> anonymous uint32_t*. I think that would be clearer. >> Ok. >>=20 >>> Regarding gdb access to memory mapped registers causing a crash due >>> to NULL cpu_single_env -- I think this is a general issue with the >>> gdb support code. I suggest you drop those parts of your patch for >>> now; we should look at fixing it in a coherent way separately and >>> later (eg by having gdb memory accesses always look as if they are >>> from CPU 0, or something). >> Alright. I'll drop that from the p >>=20 >>> quote>PS: I didn't mention it, but the struct names and so on should >>> also change in line with my suggested new device name/> te> Done. >> ks -- PMM New patch follows. >=20 > Use git to create and send patches. Check out the commands: >=20 > git format-patch > git send-email >=20 > This will send you patch as plain text as well. I wish I could, unfortunately, my corporate VPN/proxy blocks GIT. >=20 > Regards, > Peter Links: ------ [1] http://www.gnu.org/licenses/