target/i386: move paging mode constants from SVM to cpu.h
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Feb 2021 14:45:05 +0000 (09:45 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 May 2021 08:11:13 +0000 (04:11 -0400)
commit616a89eaadb5337094a4931addee8a76c85556cd
treeeb4f94b40696cd1003fa3915868b5678a043a275
parent6ed6b0d38025485ddac834964f1ee25a2a809b2b
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>
target/i386/cpu.h
target/i386/svm.h
target/i386/tcg/sysemu/excp_helper.c
target/i386/tcg/sysemu/svm_helper.c