From owner-freebsd-alpha Mon Nov 11 5:57:29 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A947237B401 for ; Mon, 11 Nov 2002 05:57:28 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14BEE43E6E for ; Mon, 11 Nov 2002 05:57:28 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id IAA01992; Mon, 11 Nov 2002 08:57:27 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id gABDuvc47861; Mon, 11 Nov 2002 08:56:57 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15823.46889.535089.487743@grasshopper.cs.duke.edu> Date: Mon, 11 Nov 2002 08:56:57 -0500 (EST) To: Poul-Henning Kamp Cc: alpha@FreeBSD.ORG Subject: Re: ev4/5/6 issue ? In-Reply-To: <54463.1037022613@critter.freebsd.dk> References: <15823.46162.102126.470628@grasshopper.cs.duke.edu> <54463.1037022613@critter.freebsd.dk> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Poul-Henning Kamp writes: > (gdb) where > #0 0x12001f4e8 in ?? () Try 'disassemble' here, please. > > 1. Why doesn't file(1) tell me if a binary is ev45 or ev6 ? > > 2. Couldn't the elf activator not find out and say "Sorry, > cannot execute ev6 on this machine" ? Because there is no way of knowing, and in general, you don't need to know. As I said previously, the kernel is supposed to fixup newer instruction executed on older machines. However, this is expensive, and the toolchain should not be emitting code with those instructions in the first place, unless it is told to. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message