All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <andreas.faerber@web.de>
To: bill4carson@gmail.com, peter.maydell@linaro.org
Cc: qemu-devel@nongnu.org, android-virt@lists.cs.columbia.edu
Subject: Re: [Qemu-devel] [PATCH] Add minimal Vexpress Cortex A15 support
Date: Mon, 05 Dec 2011 18:59:59 +0100	[thread overview]
Message-ID: <4EDD069F.50401@web.de> (raw)
In-Reply-To: <1322703478-3292-2-git-send-email-bill4carson@gmail.com>

Am 01.12.2011 02:37, schrieb bill4carson@gmail.com:
> From: Bill Carson <bill4carson@gmail.com>
> 
> This patch adds minimal codes to support A15  which enables ARM KVM could
> run Guest OS build with Versatile Express Cortex-A15x4 tile.
> 
> Signed-off-by: Bill Carson <bill4carson@gmail.com>
> ---

> diff --git a/hw/a15mpcore.c b/hw/a15mpcore.c
> new file mode 100644
> index 0000000..2518c17
> --- /dev/null
> +++ b/hw/a15mpcore.c
> @@ -0,0 +1,118 @@
> +/*
> + * ARM A15MPCore internal peripheral emulation (common code).

ARM Cortex-A15 MPCore, please. No need to repeat the short file name.

> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index e712554..6a2c89d 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -217,6 +217,36 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t id)
>          env->cp15.c0_ccsid[1] = 0x200fe015; /* 16k L1 icache. */
>          env->cp15.c1_sys = 0x00c50078;
>          break;
> +    case ARM_CPUID_CORTEXA15: /* most same as A9 */
> +        set_feature(env, ARM_FEATURE_V4T);
> +        set_feature(env, ARM_FEATURE_V5);
> +        set_feature(env, ARM_FEATURE_V6);
> +        set_feature(env, ARM_FEATURE_V6K);
> +        set_feature(env, ARM_FEATURE_V7);
> +        set_feature(env, ARM_FEATURE_AUXCR);
> +        set_feature(env, ARM_FEATURE_THUMB2);
> +        set_feature(env, ARM_FEATURE_VFP);
> +        set_feature(env, ARM_FEATURE_VFP3);
> +        set_feature(env, ARM_FEATURE_VFP_FP16);
> +        set_feature(env, ARM_FEATURE_NEON);
> +        set_feature(env, ARM_FEATURE_THUMB2EE);
> +        /* Note that A9 supports the MP extensions even for
> +         * A9UP and single-core A9MP (which are both different
> +         * and valid configurations; we don't model A9UP).
> +         */
> +        set_feature(env, ARM_FEATURE_V7MP);

Peter, this calls for my feature inference series.

Now that 1.0 is out I'll have another go at it later tonight, adding
your suggested rules. Feel free to pick up the initial ones if you like.

Andreas

  parent reply	other threads:[~2011-12-05 18:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01  1:37 [Qemu-devel] Add minimal support for Cortex A15 for ARM KVM bill4carson
2011-12-01  1:37 ` [Qemu-devel] [PATCH] Add minimal Vexpress Cortex A15 support bill4carson
2011-12-01 11:29   ` Peter Maydell
2011-12-01 11:35     ` Peter Maydell
2011-12-05 17:59   ` Andreas Färber [this message]
2011-12-05 18:30     ` Peter Maydell
2011-12-06 12:28   ` Avi Kivity
2011-12-06 12:35     ` Peter Maydell
2011-12-06 12:39       ` Avi Kivity
2011-12-06 12:48         ` Peter Maydell
2011-12-06 13:12           ` Avi Kivity
2011-12-06 13:17             ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDD069F.50401@web.de \
    --to=andreas.faerber@web.de \
    --cc=android-virt@lists.cs.columbia.edu \
    --cc=bill4carson@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.