From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11739 invoked from network); 24 Oct 1999 00:29:01 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Oct 1999 00:29:01 -0000 Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.29]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id UAA25384 for ; Sat, 23 Oct 1999 20:28:59 -0400 Received: From paulaner With LocalMail ; Sun, 24 Oct 99 10:28:39 +1000 From: Daniel Potts To: Richard Henderson Date: Sun, 24 Oct 1999 10:28:39 +1000 (EST) X-Sender: danielp@paulaner.disy.cse.unsw.EDU.AU cc: axp-list@redhat.com Subject: Re: patch_v3: emulating missing instructions on Alpha In-Reply-To: <19991023135544.B15599@twiddle.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 23 Oct 1999, Richard Henderson wrote: > 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. ok > I know you spent a lot of time writing this in assembly, And fun.. we are meant to be completing theses. > 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. We did this originally, but there is a noticable speedup the way we do it now. The main aim was to reduce the amount of loads and stores. This is a better solution, but on something that has compiled byte operations in, they are too frequent to go unnoticed speedwise. > 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. Thats cool.