Skip to content

Commit 1dd76bf

Browse files
committed
resources: Add gem5_bridge driver to x86-ubuntu build & boot
1 parent 51fac64 commit 1dd76bf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/x86-ubuntu/files/gem5_init.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ mount -t sysfs /sys /sys
1515
cmdline=$(cat /proc/cmdline)
1616
no_systemd=false
1717

18+
# Load gem5_bridge driver
19+
depmod --quick
20+
modprobe gem5_bridge
21+
1822
# gem5-bridge exit signifying that kernel is booted
1923
# This will cause the simulation to exit. Note that this will
2024
# cause qemu to fail.

src/x86-ubuntu/scripts/post-installation.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ git clone https://github.com/gem5/gem5.git --depth=1 --filter=blob:none --no-che
4545
pushd gem5
4646
# Checkout just the files we need
4747
git sparse-checkout add util/m5
48+
git sparse-checkout add util/gem5_bridge
4849
git sparse-checkout add include
4950
git checkout
5051
# Install the headers globally so that other benchmarks can use them
@@ -56,6 +57,11 @@ scons build/x86/out/m5
5657
cp build/x86/out/m5 /usr/local/bin/
5758
cp build/x86/out/libm5.a /usr/local/lib/
5859
popd
60+
61+
# Build and insert the gem5_bridge driver
62+
pushd util/gem5_bridge
63+
make build install
64+
popd
5965
popd
6066

6167
# rename the m5 binary to gem5-bridge

0 commit comments

Comments
 (0)