From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSiAK-0000HV-FG for qemu-devel@nongnu.org; Mon, 08 Feb 2016 04:31:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSiAJ-0001KU-FH for qemu-devel@nongnu.org; Mon, 08 Feb 2016 04:31:28 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSiAJ-0001K8-1y for qemu-devel@nongnu.org; Mon, 08 Feb 2016 04:31:27 -0500 Received: by mail-lf0-x22e.google.com with SMTP id l143so91484961lfe.2 for ; Mon, 08 Feb 2016 01:31:26 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 8 Feb 2016 15:01:25 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a1140202866d5ce052b3edde7 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, qemu-devel@nongnu.org Cc: Deepak kumar Raju --001a1140202866d5ce052b3edde7 Content-Type: text/plain; charset=UTF-8 copying qemu development mailing list. Thanks, Best Regards, -Deepak On Mon, Feb 8, 2016 at 2:21 PM, Deepak kumar Raju < raju.deepakkumar@gmail.com> wrote: > > Hi Peter, > > I am Deepak. I have a Cortex-A7 board and I am using qemu code from Linaro. > In Qemu-linaro.git, under .../target-arm/cpu.c, I do not see CPU > definitions for Cortex-A7. > I have few questions: > > a)Can you please point to Cortex-A7 CPU definitions? > b) Can we use the CPU definitions of Cortex-A15 for Cortex-A7? > c) What would be the diff of Cortex-A7 definitions compared to Cortex-A15? > > Thanks in advance for your help, > > Best Regards, > -Deepak > > > *2012-01-25* Peter Maydell > Add > Cortex-A15 CPU definition > > > Add Cortex-A15 CPU definition > Add a definition of a Cortex-A15 CPU. Note that for the moment... > --001a1140202866d5ce052b3edde7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
copying qemu development mailing list.

=
Thanks,

Best Regards,
-Deepak=

On Mo= n, Feb 8, 2016 at 2:21 PM, Deepak kumar Raju <raju.deepakkumar@g= mail.com> wrote:

Hi Peter,

I am Deepak= . I have a Cortex-A7 board and I am using qemu code from Linaro.
= In Qemu-linaro.git, under .../target-arm/cpu.c, I do not see CPU definition= s for Cortex-A7.
I have few questions:

a= )Can you please point to Cortex-A7 CPU definitions?
b)=C2=A0Can w= e use the CPU definitions of Cortex-A15 for Cortex-A7?
c) What wo= uld be the diff of Cortex-A7 definitions compared to Cortex-A15?
=
Thanks in advance for your help,

Be= st Regards,
-Deepak


= 2012-01-253D""=C2=A0Peter Maydell= Add Cortex-A15 CPU definition
Add= =C2=A0Cortex-A15=C2=A0CPU definition
Add a de= finition of a=C2=A0Cortex-A15=C2=A0CPU. Note that for the moment...=C2=A0

--001a1140202866d5ce052b3edde7-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSo9a-0005tN-K9 for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:55:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSo9Z-0004yA-GI for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:55:06 -0500 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:35749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSo9Z-0004wt-8V for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:55:05 -0500 Received: by mail-vk0-x230.google.com with SMTP id e6so97715606vkh.2 for ; Mon, 08 Feb 2016 07:55:04 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Mon, 8 Feb 2016 15:54:45 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Deepak kumar Raju Cc: QEMU Developers > On Mon, Feb 8, 2016 at 2:21 PM, Deepak kumar Raju wrote: >> I am Deepak. I have a Cortex-A7 board and I am using qemu code from Linaro. >> In Qemu-linaro.git, under .../target-arm/cpu.c, I do not see CPU definitions for Cortex-A7. >> I have few questions: >> >> a)Can you please point to Cortex-A7 CPU definitions? We don't implement a Cortex-A7 in QEMU, because we have no board models that need it. >> b) Can we use the CPU definitions of Cortex-A15 for Cortex-A7? Typically guest code doesn't care about the exact CPU type between the A15 and the A7. If you wanted to add A7 support then starting with the A15 would be a good start. >> c) What would be the diff of Cortex-A7 definitions compared to Cortex-A15? You need to look at the Technical Reference Manual for the two CPUs to determine the difference. As far as QEMU is concerned the things to look at are: * ID register values * supported CPU features * any implementation-specific coprocessor registers ...in other words, all the things we set in the cortex_a15_initfn(). thanks -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT4eV-0007t8-SI for qemu-devel@nongnu.org; Tue, 09 Feb 2016 04:32:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT4eU-0004OI-W6 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 04:32:07 -0500 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]:34063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT4eU-0004NU-PF for qemu-devel@nongnu.org; Tue, 09 Feb 2016 04:32:06 -0500 Received: by mail-vk0-x22a.google.com with SMTP id e185so113135717vkb.1 for ; Tue, 09 Feb 2016 01:32:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Tue, 9 Feb 2016 09:31:46 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Deepak kumar Raju Cc: QEMU Developers On 9 February 2016 at 07:43, Deepak kumar Raju wrote: > Can you please help me with the cortex-a7 CPU definitions/configuration that > I need to add in QEMU. Thanks, I'm afraid I don't have time to do this myself. I suggested below how you can go about doing this yourself if you need it: >> You need to look at the Technical Reference Manual for the two CPUs >> to determine the difference. As far as QEMU is concerned the things >> to look at are: >> * ID register values >> * supported CPU features >> * any implementation-specific coprocessor registers >> >> ...in other words, all the things we set in the >> cortex_a15_initfn(). thanks -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT2xe-0006f4-4n for qemu-devel@nongnu.org; Tue, 09 Feb 2016 02:43:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT2xc-00044b-Tg for qemu-devel@nongnu.org; Tue, 09 Feb 2016 02:43:46 -0500 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT2xc-00044X-G6 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 02:43:44 -0500 Received: by mail-lf0-x22f.google.com with SMTP id j78so110351329lfb.1 for ; Mon, 08 Feb 2016 23:43:44 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 9 Feb 2016 13:13:43 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a11401eda0dce7f052b517a64 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a11401eda0dce7f052b517a64 Content-Type: text/plain; charset=UTF-8 Hi Peter, Thanks a lot for the information. Can you please help me with the cortex-a7 CPU definitions/configuration that I need to add in QEMU. Thanks, Best Regards, -Deepak On Mon, Feb 8, 2016 at 9:24 PM, Peter Maydell wrote: > > On Mon, Feb 8, 2016 at 2:21 PM, Deepak kumar Raju < > raju.deepakkumar@gmail.com> wrote: > >> I am Deepak. I have a Cortex-A7 board and I am using qemu code from > Linaro. > >> In Qemu-linaro.git, under .../target-arm/cpu.c, I do not see CPU > definitions for Cortex-A7. > >> I have few questions: > >> > >> a)Can you please point to Cortex-A7 CPU definitions? > > We don't implement a Cortex-A7 in QEMU, because we have no board > models that need it. > > >> b) Can we use the CPU definitions of Cortex-A15 for Cortex-A7? > > Typically guest code doesn't care about the exact CPU type between > the A15 and the A7. If you wanted to add A7 support then starting > with the A15 would be a good start. > > >> c) What would be the diff of Cortex-A7 definitions compared to > Cortex-A15? > > You need to look at the Technical Reference Manual for the two CPUs > to determine the difference. As far as QEMU is concerned the things > to look at are: > * ID register values > * supported CPU features > * any implementation-specific coprocessor registers > > ...in other words, all the things we set in the > cortex_a15_initfn(). > > thanks > -- PMM > --001a11401eda0dce7f052b517a64 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Peter,
Thanks a lot for the information.=

Can you please help me with the cortex-a7 CPU def= initions/configuration that I need to add in QEMU. Thanks,

Best Regards,
-Deepak=C2=A0


On M= on, Feb 8, 2016 at 9:24 PM, Peter Maydell <peter.maydell@linaro.org= > wrote:
> On Mon,= Feb 8, 2016 at 2:21 PM, Deepak kumar Raju <raju.deepakkumar@gmail.com> wrote:
>> I am Deepak. I have a Cortex-A7 board and I am using = qemu code from Linaro.
>> In Qemu-linaro.git, under .../target-arm/cpu.c, I do not see CPU d= efinitions for Cortex-A7.
>> I have few questions:
>>
>> a)Can you please point to Cortex-A7 CPU definitions?

We don't implement a Cortex-A7 in QEMU, because we have no board=
models that need it.

>> b) Can we use the CPU definitions of Cortex-A15 for Cortex-A7?

Typically guest code doesn't care about the exact CPU type betwe= en
the A15 and the A7. If you wanted to add A7 support then starting
with the A15 would be a good start.

>> c) What would be the diff of Cortex-A7 definitions compared to Cor= tex-A15?

You need to look at the Technical Reference Manual for the two CPUs<= br> to determine the difference. As far as QEMU is concerned the things
to look at are:
=C2=A0* ID register values
=C2=A0* supported CPU features
=C2=A0* any implementation-specific coprocessor registers

...in other words, all the things we set in the
cortex_a15_initfn().

thanks
-- PMM

--001a11401eda0dce7f052b517a64-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTChp-0001as-C3 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:08:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTCho-0007Qz-FQ for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:08:05 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:35317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTCho-0007Qa-21 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:08:04 -0500 Received: by mail-lb0-x234.google.com with SMTP id bc4so104880637lbc.2 for ; Tue, 09 Feb 2016 10:08:03 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 9 Feb 2016 23:38:02 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a11c3277ecd889c052b5a321a Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a11c3277ecd889c052b5a321a Content-Type: text/plain; charset=UTF-8 Thanks Peter, will follow your suggestions to add CPU definitions for Cortex-A7. I need to enable GIC & Generic timer in QEMU for Cortex-A7. Can you please let me know how to go about enabling GIC & Generic timer in QEMU. Thanks in advance, Best Regards, -Deepak On Tue, Feb 9, 2016 at 3:01 PM, Peter Maydell wrote: > On 9 February 2016 at 07:43, Deepak kumar Raju > wrote: > > Can you please help me with the cortex-a7 CPU definitions/configuration > that > > I need to add in QEMU. Thanks, > > I'm afraid I don't have time to do this myself. I suggested > below how you can go about doing this yourself if you need it: > > >> You need to look at the Technical Reference Manual for the two CPUs > >> to determine the difference. As far as QEMU is concerned the things > >> to look at are: > >> * ID register values > >> * supported CPU features > >> * any implementation-specific coprocessor registers > >> > >> ...in other words, all the things we set in the > >> cortex_a15_initfn(). > > thanks > -- PMM > --001a11c3277ecd889c052b5a321a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Peter, will follow your suggestions to add CPU= definitions for Cortex-A7.

I need to enable GIC &= amp; Generic timer in QEMU for Cortex-A7. Can you please let me know how to= go about enabling GIC & Generic timer in QEMU.

Thanks in advance,

Best Regards,
-Deep= ak

On = Tue, Feb 9, 2016 at 3:01 PM, Peter Maydell <peter.maydell@linaro.or= g> wrote:
On 9 February 201= 6 at 07:43, Deepak kumar Raju
<raju.deepakkumar@gm= ail.com> wrote:
> Can you please help me with the cortex-a7 CPU definitions/configuratio= n that
> I need to add in QEMU. Thanks,

I'm afraid I don't have time to do this myself. I suggested<= br> below how you can go about doing this yourself if you need it:

>> You need to look at the Technical Reference Manual for the two CPU= s
>> to determine the difference. As far as QEMU is concerned the thing= s
>> to look at are:
>>=C2=A0 * ID register values
>>=C2=A0 * supported CPU features
>>=C2=A0 * any implementation-specific coprocessor registers
>>
>> ...in other words, all the things we set in the
>> cortex_a15_initfn().

thanks
-- PMM

