Re: [Coremu-list-devel] Porting coremu for powerpc platform
Brought to you by:
cyfdecyf
From: Diviya J. <div...@gm...> - 2011-08-29 06:05:58
|
Thanks for the info. Another question that I have regard porting is that latest version of Qemu i.e v 0.15.0 has many powerpc related changes. There has been significant development for ppc platform in latest version as compared to the patched Qemu currently being used as part of coremu. What is the best way to make latest qemu v 0.15.0 work with coremu? On 8/26/11, zhaoguo wang <tig...@gm...> wrote: > Diviya: > I'm sorry there is no porting guide available. However we are > very glad to help > you for the porting work.To port QEMU for a new architecture, please > consider > the following aspects: > > 1. atomic instruction emulation. > see target-arm/translate.c and target-arm/cm-atomic.c/h > > 2. devices emulation. > You need to modify the interrupt controller emulation by using > interfaces > provided by coremu (e.g.coremu_send_intr). see > target-arm/cm-target-intr.c > and hw/arm_pic.c. > > You also need to make emulated devices can be concurrently accessed. > (e.g. Two emulated cpu threads may access a device at the same time.) > For arm architecture, we use a global lock to protect the emulated > device, it's > simple but no efficient. For x86_64 architecture, we parallel every > device > emulation which is very efficient but the development time is a little > long. > > We use #if defined(CONFIG_COREMU) to encapsulate all the changes in > QEMU. > For the code shared with other architecture, we use > #if defined(CONFIG_COREMU) && defined(TARGET_ARM) to encapsulate > the changes specially for arm architecture. > > > 2011/8/26 Diviya Jain <div...@gm...>: >> Hi, >> We need to port Qemu for powerpc to Coremu. Is there any porting guide >> available? As per your paper porting Coremu for ARM was very easy and >> required only 150 lines of code change to Qemu/Coremu. >> Could you please help us understand what all steps are required to port >> Coremu for powerpc. Is there any document for the same? Or perhaps if you >> could tell us changes done for ARM, so that we can do similar changes for >> powerpc to Qemu/Coremu source code. >> Another way might be grepping through qemu/coremu source code based on >> some >> keyword. Is there some #ifdef etc in qemu/coremu which encapsulate all the >> changes done to make it work for ARM platform? We can do similar for >> powerpc. >> Thanks, >> diviya >> ------------------------------------------------------------------------------ >> EMC VNX: the world's simplest storage, starting under $10K >> The only unified storage solution that offers unified management >> Up to 160% more powerful than alternatives and 25% more efficient. >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev >> _______________________________________________ >> Coremu-list-devel mailing list >> Cor...@li... >> https://lists.sourceforge.net/lists/listinfo/coremu-list-devel >> >> > > > > -- > Zhaoguo Wang, Parallel Processing Institute, Fudan University > > Address: Room 320, Software Building, 825 Zhangheng Road, Shanghai, China > > tig...@gm... > http://ppi.fudan.edu.cn/zhaoguo_wang > |