psim-tree 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # $FreeBSD$
  2. #
  3. # Simple psim h/w description
  4. #
  5. # The .gdbinit should contain something like:
  6. #
  7. # target sim -e chirp -r 33554432 -f psim-tree
  8. # load
  9. #
  10. # (The -r option is the amount of physical RAM the simulator has)
  11. #
  12. /#address-cells 1
  13. /openprom/options/use-stdio? false
  14. #/openprom/options/strict-alignment? true
  15. /options
  16. ./output-device "psim-stdout
  17. #
  18. # Define the disk device alias so ofwd can identify it
  19. #
  20. /aliases
  21. ./ofwdisk "/phb@0x70000000/ide@1/disk@0
  22. #
  23. # CPU definition. The phandle property is to help nexus.c locate the
  24. # interrupt controller.
  25. #
  26. /cpus/cpu@0
  27. #
  28. # disk file, done via phb. maybe there's a simpler way.
  29. #
  30. /phb@0x70000000
  31. ./device_type "pci
  32. ./name "pci
  33. ./#address-cells 3
  34. ./#size-cells 2
  35. ./ranges ni0,0,0,0 0xc0000000 0x10000
  36. /phb@0x70000000/ide@1
  37. ./device_type "ide
  38. ./name "ide
  39. ./assigned-addresses \
  40. ni0,0,10,1f0 8 \
  41. ni0,0,14,3f8 8 \
  42. ni0,0,18,170 8 \
  43. ni0,0,1c,378 8 \
  44. ni0,0,20,200 8
  45. ./reg \
  46. 1 0 \
  47. i0,0,10,0 8 \
  48. i0,0,18,0 8 \
  49. i0,0,14,6 1 \
  50. i0,0,1c,6 1 \
  51. i0,0,20,0 8
  52. ./ready-delay 1000
  53. /phb@0x70000000/ide@1/disk@0/file "../image.iso
  54. #
  55. # I/O Bus
  56. #
  57. /iobus@0x90000000
  58. ./name psim-iobus
  59. ./reg 0x90000000 0x20000000
  60. #
  61. # OpenPIC
  62. #
  63. /iobus@0x90000000/opic@0x90000000
  64. ./name interrupt-controller
  65. ./device_type open-pic
  66. ./compatible psim,open-pic
  67. ./reg 0x90000000 0x40000
  68. ./interrupt-ranges 0 256
  69. /iobus/opic > intr0 int /cpus/cpu@0x0
  70. #
  71. # IDE1
  72. #
  73. #/iobus@0x90000000/ide@0x90052000
  74. # ./name ata-4
  75. # ./ioport 1
  76. # ./device_type ata
  77. # ./interrupt 12
  78. # ./reg 0x90052000 8 0x90052010 8 0x90052020 8 0x90052030 1 0x90052040 1 0x90052050 8
  79. #/iobus@0x90000000/ide@0x90052000 > a irq12 /iobus/opic