aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorDavid O'Brien <obrien@FreeBSD.org>2002-03-25 04:39:20 +0000
committerDavid O'Brien <obrien@FreeBSD.org>2002-03-25 04:39:20 +0000
commit23c7880c017d7474d390974d1e9e620907ac22e6 (patch)
treeac4d27e0ed7bb7641b597b69168475141438688b /sim
parent35d250b3e213e922f23c8662683d0ac4330d0b0a (diff)
downloadfsf-binutils-gdb-23c7880c017d7474d390974d1e9e620907ac22e6.zip
fsf-binutils-gdb-23c7880c017d7474d390974d1e9e620907ac22e6.tar.gz
fsf-binutils-gdb-23c7880c017d7474d390974d1e9e620907ac22e6.tar.bz2
2002-03-24 David O'Brien <obrien@FreeBSD.org>
* ppc/hw_disk.c: Export a disk device property. This is needed by the FreeBSD/powerpc porting effort.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/hw_disk.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index b3a5651..5586cc8 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-24 David O'Brien <obrien@FreeBSD.org>
+
+ * ppc/hw_disk.c: Export a disk device property.
+
2002-03-23 Andrew Cagney <ac131313@redhat.com>
From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
diff --git a/sim/ppc/hw_disk.c b/sim/ppc/hw_disk.c
index 5934fea..84086ff 100644
--- a/sim/ppc/hw_disk.c
+++ b/sim/ppc/hw_disk.c
@@ -232,6 +232,9 @@ hw_disk_init_address(device *me)
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",