From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC85i-0008JY-SK for qemu-devel@nongnu.org; Tue, 29 Jul 2014 10:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC85g-0004DQ-Vf for qemu-devel@nongnu.org; Tue, 29 Jul 2014 10:09:22 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:41652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC85g-0004D2-QX for qemu-devel@nongnu.org; Tue, 29 Jul 2014 10:09:20 -0400 Date: Tue, 29 Jul 2014 16:08:58 +0200 From: Aurelien Jarno Message-ID: <20140729140858.GA6069@hall.aurel32.net> References: <1406563102-11035-1-git-send-email-elta.era@gmail.com> <1406563102-11035-2-git-send-email-elta.era@gmail.com> <20140728214242.GA24813@ohm.rr44.fr> <20140728223236.GC18733@ohm.rr44.fr> <20140728225254.GA1268@hall.aurel32.net> <53D79664.9070007@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <53D79664.9070007@gmail.com> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 2/2] target-mips/translate.c: Add judgement for msb and lsb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Elta Cc: Peter Maydell , QEMU Developers On Tue, Jul 29, 2014 at 08:41:08PM +0800, Elta wrote: > I think, debug mode shouldn't crash the qemu with an unpredictable > operation, > so i want to fix it. And you say there shouldn't raise RI, i agree with you. Agreed. > Or when lsb > msb, just leave the code and do nothing. What do you > think about > this way? Yes, you can use something like: if (lsb <= msb) { deposit(...) } -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net