From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3710 invoked from network); 23 Oct 1999 20:55:46 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Oct 1999 20:55:46 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA19952 for ; Sat, 23 Oct 1999 16:55:45 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id NAA16380; Sat, 23 Oct 1999 13:55:44 -0700 Date: Sat, 23 Oct 1999 13:55:44 -0700 From: Richard Henderson To: axp-list@redhat.com Cc: Daniel Paul Potts Subject: Re: patch_v3: emulating missing instructions on Alpha Message-ID: <19991023135544.B15599@twiddle.net> References: <199910181446.QAA18379@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Luke Deller on Fri, Oct 22, 1999 at 02:23:22AM +1000 On Fri, Oct 22, 1999 at 02:23:22AM +1000, Luke Deller wrote: > + srl $0,LOG2_TASKSIZE,$5 /* if addr is not in userland, */ > + cmovne $5,$31,$0 /* then force a segfault by putting addr=0 */ > + ldq_u $3,0($0) > + ldq_u $5,1($0) This is not sufficient to be safe. Examine the extended measures taken by the uaccess.h code. I know you spent a lot of time writing this in assembly, but I'd feel more comfortable if this were in C hanging out with the existing opDEC code in do_entIF. There won't be _that_ much of a speed hit doing things that way. You get to resuse much of the entArith_User code. DU has a defined interface through setsysinfo to turn this stuff on and off -- use that and you don't have to conditionally compile the code. If you don't have access to the appropriate DU headers, I can dig them up at work later. r~