Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
# Assembled from the "niagara-simple" machine configuration files distributed
# with Simics. Boots from an ISO9660 images.
if not defined num_cpus {$num_cpus = 1}
if not defined freq_mhz {$freq_mhz = 5}
if not defined rtc_time {$rtc_time = "2006-04-04 12:00:00 UTC"}
###
add-directory "%simics%/targets/niagara-simple/images/"
import-std-components
import-niagara-simple-components
if $num_cpus == 1 {
$num_cores = 1
$num_strands = 1
} else if $num_cpus == 2 {
$num_cores = 2
$num_strands = 1
} else if $num_cpus == 32 {
$num_cores = 8
$num_strands = 4
} else {
echo "Unsupported number of processors. (Use 1, 2, or 32)"
}
$system = (create-niagara-simple-system cpu_frequency = $freq_mhz
num_cores = $num_cores
strands_per_core = $num_strands
rtc_time = $rtc_time)
$console = (create-std-text-console)
$system.connect com1 $console
$machine_defined = 1
instantiate-components
####
$system.set-prom-defaults
$system.set-prom-env diag-switch? true
$system.set-prom-env auto-boot? true
# Simics "niagara-simple" machine does not support CD-ROM device, fortunatelly
# it is able to boot from a disk image in ISO9660 format.
$image = ($system.get-component-object disk_image)
@image = sim.objects[simenv.image]
@image.files = [['image.iso', 'ro', 0, 1290240]]