On Tue, Sep 2, 2014 at 3:54 AM, Paolo Bonzini <[email protected]> wrote: > Il 01/09/2014 19:43, Peter Maydell ha scritto: >> On 26 August 2014 01:58, Peter Crosthwaite <[email protected]> >> wrote: >>> It's not really a common object >> >> In what sense isn't it a common object? It's only >> compiled once, rather than per-target. We should >> avoid moving object files from compiled-once >> to compiled-per-target if we can... > > Should we add a softmmu_enabled() function similar to kvm_enabled(), > that returns true for system emulation and false for user-mode emulation? >
Doesn't really help me in this case, as I need conditional compliation due to use of the maybe-exists &address_space_memory. I would also need to add get_system_address_space() which return NULL for user-mode as well. Regards, Peter > Paolo > >
