[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init() |
Date: |
Tue, 11 Oct 2016 09:55:54 +0100 |
On 11 October 2016 at 02:24, David Gibson <address@hidden> wrote:
> On Mon, Oct 10, 2016 at 03:10:33PM +0100, Peter Maydell wrote:
>> On 10 October 2016 at 14:39, David Gibson <address@hidden> wrote:
>> > In the overwhelming majority of cases the endianness of the device is
>> > known independent of the guest CPU and board.
>>
>> We don't seem to model things that way:
>>
>> $ git grep '.endianness = DEVICE_NATIVE' |wc -l
>> 341
>> $ git grep '.endianness = DEVICE_BIG' |wc -l
>> 18
>> $ git grep '.endianness = DEVICE_LITTLE' |wc -l
>> 172
>
> Sigh. So, most of these are themselves mistakes.
>
> A lot of these are target specific devices that should be tagged with
> their target's (notional) endianness, rather than NATIVE. That
> covers:
> MICROBLAZE
> hw/dma/xilinx_axidma.c 1
> hw/char/xilinx_uartlite.c 1
> hw/intc/xilinx_intc.c 1
> hw/net/xilinx_ethlite.c 1
> hw/timer/xilinx_timer.c 1
> hw/ssi/xilinx_spi.c 1
> ---
> TOTAL 6
We build microblaze in both big and little endian configs...
> MIPS
> hw/mips 8
> hw/*/mips* 5
> hw/display/jazz_led.c 1
> hw/dma/rc4030.c 2
> hw/net/dp8393x.c 1
> hw/pci-host/bonito.c 5
> ---
> TOTAL 22
Ditto MIPS.
> SH
> hw/sh4 4
> hw/*/sh_* 3
> hw/display/sm501.c 4
> ---
> TOTAL 11
And SH.
> XTENSA
> hw/xtensa 3
And Xtensa.
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), (continued)
Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/10
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), Peter Maydell, 2016/10/10
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/10
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), Peter Maydell, 2016/10/10
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/10
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/11
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(),
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/11
Re: [Qemu-devel] [PATCH v2] qtest: ask endianness of the target in qtest_init(), David Gibson, 2016/10/10