Skip to content

Commit

Permalink
resources: Improve gem5_bridge building and insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrim committed Sep 3, 2024
1 parent 90a27d0 commit d59ce64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/x86-ubuntu/files/gem5_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ cmdline=$(cat /proc/cmdline)
no_systemd=false

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

# gem5-bridge exit signifying that kernel is booted
# This will cause the simulation to exit. Note that this will
Expand Down
3 changes: 2 additions & 1 deletion src/x86-ubuntu/scripts/post-installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ cp build/x86/out/m5 /usr/local/bin/
cp build/x86/out/libm5.a /usr/local/lib/
popd

# Build and insert the gem5_bridge driver
# Build and insert the gem5-bridge driver
pushd util/gem5_bridge
make build install
depmod --quick
popd
popd

Expand Down

0 comments on commit d59ce64

Please sign in to comment.