summaryrefslogtreecommitdiffstats
path: root/target-arm/translate.h
diff options
context:
space:
mode:
authorSergey Fedorov <s.fedorov@samsung.com>2014-12-11 12:07:48 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-12-11 12:07:48 +0000
commit3f342b9e0e64ad681cd39840bfa75ef12d2807c1 (patch)
treecdbd94925950fb306208d2d0f09a27cfc0f54c9a /target-arm/translate.h
parentea30a4b824ecc3c829b70eb9999ac5457dc5790f (diff)
downloadhqemu-3f342b9e0e64ad681cd39840bfa75ef12d2807c1.zip
hqemu-3f342b9e0e64ad681cd39840bfa75ef12d2807c1.tar.gz
target-arm: add non-secure Translation Block flag
This patch is based on idea found in patch at git://github.com/jowinter/qemu-trustzone.git f3d955c6c0ed8c46bc0eb10b634201032a651dd2 by Johannes Winter <johannes.winter@iaik.tugraz.at>. The TBFLAG captures the SCR NS secure state at the time when a TB is created so the correct bank is accessed on system register accesses. Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com> Signed-off-by: Fabian Aggeler <aggelerf@ethz.ch> Signed-off-by: Greg Bellows <greg.bellows@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1416242878-876-5-git-send-email-greg.bellows@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/translate.h')
-rw-r--r--target-arm/translate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-arm/translate.h b/target-arm/translate.h
index 41a9071..f6ee789 100644
--- a/target-arm/translate.h
+++ b/target-arm/translate.h
@@ -20,6 +20,7 @@ typedef struct DisasContext {
#if !defined(CONFIG_USER_ONLY)
int user;
#endif
+ bool ns; /* Use non-secure CPREG bank on access */
bool cpacr_fpen; /* FP enabled via CPACR.FPEN */
bool vfp_enabled; /* FP enabled via FPSCR.EN */
int vec_len;
OpenPOWER on IntegriCloud