aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-02-25 15:42:06 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-03-15 11:26:20 +0100
commit991ec97625e1281ba22bd81426a7226a76baf60a (patch)
treed30558e13ba3207b9f2b7a6886c43d89e512b4fc /qemu-io.c
parentdef4c5570c44cc775c47e6d8503e4d12868f53aa (diff)
target/i386: only include bits in pg_mode if they are not ignored
LA57/PKE/PKS is only relevant in 64-bit mode, and NXE is only relevant if PAE is in use. Since there is code that checks PG_MODE_LA57 to determine the canonicality of addresses, make sure that the bit is not set by mistake in 32-bit mode. While it would not be a problem because 32-bit addresses by definition fit in both 48-bit and 57-bit address spaces, it is nicer if get_pg_mode() actually returns whether a feature is enabled, and it allows a few simplifications in the page table walker. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions