diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-02 20:12:32 +1100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-02 12:35:16 +0100 |
commit | 03a60ae9cac546d05b076676491ed1606f9d9066 (patch) | |
tree | f93e2c71360faac4783d80626e5a774be90b049c /linux-user/mips/sockbits.h | |
parent | eff3de52f265df39c6fc668415ad317ec1f24051 (diff) |
target/i386: Fix test for paging enabled
If CR0.PG is unset, pg_mode will be zero, but it will also be zero
for non-PAE/non-PSE page tables with CR0.WP=0. Restore the
correct test for paging enabled.
Fixes: 98281984a37 ("target/i386: Add MMU_PHYS_IDX and MMU_NESTED_IDX")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1269
Reported-by: Andreas Gustafsson <gson@gson.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221102091232.1092552-1-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/mips/sockbits.h')
0 files changed, 0 insertions, 0 deletions