> > >ultimately there will be a single QEMU executable supporting all > > > machines and CPUs. In the pcnet case for example, the macro > > > 'SPARC_FIX_DESC' is almost surely not necessary because the device > > > seems implicitely little endian (the original code lacks correct > > > endianness conversion routines > > > > !). > > > > That's what I suspected. I'll try to make an universal version. > > Do you want to preserve bitfields in structures? See comments near > PACKED_FIELD() decl
Relying on bitfields having a particular memory layout is generally a bad idea. For any code that relies on a particular bit layout I strongly suggest avoiding bitfields and using explicit shift/mask or a conversion routine that converts from guest memory to host struct formats. Paul _______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel