# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

### 24.7. Pass extra options to gem5

Remember that in the gem5 command line, we can either pass options to the script being run as in:

    build/X86/gem5.opt configs/examples/fs.py --some-option

or to the gem5 executable itself:

    build/X86/gem5.opt --some-option configs/examples/fs.py

Pass options to the script in our setup use:

- get help:

      ./run --emulator gem5 -- -h

- boot with the more detailed and slow `HPI` CPU model:

      ./run --arch arm --emulator gem5 -- --caches --cpu-type=HPI

To pass options to the `gem5` executable we expose the `--gem5-exe-args` option:

- get help:

      ./run --gem5-exe-args='-h' --emulator gem5