target/i386: move paging mode constants from SVM to cpu.h
We will reuse the page walker for both SVM and regular accesses. To do
so we will build a function that receives the currently active paging
mode; start by including in cpu.h the constants and the function to go
from cr4/hflags/efer to the paging mode.
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- target/i386/cpu.h 8 additions, 0 deletionstarget/i386/cpu.h
- target/i386/svm.h 0 additions, 5 deletionstarget/i386/svm.h
- target/i386/tcg/sysemu/excp_helper.c 22 additions, 4 deletionstarget/i386/tcg/sysemu/excp_helper.c
- target/i386/tcg/sysemu/svm_helper.c 1 addition, 12 deletionstarget/i386/tcg/sysemu/svm_helper.c
Loading
Please register or sign in to comment