Received: from eggs.gnu.org ([140.186.70.92]:46818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro7nM-00089l-S4 for qemu-devel@nongnu.org; Fri, 20 Jan 2012 01:17:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro7nL-0004yF-Nc for qemu-devel@nongnu.org; Fri, 20 Jan 2012 01:17:52 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:27454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro7nL-0004yB-8r for qemu-devel@nongnu.org; Fri, 20 Jan 2012 01:17:51 -0500 Date: Fri, 20 Jan 2012 14:17:48 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120120061748.GB37601@cs.nctu.edu.tw> References: <20120119082429.GA27409@cs.nctu.edu.tw> 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] Question about do_interrupt (target-i386/op_helper.c) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, =?utf-8?B?6Zmz6Z+L5Lu7?= > In cpu_exec() env is a local variable. In do_interrupt() it is the glob= al > variable (held in a specific register via "asm(AREG0)"). The two aren't > necessarily the same value, hence the fiddling about. Do you mean we sync env with envl at this point? 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