24.3.1. Number of cores

./run --arch arm --cpus 2 --emulator gem5

Can be checked with /proc/cpuinfo or getconf in Ubuntu 18.04:

cat /proc/cpuinfo
getconf _NPROCESSORS_CONF

Or from User mode simulation, we can use either of: