3 # Simple psim h/w description
5 # The .gdbinit should contain something like:
7 # target sim -e chirp -r 33554432 -f psim-tree
10 # (The -r option is the amount of physical RAM the simulator has)
14 /openprom/options/use-stdio? false
15 #/openprom/options/strict-alignment? true
18 ./output-device "psim-stdout
21 # Define the disk device alias so ofwd can identify it
24 ./ofwdisk "/phb@0x70000000/ide@1/disk@0
27 # CPU definition. The phandle property is to help nexus.c locate the
28 # interrupt controller.
33 # disk file, done via phb. maybe there's a simpler way.
40 ./ranges ni0,0,0,0 0xc0000000 0x10000
45 ./assigned-addresses \
60 /phb@0x70000000/ide@1/disk@0/file "../image.iso
67 ./reg 0x90000000 0x20000000
72 /iobus@0x90000000/opic@0x90000000
73 ./name interrupt-controller
74 ./device_type open-pic
75 ./compatible psim,open-pic
76 ./reg 0x90000000 0x40000
77 ./interrupt-ranges 0 256
79 /iobus/opic > intr0 int /cpus/cpu@0x0
84 #/iobus@0x90000000/ide@0x90052000
89 # ./reg 0x90052000 8 0x90052010 8 0x90052020 8 0x90052030 1 0x90052040 1 0x90052050 8
90 #/iobus@0x90000000/ide@0x90052000 > a irq12 /iobus/opic