qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v4 05/33] target-arm: reject switching to monitor mo


From: greg . bellows
Subject: [Qemu-devel] [PATCH v4 05/33] target-arm: reject switching to monitor mode
Date: Mon, 30 Jun 2014 18:09:05 -0500

From: Sergey Fedorov <address@hidden>

...from non-secure state.

Signed-off-by: Sergey Fedorov <address@hidden>
Signed-off-by: Fabian Aggeler <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Signed-off-by: Greg Bellows <address@hidden>
---
 target-arm/helper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 1ea30fe..ed1e3c7 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -3064,6 +3064,8 @@ static int bad_mode_switch(CPUARMState *env, int mode)
     case ARM_CPU_MODE_IRQ:
     case ARM_CPU_MODE_FIQ:
         return 0;
+    case ARM_CPU_MODE_MON:
+        return !arm_is_secure(env);
     default:
         return 1;
     }
-- 
1.8.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]