From 23c7880c017d7474d390974d1e9e620907ac22e6 Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Mon, 25 Mar 2002 04:39:20 +0000 Subject: [PATCH] 2002-03-24 David O'Brien * ppc/hw_disk.c: Export a disk device property. This is needed by the FreeBSD/powerpc porting effort. --- sim/ppc/ChangeLog | 4 ++++ sim/ppc/hw_disk.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index b3a5651b3a3..5586cc890d8 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,7 @@ +2002-03-24 David O'Brien + + * ppc/hw_disk.c: Export a disk device property. + 2002-03-23 Andrew Cagney From 2001-12-09 Julien Ducourthial : diff --git a/sim/ppc/hw_disk.c b/sim/ppc/hw_disk.c index 5934fead1a1..84086ff1d4a 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", -- 2.30.2