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