summaryrefslogtreecommitdiffstats
path: root/linux-user/linuxload.c
diff options
context:
space:
mode:
authorWei Yang2019-03-21 09:25:55 +0100
committerPaolo Bonzini2019-09-16 12:32:21 +0200
commit526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5 (patch)
treef0982fbab6bfd7acc01465e8ac10d3474f0a5c36 /linux-user/linuxload.c
parentexec.c: correct the maximum skip value during compact (diff)
downloadqemu-526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5.tar.gz
qemu-526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5.tar.xz
qemu-526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5.zip
exec.c: add a check between constants to see whether we could skip
The maximum level is defined as P_L2_LEVELS and skip is defined with 6 bits, which means if P_L2_LEVELS < (1 << 6), skip never exceeds the boundary. Since this check is between two constants, which leverages compiler to optimize the code based on different configuration. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190321082555.21118-7-richardw.yang@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/linuxload.c')
0 files changed, 0 insertions, 0 deletions