Skip to contentSkip to conversation

Why does qemu not support qemu-system-armeb?

Qemu-devel Ljun 3 participants 4 messages Jun 14, 2014 – Jun 16, 2014 1 message not in the archive

lore
Share & tools
lore

Ljun

author
#0 lore raw

Hello everyone,I am working on big endian for arm.I change the qemu configure and create a qemu-system-armeb,but I want to know qemu whether support armeb-softmmu.

Software engineer ,Ljun

#1 lore raw
Quoted 3 lines · Ljun

Hello everyone,I am working on big endian for arm.I change the qemu configure and create a qemu-system-armeb,but I want to know qemu whether support armeb-softmmu.

The answer to "why is there no qemu-system-armeb" is in two parts:

(1) We don't support big-endian system emulation. There would need to be work done to implement this beyond just enabling an extra configuration.

(2) If we did support big-endian system emulation, the right way to implement this would be to keep it in qemu-system-arm, and just have the CPU support the various control bits (SCTLR.B, SCTLR.EE, CPSR.E, etc).

(3) We would need a model of some actual board which used a CPU in big-endian mode. (These days if it's purely for a virtual machine you could use the "virt" board, though.)

Are you interested in big-endian emulation:
* in 64-bit (AArch64/ARM64) ?
* in 32-bit v7 (what the ARM ARM calls "BE8") ?
* old-fashioned ARMv5 style ("BE32") ?

thanks
-- PMM

#2 lore raw

Il 15/06/2014 11:08, Peter Maydell ha scritto:

Quoted 7 lines · Ljun
Quoted 3 lines

Hello everyone,I am working on big endian for arm.I change the qemu configure and create a qemu-system-armeb,but I want to know qemu whether support armeb-softmmu.

The answer to "why is there no qemu-system-armeb" is in two parts:

Quoted 8 lines

(1) We don't support big-endian system emulation. There would need to be work done to implement this beyond just enabling an extra configuration.

(2) If we did support big-endian system emulation, the right way to implement this would be to keep it in qemu-system-arm, and just have the CPU support the various control bits (SCTLR.B, SCTLR.EE, CPSR.E, etc).

Also, I have redone my setend patches to support SCTLR.B too, but I have yet to submit them. I have no idea how to test them. :)

Paolo

#4 lore raw
In reply to a message not in the archive

Il 16/06/2014 15:17, Ljun ha scritto:

Quoted 5 lines

I am very glad to you have finished the patch for qemu-system-armeb.I have seriously read your patch in 29 May about the armeb. I want to know two points:
1) whether combined your patch into the qemu , it can support qemu-system-armeb .Do I need to do otherthings?

Actually the binary will still be called qemu-system-arm, and should support both endiannesses.

Quoted 1 line

2) whether you have a plan to verify the patch and submit it?

I plan to send it this week. Help with testing will be welcome.

Paolo