Il 04/02/2013 19:13, Peter Maydell ha scritto: >> > This reorganizes the over 600 files in the hw/ directory to multiple >> > subdirectories: acpi/, audio/, block/, bt/, char/, display/, i2c/, input/, >> > isa/, misc/, net/, scsi/, sd/, ssi/, timer/, virtio/, watchdog/, xen/. >> > These are in addition to the existing 9pfs/, ide/, kvm/, pci/, usb/ >> > directories, and to the per-target directories. > I think this is inconsistent. Either we should organise by category, > or we should organise per-target, but we shouldn't try to do both. > Otherwise we're just going to wind up with half the $TARGET-specific > $FOO device models in hw/$TARGET and the other half in hw/$FOO.
The $FOO device models should all be in hw/$FOO. But there are some parts that do not fit in a category or are always target-specific, and hw/$TARGET has them. Also, the kernel similarly has arch/$TARGET and drivers/$FOO. Paolo