arm, kvm: enable running 32-bit Guest under ARM KVM64
authorRahul Thakur <rjthakur@google.com>
Wed, 1 Mar 2017 18:27:05 +0000 (10:27 -0800)
committerRahul Thakur <rjthakur@google.com>
Fri, 3 Mar 2017 04:56:45 +0000 (04:56 +0000)
commitceb3bd9733d094b7c7d659ec5990fda26c2da27c
treeb3735b3735eb4e3fc314b261cea3f2896d9324ab
parent0fc9dcf46b98ee0e35e8ca428c1021dbbc4f67da
arm, kvm: enable running 32-bit Guest under ARM KVM64

1) Pass KVM_ARM_VCPU_EL1_32BIT to kvmArmVCpuInit
   when running 32-bit OS

2) Correctly map 64-bit registers to banked 32-bit ones

Change-Id: I1dec6427d6f5c3bba599ccdd804f1dfe80d3e670
Reviewed-on: https://gem5-review.googlesource.com/2261
Maintainer: Rahul Thakur <rjthakur@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/kvm/armv8_cpu.cc
src/arch/arm/kvm/base_cpu.cc