qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] configure: Add new target ppc64el-linux-use


From: 關振德
Subject: Re: [Qemu-devel] [PATCH 3/3] configure: Add new target ppc64el-linux-user
Date: Thu, 8 May 2014 08:19:36 -0700



On Thu, May 8, 2014 at 7:41 AM, Tom Musta <address@hidden> wrote:
On 5/8/2014 3:26 AM, Doug Kwan wrote:
> Add a new user mode target for little-endian PPC64.
>
> Signed-off-by: Doug Kwan <address@hidden>
> ---
>  configure                              | 6 ++++++
>  default-configs/ppc64el-linux-user.mak | 1 +
>  2 files changed, 7 insertions(+)
>  create mode 100644 default-configs/ppc64el-linux-user.mak
>
> diff --git a/configure b/configure
> index ac2fa15..ce44044 100755
> --- a/configure
> +++ b/configure
> @@ -4917,6 +4917,12 @@ case "$target_name" in
>      echo "TARGET_ABI32=y" >> $config_target_mak
>      gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
>    ;;
> +  ppc64el)
> +    TARGET_ARCH=ppc64
> +    TARGET_BASE_ARCH=ppc
> +    TARGET_ABI_DIR=ppc
> +    gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
> +  ;;
>    sh4|sh4eb)
>      TARGET_ARCH=sh4
>      bflt="yes"
> diff --git a/default-configs/ppc64el-linux-user.mak b/default-configs/ppc64el-linux-user.mak
> new file mode 100644
> index 0000000..6948225
> --- /dev/null
> +++ b/default-configs/ppc64el-linux-user.mak
> @@ -0,0 +1 @@
> +# Default configuration for ppc64el-linux-user
>

We have TCG targets for PowerPC that are bi-endian. It would be much nicer to have to split
user mode by endianness.  If the user loads a BE ELF, then run in BE mode .... a LE ELF,
then run in LE mode.

I know there is much hand waving in that statement ... but maybe we can do better?  ("we" includes
"me" in that statement ... since I offered to Doug to help out with this).



To do this, we need to fix the elf load. I believe it currently only loads binary the endianness of the same endianness of the configure target.  It will be a more general change that will benefit other bi-endian architecture.  Would you help me out in that?

-Doug

reply via email to

[Prev in Thread] Current Thread [Next in Thread]