Rev 930 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 930 | decky | 1 | # |
| 2 | # Simics 3.0 PPC32 simple configuration |
||
| 3 | # |
||
| 4 | |||
| 5 | $cpu_class = "ppc750" |
||
| 1034 | decky | 6 | $freq_mhz = 50 |
| 930 | decky | 7 | $image = "image.boot" |
| 8 | $image_offset = -0x7a000000 |
||
| 9 | |||
| 10 | add-directory "%simics%/targets/ppc64-simple/images" |
||
| 11 | |||
| 12 | import-std-components |
||
| 13 | import-ppc-simple-components |
||
| 14 | |||
| 15 | $system = (create-ppc-simple cpu_class = $cpu_class |
||
| 16 | cpu_frequency = $freq_mhz |
||
| 17 | memory_megs = 256) |
||
| 18 | |||
| 19 | $cpu = ($system.get-component-object "cpu") |
||
| 20 | |||
| 21 | $system.connect uart0 (create-std-text-console) |
||
| 22 | |||
| 23 | instantiate-components |
||
| 24 | |||
| 25 | $start = (load-binary $image $image_offset) |
||
| 26 | $cpu->msr = ($cpu->msr | (1 << 13) | (1 << 5) | (1 << 4)) |
||
| 27 | $cpu.set-pc $start - $image_offset |
||
| 28 | |||
| 29 | @itlb = conf.cpu0.itlb |
||
| 30 | @itlb[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] |
||
| 31 | @conf.cpu0.itlb = itlb |
||
| 32 |