Received: from eggs.gnu.org ([208.118.235.92]:58624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWOWX-0004kx-Qp for qemu-devel@nongnu.org; Mon, 21 May 2012 05:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWOWT-0006Ie-QT for qemu-devel@nongnu.org; Mon, 21 May 2012 05:03:29 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:23062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWOWT-0006Hr-4s for qemu-devel@nongnu.org; Mon, 21 May 2012 05:03:25 -0400 Date: Mon, 21 May 2012 17:03:14 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120521090314.GA34163@cs.nctu.edu.tw> References: <1337243758-11802-1-git-send-email-proljc@gmail.com> <1337243758-11802-3-git-send-email-proljc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/15] Openrisc: add MMU support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jia Liu Cc: Blue Swirl , qemu-devel@nongnu.org > >> diff --git a/target-openrisc/mem_helper.c b/target-openrisc/mem_help= er.c > >> index a2d93c7..922dd6b 100644 > >> --- a/target-openrisc/mem_helper.c > >> +++ b/target-openrisc/mem_helper.c > >> @@ -42,5 +42,30 @@ > >> =E6=88=B9oid tlb_fill(CPUOPENRISCState *env1, target_ulong addr, int= is_write, > >> ? ? ? ? ? ? ? int mmu_idx, uintptr_t retaddr) > >> =F0=A3=8F=B5 > >> + ? ?TranslationBlock *tb; > >> + ? =E8=9F=96PUOPENRISCState *saved_env; > >> + ? =E6=8A=A6nsigned long pc; > >> + ? =E7=8A=B2nt ret; > >> + > >> + ? =E5=9D=9Faved_env =3D env; > >> + ? =E7=8C=ACnv =3D env1; > > > > Please avoid compiling with AREG0 and remove this. > > >=20 > Sorry, I'm not very sure about it, may you give me more hits? In dyngen-exec.h, the CPUArchState *env is kept in particular host regi= ster (AREG0), so you shouldn't use env here somehow. Maybe Blue can show you s= ome example how to do that, target-sparc/* might be a place? Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj