1# Copyright (c) 2006 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 20 unchanged lines hidden (view full) --- 29# Simple test script 30# 31# "m5 test.py" 32 33import m5 34from m5.objects import * 35import os, optparse, sys 36m5.AddToPath('../common') |
37 38parser = optparse.OptionParser() 39 40parser.add_option("-c", "--cmd", 41 default="../../tests/test-progs/hello/bin/alpha/linux/hello", 42 help="The binary to run in syscall emulation mode.") 43parser.add_option("-o", "--options", default="", 44 help="The options to pass to the binary, use \" \" around the entire\ --- 35 unchanged lines hidden (view full) --- 80 smt_process.input = inputs[smt_idx] 81 process += [smt_process, ] 82 smt_idx += 1 83 84 85if options.timing: 86 cpu = TimingSimpleCPU() 87elif options.detailed: |
88 cpu = DerivO3CPU() |
89else: 90 cpu = AtomicSimpleCPU() 91 92cpu.workload = process |
93 94system = System(cpu = cpu, 95 physmem = PhysicalMemory(), 96 membus = Bus()) 97system.physmem.port = system.membus.port 98system.cpu.connectMemPorts(system.membus) 99system.cpu.mem = system.physmem 100 --- 16 unchanged lines hidden --- |