--001a11c3277ecd889c052b5a321a-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTCmq-0005i7-CT for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:13:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTCmp-0008Oo-9Q for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:13:16 -0500 Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:33885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTCmp-0008Ok-4s for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:13:15 -0500 Received: by mail-vk0-x232.google.com with SMTP id e185so122607575vkb.1 for ; Tue, 09 Feb 2016 10:13:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Tue, 9 Feb 2016 18:12:55 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Deepak kumar Raju Cc: QEMU Developers On 9 February 2016 at 18:08, Deepak kumar Raju wrote: > Thanks Peter, will follow your suggestions to add CPU definitions for > Cortex-A7. The other question here, by the way, is "why do you need a Cortex-A7 specifically?". What are you doing that won't work with the A15 emulation we have? > I need to enable GIC & Generic timer in QEMU for Cortex-A7. > Can you please let me know how to go about enabling GIC & > Generic timer in QEMU. Should just work, we have them for the A15. thanks -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTNHs-000675-26 for qemu-devel@nongnu.org; Wed, 10 Feb 2016 00:26:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTNHr-0006wx-6B for qemu-devel@nongnu.org; Wed, 10 Feb 2016 00:26:00 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:35187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTNHq-0006wf-PI for qemu-devel@nongnu.org; Wed, 10 Feb 2016 00:25:59 -0500 Received: by mail-lb0-x234.google.com with SMTP id bc4so4270883lbc.2 for ; Tue, 09 Feb 2016 21:25:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 10 Feb 2016 10:55:57 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a11c3efde3a458b052b63ab90 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a11c3efde3a458b052b63ab90 Content-Type: text/plain; charset=UTF-8 Thanks Peter. Regarding the questions, we have hw board which has Cortex-A7, so we thought we have to go with A7 emulation. we were not very sure A15 emulation will be almost equivalent to A7 emulation. All we want to do is A7 emulation but now I am understanding that A15 emulation should similar to A7 emulation. please correct me. Thanks for your support. Best Regards, -Deepak On Tue, Feb 9, 2016 at 11:42 PM, Peter Maydell wrote: > On 9 February 2016 at 18:08, Deepak kumar Raju > wrote: > > Thanks Peter, will follow your suggestions to add CPU definitions for > > Cortex-A7. > > The other question here, by the way, is "why do you need > a Cortex-A7 specifically?". What are you doing that won't > work with the A15 emulation we have? > > > I need to enable GIC & Generic timer in QEMU for Cortex-A7. > > Can you please let me know how to go about enabling GIC & > > Generic timer in QEMU. > > Should just work, we have them for the A15. > > thanks > -- PMM > --001a11c3efde3a458b052b63ab90 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Peter.

Regarding the = questions, we have hw board which has Cortex-A7, so we thought we have to g= o with A7 emulation. we were not very sure A15 emulation will be almost equ= ivalent to A7 emulation.
All we want to do is A7 emulation but no= w I am understanding that A15 emulation should similar to A7 emulation. ple= ase correct me.

Thanks for your support.

Best Regards,
-Deepak

On Tue, Feb 9, 2016 at 11:42 PM, = Peter Maydell <peter.maydell@linaro.org> wrote:
On 9 February 2016 at 18:08, Deepak kumar Raju=
<raju.deepakkumar@gm= ail.com> wrote:
> Thanks Peter, will follow your suggestions to add CPU definitions for<= br> > Cortex-A7.

The other question here, by the way, is "why do you need
a Cortex-A7 specifically?". What are you doing that won't
work with the A15 emulation we have?

> I need to enable GIC & Generic timer in QEMU for Cortex-A7.
> Can you please let me know how to go about enabling GIC &
> Generic timer in QEMU.

Should just work, we have them for the A15.

thanks
-- PMM

--001a11c3efde3a458b052b63ab90-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTRmm-0004EF-6f for qemu-devel@nongnu.org; Wed, 10 Feb 2016 05:14:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTRmg-0006VM-Js for qemu-devel@nongnu.org; Wed, 10 Feb 2016 05:14:12 -0500 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:33672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTRmg-0006VI-F6 for qemu-devel@nongnu.org; Wed, 10 Feb 2016 05:14:06 -0500 Received: by mail-vk0-x230.google.com with SMTP id k196so9915246vka.0 for ; Wed, 10 Feb 2016 02:14:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Wed, 10 Feb 2016 10:13:46 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Deepak kumar Raju Cc: QEMU Developers On 10 February 2016 at 05:25, Deepak kumar Raju wrote: > Regarding the questions, we have hw board which has Cortex-A7, so we thought > we have to go with A7 emulation. we were not very sure A15 emulation will be > almost equivalent to A7 emulation. > All we want to do is A7 emulation but now I am understanding that A15 > emulation should similar to A7 emulation. please correct me. If you want to emulate the whole hardware board in QEMU, then adding the A7 CPU emulation is the right thing (and not very hard compared to doing the whole hardware model). If you don't care about emulating the hardware because you're going to run (say) a Linux kernel on one of QEMU's existing models and you mostly care about userspace, then using the A15 will be fine -- the two CPUs are basically identical for that purpose, and Linux supports both. If you're running QEMU to use KVM on the ARM hardware, then you want "-cpu host", which means "use the best CPU type that the kernel can provide" and works on A7 and A15 hosts. thanks -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYZpn-00075p-A6 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:50:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYZpm-0005sM-45 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:50:31 -0500 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:36608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYZpl-0005s8-Mp for qemu-devel@nongnu.org; Wed, 24 Feb 2016 08:50:30 -0500 Received: by mail-lf0-x22c.google.com with SMTP id 78so12057582lfy.3 for ; Wed, 24 Feb 2016 05:50:29 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 24 Feb 2016 19:20:28 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a11401970417337052c8459f5 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a11401970417337052c8459f5 Content-Type: text/plain; charset=UTF-8 Hi Peter, We are emulating the A7 hardware board in QEMU. Currently I have started with A15 CPU config. I need to enable GIC and generic timer. Can you please point me to how GIC & generic timer should be enabled considering vexpress.c emulation board?. Thanks in advance for the help, Best Regards, -Deepak On Wed, Feb 10, 2016 at 3:43 PM, Peter Maydell wrote: > On 10 February 2016 at 05:25, Deepak kumar Raju > wrote: > > Regarding the questions, we have hw board which has Cortex-A7, so we > thought > > we have to go with A7 emulation. we were not very sure A15 emulation > will be > > almost equivalent to A7 emulation. > > All we want to do is A7 emulation but now I am understanding that A15 > > emulation should similar to A7 emulation. please correct me. > > If you want to emulate the whole hardware board in QEMU, > then adding the A7 CPU emulation is the right thing (and > not very hard compared to doing the whole hardware model). > If you don't care about emulating the hardware because you're > going to run (say) a Linux kernel on one of QEMU's existing > models and you mostly care about userspace, then using the > A15 will be fine -- the two CPUs are basically identical > for that purpose, and Linux supports both. > > If you're running QEMU to use KVM on the ARM hardware, > then you want "-cpu host", which means "use the best CPU > type that the kernel can provide" and works on A7 and A15 > hosts. > > thanks > -- PMM > --001a11401970417337052c8459f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Peter,

We are emulating t= he A7 hardware board in QEMU. Currently I have started with A15 CPU config.= I need to enable GIC and generic timer. Can you please point me to how GIC= & generic timer=C2=A0should be=C2=A0enabled considering vexpress.c emu= lation board?.
Thanks in advance for the help,

Best Regards,
-Deepak

On Wed, Feb 10, 2016 at 3:43 PM, Peter Ma= ydell <peter.maydell@linaro.org> wrote:
On 10 February 2016 at 05:25, Deepak kumar Raju
<raju.deepakkumar@gm= ail.com> wrote:
> Regarding the questions, we have hw board which has Cortex-A7, so we t= hought
> we have to go with A7 emulation. we were not very sure A15 emulation w= ill be
> almost equivalent to A7 emulation.
> All we want to do is A7 emulation but now I am understanding that A15<= br> > emulation should similar to A7 emulation. please correct me.

If you want to emulate the whole hardware board in QEMU,
then adding the A7 CPU emulation is the right thing (and
not very hard compared to doing the whole hardware model).
If you don't care about emulating the hardware because you're
going to run (say) a Linux kernel on one of QEMU's existing
models and you mostly care about userspace, then using the
A15 will be fine -- the two CPUs are basically identical
for that purpose, and Linux supports both.

If you're running QEMU to use KVM on the ARM hardware,
then you want "-cpu host", which means "use the best CPU
type that the kernel can provide" and works on A7 and A15
hosts.

thanks
-- PMM

