"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "736a37bafb238632c437f6c6b42958814351f7c2"
Commit d43dee68 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

update readme

parent e5fb47d1
...@@ -10,6 +10,10 @@ Code structure: ...@@ -10,6 +10,10 @@ Code structure:
- `net_tap/`: Linux tap interface connector for Ethernet channel - `net_tap/`: Linux tap interface connector for Ethernet channel
- `net_wire/`: Ethernet wire, connects to Ethernet channels together:w - `net_wire/`: Ethernet wire, connects to Ethernet channels together:w
# Building
- External dependencies for qemu: `libglib2.0-dev libpixman-1-dev`
- External dependencies for gem5: `scons`
## Running Qemu ## Running Qemu
1. Clone from here: `github.com:FreakyPenguin/qemu-cosim.git` 1. Clone from here: `github.com:FreakyPenguin/qemu-cosim.git`
2. Build with `./configure --target-list=x86_64-softmmu --disable-werror --extra-cflags="-I$PATH_TO_THIS_REPO/proto" --enable-cosim-pci` 2. Build with `./configure --target-list=x86_64-softmmu --disable-werror --extra-cflags="-I$PATH_TO_THIS_REPO/proto" --enable-cosim-pci`
...@@ -30,8 +34,9 @@ x86_64-softmmu/qemu-system-x86_64 \ ...@@ -30,8 +34,9 @@ x86_64-softmmu/qemu-system-x86_64 \
## Running Gem5 ## Running Gem5
1. Clone from here: `git@github.com:nicklijl/gem5.git` 1. Clone from here: `git@github.com:nicklijl/gem5.git`
2. Build with: `scons build/X86/gem5.opt -jX` (with `X` set to # cores) 2. Build with: `scons build/X86/gem5.opt -jX` (with `X` set to # cores)
3. run dummy nic: `rm -rf /tmp/cosim-pci; ./dummy_nic` 3. `echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid`
4. To run for example: 4. run dummy nic: `rm -rf /tmp/cosim-pci; ./dummy_nic`
5. To run for example:
``` ```
./build/X86/gem5.opt \ ./build/X86/gem5.opt \
configs/cosim/cosim.py \ configs/cosim/cosim.py \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment