target-arm: Add checks that cpreg raw accesses are handled
commit375421ccaeebae8212eb8f9a36835ad4d9dc60a8
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:22 +0000 (5 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:22 +0000 (5 13:37 +0000)
tree6d1b89721a8241881f9b921be8f0ced39d0c6825
parent7a0e58fa648736a75f2a6943afd2ab08ea15b8e0
target-arm: Add checks that cpreg raw accesses are handled

Add assertion checking when cpreg structures are registered that they
either forbid raw-access attempts or at least make an attempt at
handling them. Also add an assert in the raw-accessor-of-last-resort,
to avoid silently doing a read or write from offset zero, which is
actually AArch32 CPU register r0.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1422282372-13735-3-git-send-email-peter.maydell@linaro.org
Reviewed-by: Greg Bellows <greg.bellows@linaro.org>
target-arm/helper.c