target-i386: fix kernel accesses with SMAP and CPL = 3
commit8a201bd47e4724c5783033aedbdd126a5df7a251
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Mar 2014 10:43:45 +0000 (28 11:43 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jun 2014 14:10:34 +0000 (5 16:10 +0200)
tree1f4d90bf910f1eea3544286c076a0f5deddcaf86
parent81cf8d8adc64203567e03326c13ea4abec9fe5df
target-i386: fix kernel accesses with SMAP and CPL = 3

With SMAP, implicit kernel accesses from user mode always behave as
if AC=0.  To do this, kernel mode is not anymore a separate MMU mode.
Instead, KERNEL_IDX is renamed to KSMAP_IDX and the kernel mode accessors
wrap KSMAP_IDX and KNOSMAP_IDX.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.h
target-i386/helper.c
target-i386/seg_helper.c