Simulation.py (12374:df27dd3da16d) | Simulation.py (12395:322bb93e5f06) |
---|---|
1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 69 unchanged lines hidden (view full) --- 78 if options.restore_with_cpu != options.cpu_type: 79 CPUClass = TmpClass 80 TmpClass, test_mem_mode = getCPUClass(options.restore_with_cpu) 81 elif options.fast_forward: 82 CPUClass = TmpClass 83 TmpClass = AtomicSimpleCPU 84 test_mem_mode = 'atomic' 85 | 1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 69 unchanged lines hidden (view full) --- 78 if options.restore_with_cpu != options.cpu_type: 79 CPUClass = TmpClass 80 TmpClass, test_mem_mode = getCPUClass(options.restore_with_cpu) 81 elif options.fast_forward: 82 CPUClass = TmpClass 83 TmpClass = AtomicSimpleCPU 84 test_mem_mode = 'atomic' 85 |
86 # Ruby only supports atomic accesses in noncaching mode 87 if test_mem_mode == 'atomic' and options.ruby: 88 warn("Memory mode will be changed to atomic_noncaching") 89 test_mem_mode = 'atomic_noncaching' 90 |
|
86 return (TmpClass, test_mem_mode, CPUClass) 87 88def setMemClass(options): 89 """Returns a memory controller class.""" 90 91 return MemConfig.get(options.mem_type) 92 93def setWorkCountOptions(system, options): --- 619 unchanged lines hidden --- | 91 return (TmpClass, test_mem_mode, CPUClass) 92 93def setMemClass(options): 94 """Returns a memory controller class.""" 95 96 return MemConfig.get(options.mem_type) 97 98def setWorkCountOptions(system, options): --- 619 unchanged lines hidden --- |