arm: Fix trapping to Hypervisor during MSR/MRS read/write
authorDylan Johnson <Dylan.Johnson@ARM.com>
Tue, 2 Aug 2016 09:38:03 +0000 (10:38 +0100)
committerDylan Johnson <Dylan.Johnson@ARM.com>
Tue, 2 Aug 2016 09:38:03 +0000 (10:38 +0100)
commit02fcca9b6ff8a6f8db06cbd3f897956bc218a544
tree0bcf738cccd9ab9646218498d741248216cd79c7
parentc2271e301dc441944dfc4c19ac932ea4f926a863
arm: Fix trapping to Hypervisor during MSR/MRS read/write

This patch restricts trapping to hypervisor only if we are in the
correct exception level for the trap to happen.

Change-Id: I0a382b6a572ef835ea36d2702b8a81b633bd3df0
src/arch/arm/isa/insts/data64.isa
src/arch/arm/utility.cc
src/arch/arm/utility.hh