Received: from eggs.gnu.org ([140.186.70.92]:56145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPgsJ-00032d-0f for qemu-devel@nongnu.org; Thu, 26 May 2011 16:09:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPgsH-0003c9-WB for qemu-devel@nongnu.org; Thu, 26 May 2011 16:09:42 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:48400) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QPgsH-0003c2-Ld for qemu-devel@nongnu.org; Thu, 26 May 2011 16:09:41 -0400 From: =?utf-8?Q?Llu=C3=ADs?= References: <4DDD4E15.1080404@mcgary.org> Date: Thu, 26 May 2011 22:07:28 +0200 In-Reply-To: (Blue Swirl's message of "Thu, 26 May 2011 22:11:19 +0300") Message-ID: <87boypjke7.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Multi heterogenous CPU archs for SoC sim? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Blue Swirl writes: > On Wed, May 25, 2011 at 10:20 PM, Peter Maydell > wrote: >> On 25 May 2011 19:44, Greg McGary wrote: >>> I would like to create a QEMU model of an SoC that has several >>> CPU cores having different architectures. =C2=A0I'm guessing this >>> can be done. >>=20 >> It's not supported currently as far as I'm aware. There was >> at least one paper at the QEMU Forum earlier this year describing >> an approach to multi-CPU environments (embedding QEMU into a >> SystemC world) that basically saved and restored all QEMU's >> global variables every time it switched cores... >>=20 >> It would be good if it was supported in QEMU proper, but I >> suspect you may be in for some large-scale restructuring work. > One of the long standing goals for QEMU has been to be able to use a > single executable to emulate multiple architectures. I think for > example the lines like > #define cpu_init cpu_sparc_init > #define cpu_exec cpu_sparc_exec > etc. stand for this purpose, so there has been some consideration for thi= s. Nicely handling per-arch functions would be one of the benefits of using C++ in QEMU (I know, it's sufficient but not necessary). What were the conclusions regarding such a change? Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth