-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from OpenXiangShan/align-scheduler
Align scheduler
- Loading branch information
Showing
21 changed files
with
734 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import argparse | ||
import sys | ||
|
||
import m5 | ||
from m5.defines import buildEnv | ||
from m5.objects import * | ||
from m5.util import addToPath, fatal, warn | ||
from m5.util.fdthelper import * | ||
|
||
addToPath('../') | ||
|
||
from ruby import Ruby | ||
|
||
from common.FSConfig import * | ||
from common.SysPaths import * | ||
from common.Benchmarks import * | ||
from common import Simulation | ||
from common import CacheConfig | ||
from common import CpuConfig | ||
from common import MemConfig | ||
from common import ObjectList | ||
from common import XSConfig | ||
from common.Caches import * | ||
from common import Options | ||
from example.xiangshan import * | ||
|
||
if __name__ == '__m5_main__': | ||
|
||
# Add args | ||
parser = argparse.ArgumentParser() | ||
Options.addCommonOptions(parser, configure_xiangshan=True) | ||
Options.addXiangshanFSOptions(parser) | ||
|
||
# Add the ruby specific and protocol specific args | ||
if '--ruby' in sys.argv: | ||
Ruby.define_options(parser) | ||
|
||
args = parser.parse_args() | ||
|
||
args.xiangshan_system = True | ||
args.enable_difftest = True | ||
args.enable_riscv_vector = True | ||
|
||
args.l2_hwp_type = "WorkerPrefetcher" | ||
args.pht_pf_level = 2 | ||
args.l1d_use_xsstride = True | ||
|
||
|
||
assert not args.external_memory_system | ||
|
||
test_mem_mode = 'timing' | ||
|
||
# override cpu class and clock | ||
if args.xiangshan_ecore: | ||
FutureClass = None | ||
args.cpu_clock = '2.4GHz' | ||
else: | ||
FutureClass = None | ||
|
||
# Match the memories with the CPUs, based on the options for the test system | ||
TestMemClass = Simulation.setMemClass(args) | ||
|
||
test_sys = build_test_system(args.num_cpus, args) | ||
|
||
root = Root(full_system=True, system=test_sys) | ||
|
||
Simulation.run_vanilla(args, root, test_sys, FutureClass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.