diff options
| author | Wei Yang <richardw.yang@linux.intel.com> | 2019-03-21 16:25:55 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-09-16 12:32:21 +0200 |
| commit | 526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5 (patch) | |
| tree | f0982fbab6bfd7acc01465e8ac10d3474f0a5c36 /hw/core/loader.c | |
| parent | 26ca2075babd7775e246b9eb7da75d6de77eb658 (diff) | |
| download | focaccia-qemu-526ca2360ea1cd947f74c8c6c38b91b9d6fcfdb5.tar.gz focaccia-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 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions