From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqawx-0002Bi-97 for qemu-devel@nongnu.org; Mon, 08 Aug 2011 21:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqaww-0002nd-09 for qemu-devel@nongnu.org; Mon, 08 Aug 2011 21:17:43 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:43859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqawv-0002nX-OU for qemu-devel@nongnu.org; Mon, 08 Aug 2011 21:17:41 -0400 Message-ID: <4E408AAF.5060106@etrix.com.au> Date: Tue, 09 Aug 2011 11:17:35 +1000 From: "Brendan Simon (eTRIX)" MIME-Version: 1.0 References: <4E3BD4AD.1060005@etrix.com.au> <4E3F3D89.6070609@etrix.com.au> <1312812773.8598.79.camel@pasglop> In-Reply-To: <1312812773.8598.79.camel@pasglop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] support for Freescale MPC8xx (850/860) processors/platforms Reply-To: brendan.simon@etrix.com.au List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: qemu-devel Developers On 9/08/11 12:12 AM, Benjamin Herrenschmidt wrote: > On Mon, 2011-08-08 at 15:57 +0200, Alexander Graf wrote: >>> Anyone working on Freescale MPC8xx (embedded PowerPC) processors ?? >>> >>> I'm trying to ascertain if the MPC8xx (MPC850) processors are >>> supported, and if not, how much effort would be required to get it >>> working. >> I'm not aware of anyone working on MPC8xx CPU support. In fact, I >> don't really know what they look like - I guess they're 601 derived? >> >> Ben, any idea how much different 8xx is? > Gothic horrors :-) > > They have an MMU of their own. SW loaded TLB but different from anything > else. They have a lot of other "quirks" too. I know, I know, the processor is over 10 years old and I'd thought I'd left it behind over 5 years ago, but I'm now working with it again .... sigh. What I am trying to do is run (emulate) an existing binary image on QEMU so that I can do some accelerated system testing. The images are S19 files programmed into flash that have an embedded RTOS (ThreadX) and a networking stack (Interniche). Anyhow, it sounds like I would have to add support for this processor, so I'm trying to gauge how much work would be involved. Is it a lot of work, or is it a matter of filling out some existing stubbed out functions ?? Do I need to emulate all the hardware right down to the register level. The MPC850 has a lot of registers for configuring itself, the CPM (Communications Processor Module -- a separate RISC co-processor for comms), etc. There seems to be better support (complete ??) for the MPC82xx (8250, 8260, etc) processors which have a G2 core an enhanced CPM. Are there MPC82xx platforms supported in QEMU that I could use as a basis to add support for MPC8xx platforms ?? Is there support for the SCCs and SMCs (part of CPM) for MPC82xx that I can reuse for the MPC8xx ?? Where should I start (assuming the task is not horrific) ?? Thanks for any insight or suggestions. Brendan.