Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrivZ-0003vW-0H for qemu-devel@nongnu.org; Tue, 16 Mar 2010 22:24:09 -0400 Received: from [199.232.76.173] (port=49335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrivX-0003uq-Ny for qemu-devel@nongnu.org; Tue, 16 Mar 2010 22:24:07 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrivW-0004mW-Jf for qemu-devel@nongnu.org; Tue, 16 Mar 2010 22:24:07 -0400 Received: from b.painless.aaisp.net.uk ([81.187.30.52]:38167) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NrivW-0004mO-AT for qemu-devel@nongnu.org; Tue, 16 Mar 2010 22:24:06 -0400 Received: from zubnet.me.uk ([81.187.243.246] helo=circe) by b.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from ) id 1NrivT-0000pw-OV for qemu-devel@nongnu.org; Wed, 17 Mar 2010 02:24:03 +0000 Date: Wed, 17 Mar 2010 02:23:57 +0000 From: Stuart Brady Subject: Re: [Qemu-devel] [PATCH 4/4] tcg-hppa: Compute is_write in cpu_signal_handler. Message-ID: <20100317022357.GA23511@zubnet.me.uk> References: <14f1f6f787a15f6d6a5c3ce7f49a2e682aa339e7.1268754659.git.rth@twiddle.net> <20100317021043.GD23195@zubnet.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100317021043.GD23195@zubnet.me.uk> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Mar 17, 2010 at 02:10:43AM +0000, Stuart Brady wrote: > Argh. It just seems mind bogglingly silly that is_write doesn't seem to > be included in the siginfo on archs where doing so would make sense... > It's at least something I'd have hoped libc could take care of in the case > where the hardware doesn't indicate whether the fault was due to a read > or a write... Oh, actually, I guess you'd just test the equivalent of '(info->si_isr >> 33) & 1' or 'DSISR_sig(uc) & 0x00800000)' on such an arch, but it still seems a shame that this isn't done for us on archs without that ability... Cheers, -- Stuart Brady