Patchwork [2/2] microblaze: Allow targeting little-endian mb

login
register
mail settings
Submitter Edgar E. Iglesias
Date Feb. 21, 2011, 1:44 p.m.
Message ID <1298295882-13794-2-git-send-email-edgar.iglesias@petalogix.com>
Download mbox | patch
Permalink /patch/83843/
State New
Headers show

Comments

Edgar E. Iglesias - Feb. 21, 2011, 1:44 p.m.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
---
 configure                                   |    7 +++++--
 default-configs/microblazeel-linux-user.mak |    1 +
 default-configs/microblazeel-softmmu.mak    |    4 ++++
 3 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 default-configs/microblazeel-linux-user.mak
 create mode 100644 default-configs/microblazeel-softmmu.mak
Blue Swirl - Feb. 25, 2011, 3:15 p.m.
On Mon, Feb 21, 2011 at 3:44 PM, Edgar E. Iglesias
<edgar.iglesias@petalogix.com> wrote:
> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
> ---
>  configure                                   |    7 +++++--
>  default-configs/microblazeel-linux-user.mak |    1 +
>  default-configs/microblazeel-softmmu.mak    |    4 ++++
>  3 files changed, 10 insertions(+), 2 deletions(-)
>  create mode 100644 default-configs/microblazeel-linux-user.mak
>  create mode 100644 default-configs/microblazeel-softmmu.mak
>
> diff --git a/configure b/configure
> index 791b71d..3036faf 100755
> --- a/configure
> +++ b/configure
> @@ -984,6 +984,7 @@ arm-softmmu \
>  cris-softmmu \
>  m68k-softmmu \
>  microblaze-softmmu \
> +microblazeel-softmmu \
>  mips-softmmu \
>  mipsel-softmmu \
>  mips64-softmmu \
> @@ -1008,6 +1009,7 @@ armeb-linux-user \
>  cris-linux-user \
>  m68k-linux-user \
>  microblaze-linux-user \
> +microblazeel-linux-user \
>  mips-linux-user \
>  mipsel-linux-user \
>  ppc-linux-user \
> @@ -3005,7 +3007,8 @@ case "$target_arch2" in
>     target_long_alignment=2
>     target_llong_alignment=2
>   ;;
> -  microblaze)
> +  microblaze|microblazeel)
> +    TARGET_ARCH=microblaze
>     bflt="yes"
>     target_nptl="yes"
>     target_phys_bits=32
> @@ -3231,7 +3234,7 @@ for i in $ARCH $TARGET_BASE_ARCH ; do
>     echo "CONFIG_M68K_DIS=y"  >> $config_target_mak
>     echo "CONFIG_M68K_DIS=y"  >> $libdis_config_mak
>   ;;
> -  microblaze)
> +  microblaze*)
>     echo "CONFIG_MICROBLAZE_DIS=y"  >> $config_target_mak
>     echo "CONFIG_MICROBLAZE_DIS=y"  >> $libdis_config_mak
>   ;;
> diff --git a/default-configs/microblazeel-linux-user.mak b/default-configs/microblazeel-linux-user.mak
> new file mode 100644
> index 0000000..566fdc0
> --- /dev/null
> +++ b/default-configs/microblazeel-linux-user.mak
> @@ -0,0 +1 @@
> +# Default configuration for microblaze-linux-user

microblazeel-linux-user?

> diff --git a/default-configs/microblazeel-softmmu.mak b/default-configs/microblazeel-softmmu.mak
> new file mode 100644
> index 0000000..4399b8b
> --- /dev/null
> +++ b/default-configs/microblazeel-softmmu.mak
> @@ -0,0 +1,4 @@
> +# Default configuration for microblaze-softmmu

