Received: from eggs.gnu.org ([208.118.235.92]:38952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfTLO-0002J6-9N for qemu-devel@nongnu.org; Fri, 15 Jun 2012 06:01:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfTLG-0003YV-77 for qemu-devel@nongnu.org; Fri, 15 Jun 2012 06:01:29 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:64950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfTLE-0003XY-Mc for qemu-devel@nongnu.org; Fri, 15 Jun 2012 06:01:22 -0400 Date: Fri, 15 Jun 2012 18:01:11 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120615100111.GA98347@cs.nctu.edu.tw> References: <56a7fc70336de91d650005bd77a3c7044feb0831.1339753406.git.gxt@mprc.pku.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56a7fc70336de91d650005bd77a3c7044feb0831.1339753406.git.gxt@mprc.pku.edu.cn> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Guan Xuetao Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org, chenwj@iis.sinica.edu.tw, afaerber@suse.de Hi Guan, > /* These instructions trap after executing, so defer them until after = the > conditional executions state has been updated. */ > @@ -1551,12 +1558,12 @@ static void do_misc(CPUUniCore32State *env, Dis= asContext *s, uint32_t insn) > /* load/store I_offset and R_offset */ > static void do_ldst_ir(CPUUniCore32State *env, DisasContext *s, uint32= _t insn) > { > - unsigned int i; > + unsigned int mmuindex; ^^^^^^^^ I would suggest you to rename it to mmu_idx or something like that. :) 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