"git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "2a5fe5ff332848034e80ef44b95dbc8f9738032b"
Commit 57db1cd0 authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Antoine Kaufmann
Browse files

sims/external/gem5: update to gem5 23.1

This temporarily drops support for DDIO and the L3 cache.
parent 51a90498
...@@ -6,7 +6,6 @@ cd sims/external/gem5 ...@@ -6,7 +6,6 @@ cd sims/external/gem5
cp -r --parents \ cp -r --parents \
build/X86/gem5.fast \ build/X86/gem5.fast \
configs \ configs \
cache_conf.patch \
../gem5-new/ ../gem5-new/
#`find build -name \*.py` \ #`find build -name \*.py` \
cd .. cd ..
......
...@@ -463,9 +463,9 @@ class Gem5Host(HostSim): ...@@ -463,9 +463,9 @@ class Gem5Host(HostSim):
cmd = f'{env.gem5_path(self.variant)} --outdir={env.gem5_outdir(self)} ' cmd = f'{env.gem5_path(self.variant)} --outdir={env.gem5_outdir(self)} '
cmd += ' '.join(self.extra_main_args) cmd += ' '.join(self.extra_main_args)
cmd += ( cmd += (
f' {env.gem5_py_path} --caches --l2cache --l3cache ' f' {env.gem5_py_path} --caches --l2cache '
'--l1d_size=32kB --l1i_size=32kB --l2_size=2MB --l3_size=32MB ' '--l1d_size=32kB --l1i_size=32kB --l2_size=32MB '
'--l1d_assoc=8 --l1i_assoc=8 --l2_assoc=4 --l3_assoc=16 ' '--l1d_assoc=8 --l1i_assoc=8 --l2_assoc=16 '
f'--cacheline_size=64 --cpu-clock={self.cpu_freq}' f'--cacheline_size=64 --cpu-clock={self.cpu_freq}'
f' --sys-clock={self.sys_clock} ' f' --sys-clock={self.sys_clock} '
f'--checkpoint-dir={env.gem5_cpdir(self)} ' f'--checkpoint-dir={env.gem5_cpdir(self)} '
...@@ -474,7 +474,7 @@ class Gem5Host(HostSim): ...@@ -474,7 +474,7 @@ class Gem5Host(HostSim):
f'--disk-image={env.cfgtar_path(self)} ' f'--disk-image={env.cfgtar_path(self)} '
f'--cpu-type={cpu_type} --mem-size={self.node_config.memory}MB ' f'--cpu-type={cpu_type} --mem-size={self.node_config.memory}MB '
f'--num-cpus={self.node_config.cores} ' f'--num-cpus={self.node_config.cores} '
'--ddio-enabled --ddio-way-part=8 --mem-type=DDR4_2400_16x4 ' '--mem-type=DDR4_2400_16x4 '
) )
if self.node_config.kcmd_append: if self.node_config.kcmd_append:
......
Subproject commit 9bb11fc5a0e8a1e722322a4ca40b2a3a4d293c88 Subproject commit 092eccad02c91b176f39a237749fc165804130b9
...@@ -37,10 +37,11 @@ $(d)gem5: ...@@ -37,10 +37,11 @@ $(d)gem5:
git clone https://github.com/simbricks/gem5.git $@ git clone https://github.com/simbricks/gem5.git $@
$(d)gem5/ready: $(d)gem5 $(d)gem5/ready: $(d)gem5
+cd $< && scons build/X86/gem5.$(GEM5_VARIANT) \ cd $< && \
CCFLAGS="-I$(abspath $(lib_dir))" \ CCFLAGS_EXTRA="-I$(abspath $(lib_dir))" \
LIBPATH="$(abspath $(lib_dir))" \ LIBRARY_PATH="$(abspath $(lib_dir))" \
-j`nproc` scons build/X86/gem5.$(GEM5_VARIANT) \
--ignore-style -j`nproc`
touch $@ touch $@
gem5-clean: gem5-clean:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment