summary refs log tree commit diff stats
path: root/hw/ide/ide-dev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-01-02 15:40:18 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-02-28 00:23:39 +0100
commit90f641531c782c873a05895f411c05fbbbef3c49 (patch)
treed2cd3320f85604ac5ef9f03fad94edddccaacb24 /hw/ide/ide-dev.c
parent5f97afe2543f09160a8d123ab6e2e8c6d98fa9ce (diff)
downloadfocaccia-qemu-90f641531c782c873a05895f411c05fbbbef3c49.tar.gz
focaccia-qemu-90f641531c782c873a05895f411c05fbbbef3c49.zip
target/i386: use separate MMU indexes for 32-bit accesses
Accesses from a 32-bit environment (32-bit code segment for instruction
accesses, EFER.LMA==0 for processor accesses) have to mask away the
upper 32 bits of the address.  While a bit wasteful, the easiest way
to do so is to use separate MMU indexes.  These days, QEMU anyway is
compiled with a fixed value for NB_MMU_MODES.  Split MMU_USER_IDX,
MMU_KSMAP_IDX and MMU_KNOSMAP_IDX in two.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/ide-dev.c')
0 files changed, 0 insertions, 0 deletions