gdb/
[deliverable/binutils-gdb.git] / sim / ppc / hw_cpu.c
index 5be8e25c2204230d284dd0fc7047ba025d0146f1..df807c1f8f619a9d71ad1a67f2896faa553f3bce 100644 (file)
@@ -4,7 +4,7 @@
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation; either version 3 of the License, or
     (at your option) any later version.
 
     This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
     GNU General Public License for more details.
  
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
  
     */
 
 #include "cpu.h"
 
 
-/* CPU (HW) - Interface to a Processor
+/* DEVICE
+
+
+   cpu - Interface to a Processor
+
+
+   DESCRIPTION
 
-   Description:
 
    The CPU device provides the connection between the interrupt net
    (linking the devices and the interrupt controller) and the
    to device interrupt sources and its outputs (sreset, int, et.al.)
    connected to this device.
 
-   Properties:
 
-   cpu-nr = <integer>.  Specify the processor (1..N) that this cpu
-   device node should control. */
+   PROPERTIES
+
+
+   cpu-nr = <integer> (required)
+
+
+   Specify the processor (1..N) that this cpu device node should
+   control.
+
+
+   EXAMPLES
+
+   
+   Connect an OpenPIC interrupt controller interrupt ports to
+   processor zero.
+
+   | -o '/phb/opic@0 > irq0 int /cpus/cpu@0' \
+   | -o '/phb/opic@0 > init hreset /cpus/cpu@0' \
+
+
+   */
 
 typedef struct _hw_cpu_device {
   int cpu_nr;
@@ -72,8 +94,7 @@ static const device_interrupt_port_descriptor hw_cpu_interrupt_ports[] = {
 static void *
 hw_cpu_create(const char *name,
              const device_unit *unit_address,
-             const char *args,
-             device *parent)
+             const char *args)
 {
   hw_cpu_device *hw_cpu = ZALLOC(hw_cpu_device);
   return hw_cpu;
This page took 0.024038 seconds and 4 git commands to generate.