From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLkb9-0001dB-Cl for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:42:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLkb4-0001XD-LF for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:42:54 -0500 Received: from [199.232.76.173] (port=53221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLkb4-0001Wo-7S for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:42:50 -0500 Received: from mxo44.mail.genotec.ch ([82.195.224.44]:61115) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLkb4-0004di-3F for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:42:50 -0500 Date: Fri, 18 Dec 2009 22:32:37 +0100 From: Marc Andre Tanner Subject: Re: [Qemu-devel] [PATCH] target-arm: ARMv4 emulation Message-ID: <20091218213237.GA13509@debbook.brain-dump.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Filip Navara Cc: vince@kyllikki.org, qemu-devel@nongnu.org, paul@codesourcery.com, aurelien@aurel32.net On Tue, Dec 01, 2009 at 09:41:43PM +0100, Filip Navara wrote: > While most of the ARMv5 instructions are backward compatible with ARMv4, there > are few important differences. Most notably the stack pop and load instructions > ignore the lowest bit, which is used by ARMv5 to switch to Thumb mode. A > base-updated data-abort model is used on ARM7TDMI, CP15 coprocessor is not > present and several instructions of later architectures are not implemented. > > This patch introduces flags for the V5, CP15 and ABORT_BU (base-updated abort > model) features. When V5 feature is not set the bit 0 on POP, LD and LDM of PC > register is ignored and doesn't swith to/from Thumb mode and several > instructions are treated as unimplemented (BLX, PLD, BKPT, LDRD, STRD). > > Added are processor definitions for ARM7TDMI and ARM920T. > > Based on patches by Ulrich Hecht and Vincent Sanders . Could someone please review + apply this patch, bonus points if it ends up in 0.12. Thanks, Marc -- Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0