From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50220 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkEnN-0002OQ-8I for qemu-devel@nongnu.org; Tue, 01 Feb 2011 06:53:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkEnL-0001n8-Sx for qemu-devel@nongnu.org; Tue, 01 Feb 2011 06:53:17 -0500 Received: from mail-fx0-f45.google.com ([209.85.161.45]:36985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkEnL-0001n0-N7 for qemu-devel@nongnu.org; Tue, 01 Feb 2011 06:53:15 -0500 Received: by fxm12 with SMTP id 12so6931527fxm.4 for ; Tue, 01 Feb 2011 03:53:14 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <6ADF7310-2588-4FD5-BA21-2A31456B3E2B@suse.de> References: <1295864581-13494-1-git-send-email-vapier@gentoo.org> <20110131140054.GA24608@edde.se.axis.com> <929A8BC2-BC8C-459D-96C0-FF8E9C1BF5FD@suse.de> <6ADF7310-2588-4FD5-BA21-2A31456B3E2B@suse.de> Date: Tue, 1 Feb 2011 11:53:14 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH 0/4] new Blackfin QEMU port From: Peter Maydell Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "Edgar E. Iglesias" , Mike Frysinger , toolchain-devel@blackfin.uclinux.org, qemu-devel@nongnu.org On 1 February 2011 11:46, Alexander Graf wrote: > Ouch. Yes. General rule: never access env from translate.c :). With the arm target I was tempted to restructure translate.c so that we copied the handful of "safe" bits of env that we used into the disas context struct right at the start, and then didn't pass env into the main translation functions at all. That would make it much harder to accidentally use bits of env that we should not, but in the end I decided against it because it would make my qemu-meego merging job that much harder... -- PMM