From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzXcY-0003q2-80 for qemu-devel@nongnu.org; Tue, 24 Jun 2014 16:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzXcU-00015F-TU for qemu-devel@nongnu.org; Tue, 24 Jun 2014 16:47:14 -0400 Received: from zeniv.linux.org.uk ([2002:c35c:fd02::1]:38997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzXcU-000155-Ls for qemu-devel@nongnu.org; Tue, 24 Jun 2014 16:47:10 -0400 Date: Tue, 24 Jun 2014 21:47:09 +0100 From: Al Viro Message-ID: <20140624204709.GA18016@ZenIV.linux.org.uk> References: <20140624043423.GX18016@ZenIV.linux.org.uk> <53A9C205.6070806@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A9C205.6070806@twiddle.net> Sender: Al Viro Subject: Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Tue, Jun 24, 2014 at 11:23:01AM -0700, Richard Henderson wrote: > > env->error_code = error; > > if (retaddr) { > > cpu_restore_state(cs, retaddr); > > + env->pc += 4; > > This one needs a different fix, since dynamic_excp is also used from > alpha_cpu_unassigned_access, and I'm pretty sure the mchk should have the > address of the memory insn. But that should be easy to fix up. That's not a problem, actually - there we have dynamic_excp(env, 0, EXCP_MCHK, 0); so retaddr is going to be 0 and that env->pc += 4 won't be reached at all...