On 10/06/21 15:12, Claudio Fontana wrote:
The difficulty is that accelerator code is going to be split across a
large number of directories.

It should be possible to use a sourceset per target; just like there is
target_arch, target_softmmu_arch, target_user_arch we can add
target_softmmu_accel_arch['i386']['tcg'].

So each module would include both accel_modules[accel] and target_softmmu_accel_arch[arch][accel].

Another possibility is to use a single-level of dictionaries, e.g. target_softmmu_accel_arch['i386'], and select files using CONFIG_* symbols. That would be a bit neater but harder to implement. It can be done later.

Paolo


Reply via email to