Skip to contentSkip to conversation

MIPS little endian system emulation?

Qemu-devel Domen Puncer 3 participants 4 messages Jan 11, 2006 – Jan 12, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw

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

#3 lore raw
In reply to Domen Puncer
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.