lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 1b109cb was 8e75edf, checked in by Martin Decky <martin@…>, 19 years ago |
more realistic simulated CPU frequency
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | #
|
---|
2 | # Simics 3.0 AMD64 configuration
|
---|
3 | #
|
---|
4 |
|
---|
5 | $num_cpus = 2
|
---|
6 | $cpu_class = "x86-hammer"
|
---|
7 | $freq_mhz = 50
|
---|
8 |
|
---|
9 | add-directory "%simics%/targets/x86-440bx/images"
|
---|
10 |
|
---|
11 | import-isa-components
|
---|
12 | import-pci-components
|
---|
13 | import-std-components
|
---|
14 | import-x86-components
|
---|
15 |
|
---|
16 | $system = (create-x86-apic-system memory_megs = 256
|
---|
17 | rtc_time = "2006-03-12 10:00:00 UTC"
|
---|
18 | break_on_reboot = 1
|
---|
19 | bios = "rombios-2.65.2.3")
|
---|
20 |
|
---|
21 | $count = 0
|
---|
22 | $create_command = ("create-" + $cpu_class + "-cpu")
|
---|
23 | while $count < $num_cpus {
|
---|
24 | $cpu[$count] = ($create_command cpu_frequency = $freq_mhz)
|
---|
25 | $system.connect ("cpu" + $count) $cpu[$count]
|
---|
26 | $count += 1
|
---|
27 | }
|
---|
28 |
|
---|
29 | $nb = (create-north-bridge-443bx-agp)
|
---|
30 | $vga = (create-agp-voodoo3)
|
---|
31 | $nb.connect agp-slot0 $vga
|
---|
32 |
|
---|
33 | $sb = (create-south-bridge-piix4)
|
---|
34 | $sio = (create-std-super-io)
|
---|
35 |
|
---|
36 | $console = (create-std-graphics-console)
|
---|
37 | $console.connect mouse $sio mse-console
|
---|
38 | $console.connect keyboard $sio kbd-console
|
---|
39 | $console.connect $vga
|
---|
40 |
|
---|
41 | $system.connect chipset $nb
|
---|
42 | $system.connect interrupt $sb
|
---|
43 | $system.connect reset $sio
|
---|
44 |
|
---|
45 | $nb.connect pci-slot7 $sb
|
---|
46 |
|
---|
47 | $sb.connect $sio
|
---|
48 |
|
---|
49 | instantiate-components
|
---|
50 |
|
---|
51 | $system.cmos-boot-dev A
|
---|
52 | flp0.insert-floppy A "image.boot"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.