File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ mount -t sysfs /sys /sys
15
15
cmdline=$( cat /proc/cmdline)
16
16
no_systemd=false
17
17
18
+ # Load gem5_bridge driver
19
+ depmod --quick
20
+ modprobe gem5_bridge
21
+
18
22
# gem5-bridge exit signifying that kernel is booted
19
23
# This will cause the simulation to exit. Note that this will
20
24
# cause qemu to fail.
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ git clone https://github.com/gem5/gem5.git --depth=1 --filter=blob:none --no-che
45
45
pushd gem5
46
46
# Checkout just the files we need
47
47
git sparse-checkout add util/m5
48
+ git sparse-checkout add util/gem5_bridge
48
49
git sparse-checkout add include
49
50
git checkout
50
51
# Install the headers globally so that other benchmarks can use them
@@ -56,6 +57,11 @@ scons build/x86/out/m5
56
57
cp build/x86/out/m5 /usr/local/bin/
57
58
cp build/x86/out/libm5.a /usr/local/lib/
58
59
popd
60
+
61
+ # Build and insert the gem5_bridge driver
62
+ pushd util/gem5_bridge
63
+ make build install
64
+ popd
59
65
popd
60
66
61
67
# rename the m5 binary to gem5-bridge
You can’t perform that action at this time.
0 commit comments