]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-i386: fix disassembly with PAE=1, PG=0
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Aug 2013 09:58:45 +0000 (11:58 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Sep 2013 03:05:30 +0000 (22:05 -0500)
commitf9fd82ee939d6ee5bff126b125020021e18ce330
treecb516a5bfcd75ad7a83641a72784d19afc5fcb3a
parentda4e203efa76f2d2ee0a17670c241881963d033d
target-i386: fix disassembly with PAE=1, PG=0

CR4.PAE=1 will not enable paging if CR0.PG=0, but the "if" chain
in x86_cpu_get_phys_page_debug says otherwise.  Check CR0.PG
before everything else.

Fixes "-d in_asm" for a code section at the beginning of OVMF.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
(cherry picked from commit f2f8560c7a5303065a2a3207ec475dfb3a622a0e)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-i386/helper.c