se.py (3180:664fe611de8e) | se.py (3223:a2b6fa575c05) |
---|---|
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') | 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') |
37from FullO3Config import * | |
38 39parser = optparse.OptionParser() 40 41parser.add_option("-c", "--cmd", 42 default="../../tests/test-progs/hello/bin/alpha/linux/hello", 43 help="The binary to run in syscall emulation mode.") 44parser.add_option("-o", "--options", default="", 45 help="The options to pass to the binary, use \" \" around the entire\ --- 35 unchanged lines hidden (view full) --- 81 smt_process.input = inputs[smt_idx] 82 process += [smt_process, ] 83 smt_idx += 1 84 85 86if options.timing: 87 cpu = TimingSimpleCPU() 88elif options.detailed: | 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: |
89 cpu = DetailedO3CPU() | 88 cpu = DerivO3CPU() |
90else: 91 cpu = AtomicSimpleCPU() 92 93cpu.workload = process | 89else: 90 cpu = AtomicSimpleCPU() 91 92cpu.workload = process |
94cpu.cpu_id = 0 | |
95 96system = System(cpu = cpu, 97 physmem = PhysicalMemory(), 98 membus = Bus()) 99system.physmem.port = system.membus.port 100system.cpu.connectMemPorts(system.membus) 101system.cpu.mem = system.physmem 102 --- 16 unchanged lines hidden --- | 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 --- |