Skip to content

Commit

Permalink
util: delete gem5_home envirment
Browse files Browse the repository at this point in the history
Change-Id: I77845bf7ca36ce1530466e86df43ca0ab0fea5f0
  • Loading branch information
jensen-yan committed Jan 4, 2025
1 parent 019b24c commit b171362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ configs/dram/lowp_sweep.cfg
util/xs_scripts/test/
run_fs.sh
.vscode/
llvm-pgo/
llvm-pgo/
*.profdata
*.profraw
9 changes: 3 additions & 6 deletions configs/common/XSConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,9 @@ def config_xiangshan_inputs(args: argparse.Namespace, sys):

# configure DRAMSim input
if args.mem_type == 'DRAMsim3' and args.dramsim3_ini is None:
home = None
if 'gem5_home' in os.environ:
home = os.environ['gem5_home']
if 'GEM5_HOME' in os.environ:
home = os.environ['GEM5_HOME']
args.dramsim3_ini = os.path.join(home, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini')
# use relative path to find the dramsim3 ini file, from configs/common/ to root
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
args.dramsim3_ini = os.path.join(root_dir, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini')
return gcpt_restorer, ref_so


Expand Down

0 comments on commit b171362

Please sign in to comment.