MIPS little endian system emulation?
Hi.
What would need to be done for qemu to support little endian system emulation?
I tried changing kernel config, to "support" little endian, and it even builds it. When i try to boot it with qemu-system-mips it... well... doesn't do anything.
I'm guessing that I need something like qemu-system-mipsel? Any hints on how to easily (if that's possible) provide it?
Thank you in advance.
Domen
Quoted 10 lines · Domen Puncer
Hi.
What would need to be done for qemu to support little endian system emulation?
I tried changing kernel config, to "support" little endian, and it even builds it. When i try to boot it with qemu-system-mips it... well... doesn't do anything.I'm guessing that I need something like qemu-system-mipsel? Any hints on how to easily (if that's possible) provide it?
Hah, crazy, I changed this, and it worked:
configure +1 -1
@@ -229,7 +229,7 @@ if test -z "$target_list" ; then # these targets are portable - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu arm-softmmu" + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu arm-softmmu mipsel-softmmu" # the following are Linux specific if [ "$linux" = "yes" ] ; then target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list"
Sorry for the noise.
Quoted 5 lines
Thank you in advance.
Domen
Hi,
configure line 235
Quoted 11 lines · Domen Puncer
configure +1
-1@@ -229,7 +229,7 @@ if test -z "$target_list" ; then # these targets are portable - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu arm-softmmu" + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu arm-softmmu mipsel-softmmu" # the following are Linux specific if [ "$linux" = "yes" ] ; then target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list"
BTW configure has this lovely option: "--target-list=LIST"...
Hth,
Dscho
Quoted 10 lines · Domen Puncer
Hi.
What would need to be done for qemu to support little endian system emulation?
I tried changing kernel config, to "support" little endian, and it even builds it. When i try to boot it with qemu-system-mips it... well... doesn't do anything.I'm guessing that I need something like qemu-system-mipsel? Any hints on how to easily (if that's possible) provide it?
Hi,
I see no reason why the mipsel system emulation cannot be implemented in the existing qemu-system-mips with a dynamic switch (I was told that some MIPS processor have a bit to dynamically select the endianness). I would really prefer that compared to a new target. Note that I added a new target for user mode mipsel and armeb just because it would have been difficult and inefficient to switch the endianness dynamically in the Linux system call converter...
Fabrice.