Rev 1965 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1965 | Rev 1968 | ||
---|---|---|---|
1 | # |
1 | # |
2 | # Simics 3.0 AMD64 configuration |
2 | # Simics 3.0 AMD64 configuration |
3 | # |
3 | # |
4 | 4 | ||
5 | $num_cpus = 2 |
5 | $num_cpus = 2 |
6 | $cpu_class = "x86-hammer" |
6 | $cpu_class = "x86-hammer" |
7 | $freq_mhz = 50 |
7 | $freq_mhz = 50 |
8 | 8 | ||
9 | add-directory "%simics%/targets/x86-440bx/images" |
9 | add-directory "%simics%/targets/x86-440bx/images" |
10 | 10 | ||
11 | import-isa-components |
11 | import-isa-components |
12 | import-pci-components |
12 | import-pci-components |
13 | import-std-components |
13 | import-std-components |
14 | import-x86-components |
14 | import-x86-components |
15 | 15 | ||
16 | $system = (create-x86-apic-system memory_megs = 256 |
16 | $system = (create-x86-apic-system memory_megs = 256 |
17 | rtc_time = "2006-03-12 10:00:00 UTC" |
17 | rtc_time = "2006-03-12 10:00:00 UTC" |
18 | break_on_reboot = 1 |
18 | break_on_reboot = 1 |
19 | bios = "rombios-2.65.2.3") |
19 | bios = "rombios-2.65.2.3") |
20 | 20 | ||
21 | $count = 0 |
21 | $count = 0 |
22 | $create_command = ("create-" + $cpu_class + "-cpu") |
22 | $create_command = ("create-" + $cpu_class + "-cpu") |
23 | while $count < $num_cpus { |
23 | while $count < $num_cpus { |
24 | $cpu[$count] = ($create_command cpu_frequency = $freq_mhz) |
24 | $cpu[$count] = ($create_command cpu_frequency = $freq_mhz) |
25 | $system.connect ("cpu" + $count) $cpu[$count] |
25 | $system.connect ("cpu" + $count) $cpu[$count] |
26 | $count += 1 |
26 | $count += 1 |
27 | } |
27 | } |
28 | 28 | ||
29 | $nb = (create-north-bridge-443bx-agp) |
29 | $nb = (create-north-bridge-443bx-agp) |
30 | $vga = (create-agp-voodoo3) |
30 | $vga = (create-agp-voodoo3) |
31 | $nb.connect agp-slot0 $vga |
31 | $nb.connect agp-slot0 $vga |
32 | 32 | ||
33 | $sb = (create-south-bridge-piix4) |
33 | $sb = (create-south-bridge-piix4) |
34 | $sio = (create-std-super-io) |
34 | $sio = (create-std-super-io) |
35 | $cdrom = (create-std-ide-cdrom) |
35 | $cdrom = (create-std-ide-cdrom) |
36 | 36 | ||
37 | $console = (create-std-graphics-console) |
37 | $console = (create-std-graphics-console) |
38 | $console.connect mouse $sio mse-console |
38 | $console.connect mouse $sio mse-console |
39 | $console.connect keyboard $sio kbd-console |
39 | $console.connect keyboard $sio kbd-console |
40 | $console.connect $vga |
40 | $console.connect $vga |
41 | 41 | ||
42 | $system.connect chipset $nb |
42 | $system.connect chipset $nb |
43 | $system.connect interrupt $sb |
43 | $system.connect interrupt $sb |
44 | $system.connect reset $sio |
44 | $system.connect reset $sio |
45 | 45 | ||
46 | $nb.connect pci-slot7 $sb |
46 | $nb.connect pci-slot7 $sb |
47 | 47 | ||
48 | $sb.connect $sio |
48 | $sb.connect $sio |
49 | $sb.connect ide0-slave $cdrom |
49 | $sb.connect ide0-slave $cdrom |
50 | 50 | ||
51 | instantiate-components |
51 | instantiate-components |
52 | 52 | ||
53 | run-python-file "%simics%/home/scripts/cdrom_bootloader.py" |
53 | run-python-file "%simics%/home/scripts/cdrom_bootloader.py" |
54 | @install_cdrom_bootloader((conf.cpu0,)) |
54 | @install_cdrom_bootloader((conf.cpu0,)) |
55 | 55 | ||
56 | new-file-cdrom "image.iso" image |
56 | new-file-cdrom "image.iso" image |
57 | cd0.insert image |
57 | cd0.insert image |
58 | 58 |