Peter Maydell <peter.mayd...@linaro.org> writes:

> On 8 October 2012 21:23, Anthony Liguori <anth...@codemonkey.ws> wrote:
>> It may be possible to cheat and compile the TCG + CPU code multiple
>> times as dynamic libraries.  You can then load the libraries with
>> dlopen() with local symbol resolution.
>
> ...and when the common code wants to (say) call cpu_exit() on a
> particular core, how does it know which DLL's version to call?
> That said, I have a feeling I've heard about people trying this
> kind of approach before, so it's probably possible to get something
> that works on at least one host OS. I think doing it "properly"
> would be less of a hack, though...

I think you basically need to treat a "foreign" CPU separately from a
local CPU.  You would load foreign CPUs as libraries and interact with
it separately.

I think the initial focus should be on hacking something to work.  Then
we can figure out what's the best path to merging.

Regards,

Anthony Liguori

>
> -- PMM

Reply via email to