2 # Simple psim h/w description
4 # The .gdbinit should contain something like:
6 # target sim -e chirp -r 33554432 -f psim-tree
9 # (The -r option is the amount of physical RAM the simulator has)
13 /openprom/options/use-stdio? false
14 #/openprom/options/strict-alignment? true
17 ./output-device "psim-stdout
20 # Define the disk device alias so ofwd can identify it
23 ./ofwdisk "/phb@0x70000000/ide@1/disk@0
26 # CPU definition. The phandle property is to help nexus.c locate the
27 # interrupt controller.
32 # disk file, done via phb. maybe there's a simpler way.
39 ./ranges ni0,0,0,0 0xc0000000 0x10000
44 ./assigned-addresses \
59 /phb@0x70000000/ide@1/disk@0/file "../image.iso
66 ./reg 0x90000000 0x20000000
71 /iobus@0x90000000/opic@0x90000000
72 ./name interrupt-controller
73 ./device_type open-pic
74 ./compatible psim,open-pic
75 ./reg 0x90000000 0x40000
76 ./interrupt-ranges 0 256
78 /iobus/opic > intr0 int /cpus/cpu@0x0
83 #/iobus@0x90000000/ide@0x90052000
88 # ./reg 0x90052000 8 0x90052010 8 0x90052020 8 0x90052030 1 0x90052040 1 0x90052050 8
89 #/iobus@0x90000000/ide@0x90052000 > a irq12 /iobus/opic