From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iul8u-0004cF-JE for qemu-devel@nongnu.org; Wed, 21 Nov 2007 03:41:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iul8q-0004br-4O for qemu-devel@nongnu.org; Wed, 21 Nov 2007 03:41:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iul8p-0004bo-Uk for qemu-devel@nongnu.org; Wed, 21 Nov 2007 03:41:04 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iul8p-0005To-F1 for qemu-devel@nongnu.org; Wed, 21 Nov 2007 03:41:03 -0500 Received: from pip15.gyao.ne.jp ([61.122.117.253] helo=mx.gate01.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iul8l-00081A-Iz for qemu-devel@nongnu.org; Wed, 21 Nov 2007 03:40:59 -0500 Received: from [124.34.33.190] (helo=master.linux-sh.org) by smtp31.isp.us-com.jp with esmtp (Mail 4.41) id 1Iul8e-00028v-PY for qemu-devel@nongnu.org; Wed, 21 Nov 2007 17:40:52 +0900 Received: from localhost (unknown [127.0.0.1]) by master.linux-sh.org (Postfix) with ESMTP id 5861964C7C for ; Wed, 21 Nov 2007 08:40:49 +0000 (UTC) Received: from master.linux-sh.org ([127.0.0.1]) by localhost (master.linux-sh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SvxSy7RNRVvE for ; Wed, 21 Nov 2007 17:40:49 +0900 (JST) Date: Wed, 21 Nov 2007 17:40:48 +0900 From: Paul Mundt Subject: Re: [Qemu-devel] [PATCH] sh4: add signal handling support for user space emulator Message-ID: <20071121084048.GA24217@linux-sh.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Nov 21, 2007 at 05:16:55PM +0900, Magnus Damm wrote: > +#define MOVW(n) (0x9300|((n)-2)) /* Move mem word at PC+n to R3 */ > +#define TRAP_NOARG 0xc310 /* Syscall w/no args (NR in R3) SH3/4 */ > +#define OR_R0_R0 0x200b /* or r0,r0 (insert to avoid hardware bug) */ This is legacy SH-4 errata, and does not pop up on any of the other parts. These days all SH-4 parts return through the vsyscall page, where we deal with this errata directly without having to push it in to the return frame. While you might not want to deal with implementing the vsyscall page, there's definitely no point in crapping up the return frame with this chip errata in the general case.