"vscode:/vscode.git/clone" did not exist on "7793eb27bcf16f792baa2e0c0646a5730a9c2dd9"
Commit 165bdb15 authored by Jialin Li's avatar Jialin Li
Browse files

experiments: add sync_mode option to gem5 hosts

parent 7c84ddb5
......@@ -22,6 +22,7 @@ class HostSim(Simulator):
sleep = 0
cpu_freq = '3GHz'
sync_mode = 0
sync_period = 500
pci_latency = 500
......@@ -181,6 +182,7 @@ class Gem5Host(HostSim):
cmd += f'--cosim-shm={env.nic_shm_path(nic)} '
if cpu_type == 'TimingSimpleCPU':
cmd += '--cosim-sync '
cmd += f'--cosim-sync_mode={self.sync_mode} '
cmd += f'--cosim-pci-lat={self.pci_latency} '
cmd += f'--cosim-sync-int={self.sync_period} '
if isinstance(nic, I40eNIC):
......
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