--001a11401970417337052c8459f5-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZCC6-0008MB-9p for qemu-devel@nongnu.org; Fri, 26 Feb 2016 01:48:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZCC5-00029v-0L for qemu-devel@nongnu.org; Fri, 26 Feb 2016 01:48:06 -0500 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:36625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZCC4-00029h-JU for qemu-devel@nongnu.org; Fri, 26 Feb 2016 01:48:04 -0500 Received: by mail-lf0-x22a.google.com with SMTP id l83so408477lfd.3 for ; Thu, 25 Feb 2016 22:48:04 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 26 Feb 2016 12:18:03 +0530 Message-ID: From: Deepak kumar Raju Content-Type: multipart/alternative; boundary=001a1140197040c1d0052ca6ae8d Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a1140197040c1d0052ca6ae8d Content-Type: text/plain; charset=UTF-8 Hi Peter, We have GIC & generic timer enabled on Linux kernel side. Need help from you how to enable GIC & generic timer on QEMU side. Can you please help. Thanks, Best Regads, -Deepak On Wed, Feb 24, 2016 at 7:20 PM, Deepak kumar Raju < raju.deepakkumar@gmail.com> wrote: > Hi Peter, > > We are emulating the A7 hardware board in QEMU. Currently I have started > with A15 CPU config. I need to enable GIC and generic timer. Can you please > point me to how GIC & generic timer should be enabled considering > vexpress.c emulation board?. > Thanks in advance for the help, > > Best Regards, > -Deepak > > On Wed, Feb 10, 2016 at 3:43 PM, Peter Maydell > wrote: > >> On 10 February 2016 at 05:25, Deepak kumar Raju >> wrote: >> > Regarding the questions, we have hw board which has Cortex-A7, so we >> thought >> > we have to go with A7 emulation. we were not very sure A15 emulation >> will be >> > almost equivalent to A7 emulation. >> > All we want to do is A7 emulation but now I am understanding that A15 >> > emulation should similar to A7 emulation. please correct me. >> >> If you want to emulate the whole hardware board in QEMU, >> then adding the A7 CPU emulation is the right thing (and >> not very hard compared to doing the whole hardware model). >> If you don't care about emulating the hardware because you're >> going to run (say) a Linux kernel on one of QEMU's existing >> models and you mostly care about userspace, then using the >> A15 will be fine -- the two CPUs are basically identical >> for that purpose, and Linux supports both. >> >> If you're running QEMU to use KVM on the ARM hardware, >> then you want "-cpu host", which means "use the best CPU >> type that the kernel can provide" and works on A7 and A15 >> hosts. >> >> thanks >> -- PMM >> > > --001a1140197040c1d0052ca6ae8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Peter,
We have GIC & generic timer e= nabled on Linux kernel side. Need help from you how to enable GIC & gen= eric timer on QEMU side.
Can you please help. Thanks,
=
Best Regads,
-Deepak

On Wed, Feb 24, 2016 at 7:20 PM, De= epak kumar Raju <raju.deepakkumar@gmail.com> wrote:=
Hi Peter,

We are emulating the A7 hardware board in QEMU. Currently = I have started with A15 CPU config. I need to enable GIC and generic timer.= Can you please point me to how GIC & generic timer=C2=A0should be=C2= =A0enabled considering vexpress.c emulation board?.
Thanks in ad= vance for the help,

Best Regards,
-Deepa= k

On Wed, Feb 10, 2016 at 3:43 PM, Peter = Maydell <peter.maydell@linaro.org> wrote:
On 10 February 2016 at 05:25, Deepak kumar Raju
<r= aju.deepakkumar@gmail.com> wrote:
> Regarding the questions, we have hw board which has Cortex-A7, so we t= hought
> we have to go with A7 emulation. we were not very sure A15 emulation w= ill be
> almost equivalent to A7 emulation.
> All we want to do is A7 emulation but now I am understanding that A15<= br> > emulation should similar to A7 emulation. please correct me.

If you want to emulate the whole hardware board in QEMU,
then adding the A7 CPU emulation is the right thing (and
not very hard compared to doing the whole hardware model).
If you don't care about emulating the hardware because you're
going to run (say) a Linux kernel on one of QEMU's existing
models and you mostly care about userspace, then using the
A15 will be fine -- the two CPUs are basically identical
for that purpose, and Linux supports both.

If you're running QEMU to use KVM on the ARM hardware,
then you want "-cpu host", which means "use the best CPU
type that the kernel can provide" and works on A7 and A15
hosts.

thanks
-- PMM


--001a1140197040c1d0052ca6ae8d-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZFX1-0005XD-Pn for qemu-devel@nongnu.org; Fri, 26 Feb 2016 05:21:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZFX1-0001mI-2U for qemu-devel@nongnu.org; Fri, 26 Feb 2016 05:21:55 -0500 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:35217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZFX0-0001m8-UU for qemu-devel@nongnu.org; Fri, 26 Feb 2016 05:21:54 -0500 Received: by mail-vk0-x22f.google.com with SMTP id e6so73120696vkh.2 for ; Fri, 26 Feb 2016 02:21:54 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Fri, 26 Feb 2016 10:21:35 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Regarding Cortex-A7 CPU definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Deepak kumar Raju Cc: QEMU Developers On 26 February 2016 at 06:48, Deepak kumar Raju wrote: > Hi Peter, > We have GIC & generic timer enabled on Linux kernel side. Need help from you > how to enable GIC & generic timer on QEMU side. I suggest you look at how we already do it for the Cortex-A15. The A7 will be very similar. thanks -- PMM