arch-arm: BadMode checking if corresponding EL is implemented
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 7 Jun 2018 16:17:16 +0000 (17:17 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 22 Jun 2018 10:52:55 +0000 (10:52 +0000)
commitfc278fffb78512ff3d62a906804d6b285edd00c7
tree5c8f488763041f6774ebada7609b86d6a3a865bd
parent3ed0c3c0bef2eefddcf2033e6ab9d22cf45c486d
arch-arm: BadMode checking if corresponding EL is implemented

The old utility function called badMode was only checking if the mode
passed as an argument was a recognized mode. It was not checking if the
corresponding mode/EL was implemented. That function has been renamed to
unknownMode and a new badMode has been introduced.  This is used by the
cpsrWriteByInstruction function.  In this way any try to change the
execution mode won't succeed if the mode hasn't been implemented.

Change-Id: Ibfe385c5465b904acc0d2eb9647710891d72c9df
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11196
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/insts/static_inst.cc
src/arch/arm/insts/static_inst.hh
src/arch/arm/isa/formats/mem.isa
src/arch/arm/isa/formats/uncond.isa
src/arch/arm/isa/insts/str.isa
src/arch/arm/types.hh
src/arch/arm/utility.cc
src/arch/arm/utility.hh