Skip to content

Commit d59ce64

Browse files
committed
resources: Improve gem5_bridge building and insertion
1 parent 90a27d0 commit d59ce64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/x86-ubuntu/files/gem5_init.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ cmdline=$(cat /proc/cmdline)
1616
no_systemd=false
1717

1818
# Load gem5_bridge driver
19-
depmod --quick
20-
modprobe gem5_bridge
19+
modprobe gem5_bridge || insmod /lib/modules/$(uname -r)/gem5/gem5_bridge.ko
2120

2221
# gem5-bridge exit signifying that kernel is booted
2322
# This will cause the simulation to exit. Note that this will

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ cp build/x86/out/m5 /usr/local/bin/
5858
cp build/x86/out/libm5.a /usr/local/lib/
5959
popd
6060

61-
# Build and insert the gem5_bridge driver
61+
# Build and insert the gem5-bridge driver
6262
pushd util/gem5_bridge
6363
make build install
64+
depmod --quick
6465
popd
6566
popd
6667

0 commit comments

Comments
 (0)