qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K
@ 2011-06-23 11:12 Jamie Iles
  2011-06-23 11:13 ` [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores Jamie Iles
  2011-07-06 10:39 ` [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Peter Maydell
  0 siblings, 2 replies; 9+ messages in thread
From: Jamie Iles @ 2011-06-23 11:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jamie Iles, Paul Brook, Aurelien Jarno, Peter Maydell

The VMSAv7 remapping and access permissions were introduced in ARMv6K
and not ARMv7.

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Paul Brook <paul@codesourcery.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
---
 target-arm/helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 1208416..eda881b 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -945,7 +945,7 @@ static inline int check_ap(CPUState *env, int ap, int domain, int access_type,
   case 6:
       return prot_ro;
   case 7:
-      if (!arm_feature (env, ARM_FEATURE_V7))
+      if (!arm_feature (env, ARM_FEATURE_V6K))
           return 0;
       return prot_ro;
   default:
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores
  2011-06-23 11:12 [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Jamie Iles
@ 2011-06-23 11:13 ` Jamie Iles
  2011-07-06 10:45   ` Peter Maydell
  2011-07-06 10:39 ` [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Peter Maydell
  1 sibling, 1 reply; 9+ messages in thread
From: Jamie Iles @ 2011-06-23 11:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jamie Iles, Paul Brook, Aurelien Jarno, Peter Maydell

Add support for v6K ARM1176JZ-S.  This core includes the VA<->PA
translation capability and security extensions.

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Paul Brook <paul@codesourcery.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
---
 target-arm/cpu.h    |    1 +
 target-arm/helper.c |   19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 01f5b57..8708f9e 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -414,6 +414,7 @@ void cpu_arm_set_cp_io(CPUARMState *env, int cpnum,
 #define ARM_CPUID_PXA270_C5   0x69054117
 #define ARM_CPUID_ARM1136     0x4117b363
 #define ARM_CPUID_ARM1136_R2  0x4107b362
+#define ARM_CPUID_ARM1176     0x410fb767
 #define ARM_CPUID_ARM11MPCORE 0x410fb022
 #define ARM_CPUID_CORTEXA8    0x410fc080
 #define ARM_CPUID_CORTEXA9    0x410fc090
diff --git a/target-arm/helper.c b/target-arm/helper.c
index eda881b..aee1456 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -36,6 +36,12 @@ static uint32_t arm1136_cp15_c0_c1[8] =
 static uint32_t arm1136_cp15_c0_c2[8] =
 { 0x00140011, 0x12002111, 0x11231111, 0x01102131, 0x141, 0, 0, 0 };
 
+static uint32_t arm1176_cp15_c0_c1[8] =
+{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };
+
+static uint32_t arm1176_cp15_c0_c2[8] =
+{ 0x0140011, 0x12002111, 0x11231121, 0x01102131, 0x01141, 0, 0, 0 };
+
 static uint32_t cpu_arm_find_by_name(const char *name);
 
 static inline void set_feature(CPUARMState *env, int feature)
@@ -86,6 +92,17 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t id)
         env->cp15.c0_cachetype = 0x1dd20d2;
         env->cp15.c1_sys = 0x00050078;
         break;
+    case ARM_CPUID_ARM1176:
+        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_AUXCR);
+        memcpy(env->cp15.c0_c1, arm1176_cp15_c0_c1, 8 * sizeof(uint32_t));
+        memcpy(env->cp15.c0_c2, arm1176_cp15_c0_c2, 8 * sizeof(uint32_t));
+        env->cp15.c0_cachetype = 0x1dd20d2;
+        env->cp15.c1_sys = 0x00050078;
+        break;
     case ARM_CPUID_ARM11MPCORE:
         set_feature(env, ARM_FEATURE_V4T);
         set_feature(env, ARM_FEATURE_V5);
@@ -377,6 +394,7 @@ static const struct arm_cpu_t arm_cpu_names[] = {
     { ARM_CPUID_ARM1026, "arm1026"},
     { ARM_CPUID_ARM1136, "arm1136"},
     { ARM_CPUID_ARM1136_R2, "arm1136-r2"},
+    { ARM_CPUID_ARM1176, "arm1176"},
     { ARM_CPUID_ARM11MPCORE, "arm11mpcore"},
     { ARM_CPUID_CORTEXM3, "cortex-m3"},
     { ARM_CPUID_CORTEXA8, "cortex-a8"},
@@ -1770,6 +1788,7 @@ uint32_t HELPER(get_cp15)(CPUState *env, uint32_t insn)
                 return 1;
             case ARM_CPUID_ARM1136:
             case ARM_CPUID_ARM1136_R2:
+            case ARM_CPUID_ARM1176:
                 return 7;
             case ARM_CPUID_ARM11MPCORE:
                 return 1;
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K
  2011-06-23 11:12 [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Jamie Iles
  2011-06-23 11:13 ` [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores Jamie Iles
@ 2011-07-06 10:39 ` Peter Maydell
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Maydell @ 2011-07-06 10:39 UTC (permalink / raw)
  To: Jamie Iles; +Cc: qemu-devel, Aurelien Jarno, Paul Brook

On 23 June 2011 12:12, Jamie Iles <jamie@jamieiles.com> wrote:
> The VMSAv7 remapping and access permissions were introduced in ARMv6K
> and not ARMv7.
>
> Cc: Peter Maydell <peter.maydell@linaro.org>
> Cc: Aurelien Jarno <aurelien@aurel32.net>
> Cc: Paul Brook <paul@codesourcery.com>
> Signed-off-by: Jamie Iles <jamie@jamieiles.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores
  2011-06-23 11:13 ` [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores Jamie Iles
@ 2011-07-06 10:45   ` Peter Maydell
  2011-07-19 12:32     ` [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores Jamie Iles
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Maydell @ 2011-07-06 10:45 UTC (permalink / raw)
  To: Jamie Iles; +Cc: qemu-devel, Aurelien Jarno, Paul Brook

On 23 June 2011 12:13, Jamie Iles <jamie@jamieiles.com> wrote:
> +    case ARM_CPUID_ARM1176:
> +        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_AUXCR);
> +        memcpy(env->cp15.c0_c1, arm1176_cp15_c0_c1, 8 * sizeof(uint32_t));
> +        memcpy(env->cp15.c0_c2, arm1176_cp15_c0_c2, 8 * sizeof(uint32_t));
> +        env->cp15.c0_cachetype = 0x1dd20d2;
> +        env->cp15.c1_sys = 0x00050078;
> +        break;

Looking at the other cores we model it seems like it would be
more consistent to model the 1176JZF-S, ie the variant with VFP;
we generally seem to have just one variant of each core and it's
the one with all the bells and whistles.

Otherwise looks good (I haven't actually checked all the ID
register values ;-))

-- PMM

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores
  2011-07-06 10:45   ` Peter Maydell
@ 2011-07-19 12:32     ` Jamie Iles
  2011-07-20 14:35       ` Peter Maydell
  0 siblings, 1 reply; 9+ messages in thread
From: Jamie Iles @ 2011-07-19 12:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jamie Iles, Paul Brook, Aurelien Jarno, Peter Maydell

Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
translation capability and security extensions.

v2: Model the version with the VFP

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Paul Brook <paul@codesourcery.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
---
 target-arm/cpu.h    |    1 +
 target-arm/helper.c |   23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 01f5b57..8708f9e 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -414,6 +414,7 @@ void cpu_arm_set_cp_io(CPUARMState *env, int cpnum,
 #define ARM_CPUID_PXA270_C5   0x69054117
 #define ARM_CPUID_ARM1136     0x4117b363
 #define ARM_CPUID_ARM1136_R2  0x4107b362
+#define ARM_CPUID_ARM1176     0x410fb767
 #define ARM_CPUID_ARM11MPCORE 0x410fb022
 #define ARM_CPUID_CORTEXA8    0x410fc080
 #define ARM_CPUID_CORTEXA9    0x410fc090
diff --git a/target-arm/helper.c b/target-arm/helper.c
index eda881b..c5ba5a6 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -36,6 +36,12 @@ static uint32_t arm1136_cp15_c0_c1[8] =
 static uint32_t arm1136_cp15_c0_c2[8] =
 { 0x00140011, 0x12002111, 0x11231111, 0x01102131, 0x141, 0, 0, 0 };
 
+static uint32_t arm1176_cp15_c0_c1[8] =
+{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };
+
+static uint32_t arm1176_cp15_c0_c2[8] =
+{ 0x0140011, 0x12002111, 0x11231121, 0x01102131, 0x01141, 0, 0, 0 };
+
 static uint32_t cpu_arm_find_by_name(const char *name);
 
 static inline void set_feature(CPUARMState *env, int feature)
@@ -86,6 +92,21 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t id)
         env->cp15.c0_cachetype = 0x1dd20d2;
         env->cp15.c1_sys = 0x00050078;
         break;
+    case ARM_CPUID_ARM1176:
+        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_VFP);
+        set_feature(env, ARM_FEATURE_AUXCR);
+        env->vfp.xregs[ARM_VFP_FPSID] = 0x410120b5;
+        env->vfp.xregs[ARM_VFP_MVFR0] = 0x11111111;
+        env->vfp.xregs[ARM_VFP_MVFR1] = 0x00000000;
+        memcpy(env->cp15.c0_c1, arm1176_cp15_c0_c1, 8 * sizeof(uint32_t));
+        memcpy(env->cp15.c0_c2, arm1176_cp15_c0_c2, 8 * sizeof(uint32_t));
+        env->cp15.c0_cachetype = 0x1dd20d2;
+        env->cp15.c1_sys = 0x00050078;
+        break;
     case ARM_CPUID_ARM11MPCORE:
         set_feature(env, ARM_FEATURE_V4T);
         set_feature(env, ARM_FEATURE_V5);
@@ -377,6 +398,7 @@ static const struct arm_cpu_t arm_cpu_names[] = {
     { ARM_CPUID_ARM1026, "arm1026"},
     { ARM_CPUID_ARM1136, "arm1136"},
     { ARM_CPUID_ARM1136_R2, "arm1136-r2"},
+    { ARM_CPUID_ARM1176, "arm1176"},
     { ARM_CPUID_ARM11MPCORE, "arm11mpcore"},
     { ARM_CPUID_CORTEXM3, "cortex-m3"},
     { ARM_CPUID_CORTEXA8, "cortex-a8"},
@@ -1770,6 +1792,7 @@ uint32_t HELPER(get_cp15)(CPUState *env, uint32_t insn)
                 return 1;
             case ARM_CPUID_ARM1136:
             case ARM_CPUID_ARM1136_R2:
+            case ARM_CPUID_ARM1176:
                 return 7;
             case ARM_CPUID_ARM11MPCORE:
                 return 1;
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores
  2011-07-19 12:32     ` [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores Jamie Iles
@ 2011-07-20 14:35       ` Peter Maydell
  2011-07-20 15:36         ` Jamie Iles
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Maydell @ 2011-07-20 14:35 UTC (permalink / raw)
  To: Jamie Iles; +Cc: qemu-devel, Aurelien Jarno, Paul Brook

On 19 July 2011 13:32, Jamie Iles <jamie@jamieiles.com> wrote:
> Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
> translation capability and security extensions.

> +static uint32_t arm1176_cp15_c0_c1[8] =
> +{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };

This seems to be the wrong value for the AUXFR0 (0,c0,c1,3 : fourth item
in this list). The 1176JZF-S TRM says its value is 0x0, not 0x01130003
(which I think you've miscopied from the 0,c0,c1,4 MMFR0 entry).

Sorry I didn't get round to checking these numbers earlier; the
patch is otherwise fine.

-- PMM

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores
  2011-07-20 14:35       ` Peter Maydell
@ 2011-07-20 15:36         ` Jamie Iles
  2011-07-20 15:59           ` Peter Maydell
  0 siblings, 1 reply; 9+ messages in thread
From: Jamie Iles @ 2011-07-20 15:36 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Jamie Iles, qemu-devel, Aurelien Jarno, Paul Brook

On Wed, Jul 20, 2011 at 03:35:19PM +0100, Peter Maydell wrote:
> On 19 July 2011 13:32, Jamie Iles <jamie@jamieiles.com> wrote:
> > Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
> > translation capability and security extensions.
> 
> > +static uint32_t arm1176_cp15_c0_c1[8] =
> > +{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };
> 
> This seems to be the wrong value for the AUXFR0 (0,c0,c1,3 : fourth item
> in this list). The 1176JZF-S TRM says its value is 0x0, not 0x01130003
> (which I think you've miscopied from the 0,c0,c1,4 MMFR0 entry).

Ahh, yes.  Thanks for that, a good spot.

Jamie

8<------

>From af92ff0cd28077ff187f2ac1d952f71297b7d026 Mon Sep 17 00:00:00 2001
From: Jamie Iles <jamie@jamieiles.com>
Date: Thu, 23 Jun 2011 11:37:19 +0100
Subject: [PATCHv3] target-arm: support for ARM1176JZF-s cores

Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
translation capability and security extensions.

v2: Model the version with the VFP
v3: fix up the AFR0 value to be in line with TRM (0x0)

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Paul Brook <paul@codesourcery.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
---
 target-arm/cpu.h    |    1 +
 target-arm/helper.c |   23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 01f5b57..8708f9e 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -414,6 +414,7 @@ void cpu_arm_set_cp_io(CPUARMState *env, int cpnum,
 #define ARM_CPUID_PXA270_C5   0x69054117
 #define ARM_CPUID_ARM1136     0x4117b363
 #define ARM_CPUID_ARM1136_R2  0x4107b362
+#define ARM_CPUID_ARM1176     0x410fb767
 #define ARM_CPUID_ARM11MPCORE 0x410fb022
 #define ARM_CPUID_CORTEXA8    0x410fc080
 #define ARM_CPUID_CORTEXA9    0x410fc090
diff --git a/target-arm/helper.c b/target-arm/helper.c
index eda881b..2050653 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -36,6 +36,12 @@ static uint32_t arm1136_cp15_c0_c1[8] =
 static uint32_t arm1136_cp15_c0_c2[8] =
 { 0x00140011, 0x12002111, 0x11231111, 0x01102131, 0x141, 0, 0, 0 };
 
+static uint32_t arm1176_cp15_c0_c1[8] =
+{ 0x111, 0x11, 0x33, 0, 0x01130003, 0x10030302, 0x01222100, 0 };
+
+static uint32_t arm1176_cp15_c0_c2[8] =
+{ 0x0140011, 0x12002111, 0x11231121, 0x01102131, 0x01141, 0, 0, 0 };
+
 static uint32_t cpu_arm_find_by_name(const char *name);
 
 static inline void set_feature(CPUARMState *env, int feature)
@@ -86,6 +92,21 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t id)
         env->cp15.c0_cachetype = 0x1dd20d2;
         env->cp15.c1_sys = 0x00050078;
         break;
+    case ARM_CPUID_ARM1176:
+        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_VFP);
+        set_feature(env, ARM_FEATURE_AUXCR);
+        env->vfp.xregs[ARM_VFP_FPSID] = 0x410120b5;
+        env->vfp.xregs[ARM_VFP_MVFR0] = 0x11111111;
+        env->vfp.xregs[ARM_VFP_MVFR1] = 0x00000000;
+        memcpy(env->cp15.c0_c1, arm1176_cp15_c0_c1, 8 * sizeof(uint32_t));
+        memcpy(env->cp15.c0_c2, arm1176_cp15_c0_c2, 8 * sizeof(uint32_t));
+        env->cp15.c0_cachetype = 0x1dd20d2;
+        env->cp15.c1_sys = 0x00050078;
+        break;
     case ARM_CPUID_ARM11MPCORE:
         set_feature(env, ARM_FEATURE_V4T);
         set_feature(env, ARM_FEATURE_V5);
@@ -377,6 +398,7 @@ static const struct arm_cpu_t arm_cpu_names[] = {
     { ARM_CPUID_ARM1026, "arm1026"},
     { ARM_CPUID_ARM1136, "arm1136"},
     { ARM_CPUID_ARM1136_R2, "arm1136-r2"},
+    { ARM_CPUID_ARM1176, "arm1176"},
     { ARM_CPUID_ARM11MPCORE, "arm11mpcore"},
     { ARM_CPUID_CORTEXM3, "cortex-m3"},
     { ARM_CPUID_CORTEXA8, "cortex-a8"},
@@ -1770,6 +1792,7 @@ uint32_t HELPER(get_cp15)(CPUState *env, uint32_t insn)
                 return 1;
             case ARM_CPUID_ARM1136:
             case ARM_CPUID_ARM1136_R2:
+            case ARM_CPUID_ARM1176:
                 return 7;
             case ARM_CPUID_ARM11MPCORE:
                 return 1;
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores
  2011-07-20 15:36         ` Jamie Iles
@ 2011-07-20 15:59           ` Peter Maydell
  2011-07-20 16:06             ` Jamie Iles
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Maydell @ 2011-07-20 15:59 UTC (permalink / raw)
  To: Jamie Iles; +Cc: qemu-devel, Aurelien Jarno, Paul Brook

On 20 July 2011 16:36, Jamie Iles <jamie@jamieiles.com> wrote:
> On Wed, Jul 20, 2011 at 03:35:19PM +0100, Peter Maydell wrote:
>> On 19 July 2011 13:32, Jamie Iles <jamie@jamieiles.com> wrote:
>> > Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
>> > translation capability and security extensions.
>>
>> > +static uint32_t arm1176_cp15_c0_c1[8] =
>> > +{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };
>>
>> This seems to be the wrong value for the AUXFR0 (0,c0,c1,3 : fourth item
>> in this list). The 1176JZF-S TRM says its value is 0x0, not 0x01130003
>> (which I think you've miscopied from the 0,c0,c1,4 MMFR0 entry).
>
> Ahh, yes.  Thanks for that, a good spot.

Thanks for the quick patch refresh. This version is
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

> 8<------

Incidentally, this is a bit of an unfortunate format for patches, as it
doesn't apply with the usual "git am filename". Even if you add "-c" git
still puts these headers:

> From af92ff0cd28077ff187f2ac1d952f71297b7d026 Mon Sep 17 00:00:00 2001
> From: Jamie Iles <jamie@jamieiles.com>
> Date: Thu, 23 Jun 2011 11:37:19 +0100
> Subject: [PATCHv3] target-arm: support for ARM1176JZF-s cores

into the commit log.

-- PMM

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores
  2011-07-20 15:59           ` Peter Maydell
@ 2011-07-20 16:06             ` Jamie Iles
  0 siblings, 0 replies; 9+ messages in thread
From: Jamie Iles @ 2011-07-20 16:06 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Jamie Iles, qemu-devel, Aurelien Jarno, Paul Brook

On Wed, Jul 20, 2011 at 04:59:29PM +0100, Peter Maydell wrote:
> On 20 July 2011 16:36, Jamie Iles <jamie@jamieiles.com> wrote:
> > On Wed, Jul 20, 2011 at 03:35:19PM +0100, Peter Maydell wrote:
> >> On 19 July 2011 13:32, Jamie Iles <jamie@jamieiles.com> wrote:
> >> > Add support for v6K ARM1176JZF-S.  This core includes the VA<->PA
> >> > translation capability and security extensions.
> >>
> >> > +static uint32_t arm1176_cp15_c0_c1[8] =
> >> > +{ 0x111, 0x11, 0x33, 0x01130003, 0x01130003, 0x10030302, 0x01222100, 0 };
> >>
> >> This seems to be the wrong value for the AUXFR0 (0,c0,c1,3 : fourth item
> >> in this list). The 1176JZF-S TRM says its value is 0x0, not 0x01130003
> >> (which I think you've miscopied from the 0,c0,c1,4 MMFR0 entry).
> >
> > Ahh, yes.  Thanks for that, a good spot.
> 
> Thanks for the quick patch refresh. This version is
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> 
> > 8<------
> 
> Incidentally, this is a bit of an unfortunate format for patches, as it
> doesn't apply with the usual "git am filename". Even if you add "-c" git
> still puts these headers:
> 
> > From af92ff0cd28077ff187f2ac1d952f71297b7d026 Mon Sep 17 00:00:00 2001
> > From: Jamie Iles <jamie@jamieiles.com>
> > Date: Thu, 23 Jun 2011 11:37:19 +0100
> > Subject: [PATCHv3] target-arm: support for ARM1176JZF-s cores
> 
> into the commit log.

Hmm, I misunderstood the scissors option, I guess a plain patch reply 
would have been best.

Thanks for the pointer (and Reviewed-by)!

Jamie

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-07-20 16:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 11:12 [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Jamie Iles
2011-06-23 11:13 ` [Qemu-devel] [PATCHv2 2/2] target-arm: support for ARM1176JZ-s cores Jamie Iles
2011-07-06 10:45   ` Peter Maydell
2011-07-19 12:32     ` [Qemu-devel] [PATCHv2] target-arm: support for ARM1176JZF-s cores Jamie Iles
2011-07-20 14:35       ` Peter Maydell
2011-07-20 15:36         ` Jamie Iles
2011-07-20 15:59           ` Peter Maydell
2011-07-20 16:06             ` Jamie Iles
2011-07-06 10:39 ` [Qemu-devel] [PATCHv2 1/2] target-arm: make VMSAv7 remapping and AP dependent on V6K Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).