microblazeel-softmmu?
Edgar Iglesias - March 1, 2011, 9:25 p.m.
On Fri, Feb 25, 2011 at 05:15:57PM +0200, Blue Swirl wrote:
> On Mon, Feb 21, 2011 at 3:44 PM, Edgar E. Iglesias
> <edgar.iglesias@petalogix.com> wrote:
> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
> > ---
> >  configure                                   |    7 +++++--
> >  default-configs/microblazeel-linux-user.mak |    1 +
> >  default-configs/microblazeel-softmmu.mak    |    4 ++++
> >  3 files changed, 10 insertions(+), 2 deletions(-)
> >  create mode 100644 default-configs/microblazeel-linux-user.mak
> >  create mode 100644 default-configs/microblazeel-softmmu.mak
> >
> > diff --git a/configure b/configure
> > index 791b71d..3036faf 100755
> > --- a/configure
> > +++ b/configure
> > @@ -984,6 +984,7 @@ arm-softmmu \
> >  cris-softmmu \
> >  m68k-softmmu \
> >  microblaze-softmmu \
> > +microblazeel-softmmu \
> >  mips-softmmu \
> >  mipsel-softmmu \
> >  mips64-softmmu \
> > @@ -1008,6 +1009,7 @@ armeb-linux-user \
> >  cris-linux-user \
> >  m68k-linux-user \
> >  microblaze-linux-user \
> > +microblazeel-linux-user \
> >  mips-linux-user \
> >  mipsel-linux-user \
> >  ppc-linux-user \
> > @@ -3005,7 +3007,8 @@ case "$target_arch2" in
> >     target_long_alignment=2
> >     target_llong_alignment=2
> >   ;;
> > -  microblaze)
> > +  microblaze|microblazeel)
> > +    TARGET_ARCH=microblaze
> >     bflt="yes"
> >     target_nptl="yes"
> >     target_phys_bits=32
> > @@ -3231,7 +3234,7 @@ for i in $ARCH $TARGET_BASE_ARCH ; do
> >     echo "CONFIG_M68K_DIS=y"  >> $config_target_mak
> >     echo "CONFIG_M68K_DIS=y"  >> $libdis_config_mak
> >   ;;
> > -  microblaze)
> > +  microblaze*)
> >     echo "CONFIG_MICROBLAZE_DIS=y"  >> $config_target_mak
> >     echo "CONFIG_MICROBLAZE_DIS=y"  >> $libdis_config_mak
> >   ;;
> > diff --git a/default-configs/microblazeel-linux-user.mak b/default-configs/microblazeel-linux-user.mak
> > new file mode 100644
> > index 0000000..566fdc0
> > --- /dev/null
> > +++ b/default-configs/microblazeel-linux-user.mak
> > @@ -0,0 +1 @@
> > +# Default configuration for microblaze-linux-user
> 
> microblazeel-linux-user?
> 
> > diff --git a/default-configs/microblazeel-softmmu.mak b/default-configs/microblazeel-softmmu.mak
> > new file mode 100644
> > index 0000000..4399b8b
> > --- /dev/null
> > +++ b/default-configs/microblazeel-softmmu.mak
> > @@ -0,0 +1,4 @@
> > +# Default configuration for microblaze-softmmu
> 
> microblazeel-softmmu?


Thanks, I've corrected the copy+paste:o..

Cheers

Patch

diff --git a/configure b/configure
index 791b71d..3036faf 100755
--- a/configure
+++ b/configure
@@ -984,6 +984,7 @@  arm-softmmu \
 cris-softmmu \
 m68k-softmmu \
 microblaze-softmmu \
+microblazeel-softmmu \
 mips-softmmu \
 mipsel-softmmu \
 mips64-softmmu \
@@ -1008,6 +1009,7 @@  armeb-linux-user \
 cris-linux-user \
 m68k-linux-user \
 microblaze-linux-user \
+microblazeel-linux-user \
 mips-linux-user \
 mipsel-linux-user \
 ppc-linux-user \
@@ -3005,7 +3007,8 @@  case "$target_arch2" in
     target_long_alignment=2
     target_llong_alignment=2
   ;;
-  microblaze)
+  microblaze|microblazeel)
+    TARGET_ARCH=microblaze
     bflt="yes"
     target_nptl="yes"
     target_phys_bits=32
@@ -3231,7 +3234,7 @@  for i in $ARCH $TARGET_BASE_ARCH ; do
     echo "CONFIG_M68K_DIS=y"  >> $config_target_mak
     echo "CONFIG_M68K_DIS=y"  >> $libdis_config_mak
   ;;
-  microblaze)
+  microblaze*)
     echo "CONFIG_MICROBLAZE_DIS=y"  >> $config_target_mak
     echo "CONFIG_MICROBLAZE_DIS=y"  >> $libdis_config_mak
   ;;
diff --git a/default-configs/microblazeel-linux-user.mak b/default-configs/microblazeel-linux-user.mak
new file mode 100644
index 0000000..566fdc0
--- /dev/null
+++ b/default-configs/microblazeel-linux-user.mak
@@ -0,0 +1 @@ 
+# Default configuration for microblaze-linux-user
diff --git a/default-configs/microblazeel-softmmu.mak b/default-configs/microblazeel-softmmu.mak
new file mode 100644
index 0000000..4399b8b
--- /dev/null
+++ b/default-configs/microblazeel-softmmu.mak
@@ -0,0 +1,4 @@ 
+# Default configuration for microblaze-softmmu
+
+CONFIG_PTIMER=y
+CONFIG_PFLASH_CFI01=y