Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
c52dfdef
Commit
c52dfdef
authored
Feb 17, 2021
by
Antoine Kaufmann
Browse files
sims/external/gem5: rename cosim device to simbricks
parent
ae0b1b3a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
experiments/simbricks/experiments.py
experiments/simbricks/experiments.py
+1
-1
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+7
-7
sims/external/gem5
sims/external/gem5
+1
-1
No files found.
experiments/simbricks/experiments.py
View file @
c52dfdef
...
@@ -191,7 +191,7 @@ class ExpEnv(object):
...
@@ -191,7 +191,7 @@ class ExpEnv(object):
self
.
qemu_path
=
self
.
repodir
+
'/qemu/build/x86_64-softmmu/qemu-system-x86_64'
self
.
qemu_path
=
self
.
repodir
+
'/qemu/build/x86_64-softmmu/qemu-system-x86_64'
self
.
qemu_kernel_path
=
self
.
repodir
+
'/images/bzImage'
self
.
qemu_kernel_path
=
self
.
repodir
+
'/images/bzImage'
self
.
gem5_path
=
self
.
repodir
+
'/gem5/build/X86/gem5.opt'
self
.
gem5_path
=
self
.
repodir
+
'/gem5/build/X86/gem5.opt'
self
.
gem5_py_path
=
self
.
repodir
+
'/gem5/configs/
co
sim
/cosim
.py'
self
.
gem5_py_path
=
self
.
repodir
+
'/gem5/configs/sim
bricks/simbricks
.py'
self
.
gem5_kernel_path
=
self
.
repodir
+
'/images/vmlinux'
self
.
gem5_kernel_path
=
self
.
repodir
+
'/images/vmlinux'
def
hdcopy_path
(
self
,
sim
):
def
hdcopy_path
(
self
,
sim
):
...
...
experiments/simbricks/simulators.py
View file @
c52dfdef
...
@@ -202,15 +202,15 @@ class Gem5Host(HostSim):
...
@@ -202,15 +202,15 @@ class Gem5Host(HostSim):
if
len
(
self
.
nics
)
>
0
:
if
len
(
self
.
nics
)
>
0
:
assert
len
(
self
.
nics
)
==
1
assert
len
(
self
.
nics
)
==
1
nic
=
self
.
nics
[
0
]
nic
=
self
.
nics
[
0
]
cmd
+=
f
'--
co
sim-pci=
{
env
.
nic_pci_path
(
nic
)
}
'
cmd
+=
f
'--sim
bricks
-pci=
{
env
.
nic_pci_path
(
nic
)
}
'
cmd
+=
f
'--
co
sim-shm=
{
env
.
nic_shm_path
(
nic
)
}
'
cmd
+=
f
'--sim
bricks
-shm=
{
env
.
nic_shm_path
(
nic
)
}
'
if
cpu_type
==
'TimingSimpleCPU'
:
if
cpu_type
==
'TimingSimpleCPU'
:
cmd
+=
'--
co
sim-sync '
cmd
+=
'--sim
bricks
-sync '
cmd
+=
f
'--
co
sim-sync_mode=
{
self
.
sync_mode
}
'
cmd
+=
f
'--sim
bricks
-sync_mode=
{
self
.
sync_mode
}
'
cmd
+=
f
'--
co
sim-pci-lat=
{
self
.
pci_latency
}
'
cmd
+=
f
'--sim
bricks
-pci-lat=
{
self
.
pci_latency
}
'
cmd
+=
f
'--
co
sim-sync-int=
{
self
.
sync_period
}
'
cmd
+=
f
'--sim
bricks
-sync-int=
{
self
.
sync_period
}
'
if
isinstance
(
nic
,
I40eNIC
):
if
isinstance
(
nic
,
I40eNIC
):
cmd
+=
'--
co
sim-type=i40e '
cmd
+=
'--sim
bricks
-type=i40e '
return
cmd
return
cmd
...
...
gem5
@
4ca61089
Compare
84aa4eeb
...
4ca61089
Subproject commit
84aa4eeb7696741c355ca0b508c6760d90481710
Subproject commit
4ca6108945ec809e12fb7e2b5909c4656cedf78a
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment