Subversion Repositories HelenOS

Rev

Rev 1794 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
927 decky 1
#
2
# Simics 3.0 AMD64 configuration
3
#
4
 
5
$num_cpus      = 2
6
$cpu_class     = "x86-hammer"
1034 decky 7
$freq_mhz      = 50
927 decky 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)
1471 decky 35
$cdrom = (create-std-ide-cdrom)
927 decky 36
 
37
$console = (create-std-graphics-console)
38
$console.connect mouse $sio mse-console
39
$console.connect keyboard $sio kbd-console
40
$console.connect $vga
41
 
42
$system.connect chipset $nb
43
$system.connect interrupt $sb
44
$system.connect reset $sio
45
 
46
$nb.connect pci-slot7 $sb
47
 
48
$sb.connect $sio
1471 decky 49
$sb.connect ide0-slave $cdrom
927 decky 50
 
51
instantiate-components
52
 
1471 decky 53
run-python-file "%simics%/home/scripts/cdrom_bootloader.py"
54
@install_cdrom_bootloader((conf.cpu0,))
55
 
56
new-file-cdrom "image.iso" image
57
cd0.insert image