From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26213 invoked by alias); 28 Mar 2002 23:11:13 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26204 invoked from network); 28 Mar 2002 23:11:12 -0000 Received: from unknown (HELO dragon.nuxi.com) (66.92.13.169) by sources.redhat.com with SMTP; 28 Mar 2002 23:11:12 -0000 Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g2SNBCYm000339 for ; Thu, 28 Mar 2002 15:11:12 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g2SN9uDK099029 for gdb-patches@sources.redhat.com; Thu, 28 Mar 2002 15:09:56 -0800 (PST) Date: Thu, 28 Mar 2002 15:11:00 -0000 From: "David O'Brien" To: gdb-patches@sources.redhat.com Subject: add disk device to PowerPC sim Message-ID: <20020328150956.A99002@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-SW-Source: 2002-03/txt/msg00591.txt.bz2 I make this commit needed by the FreeBSD/powerpc porting effort. 2002-03-24 David O'Brien * ppc/hw_disk.c: Export a disk device property. Index: hw_disk.c =================================================================== RCS file: /cvs/src/src/sim/ppc/hw_disk.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- hw_disk.c 1999/04/16 01:35:09 1.1 +++ hw_disk.c 2002/03/25 04:39:20 1.2 @@ -232,6 +232,9 @@ space, address, 0/*size*/, access_read_write_exec, me); + /* Tell the world we are a disk. */ + device_add_string_property(me, "device_type", "disk"); + /* get the name of the file specifying the disk image */ disk->name_index = 0; disk->nr_names = device_find_string_array_property(me, "file",