[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 03/32] target-arm: reject switching to monitor mo
From: |
Greg Bellows |
Subject: |
[Qemu-devel] [PATCH v7 03/32] target-arm: reject switching to monitor mode |
Date: |
Tue, 21 Oct 2014 11:55:15 -0500 |
From: Sergey Fedorov <address@hidden>
Reject switching to monitor mode from non-secure state.
Signed-off-by: Sergey Fedorov <address@hidden>
Signed-off-by: Fabian Aggeler <address@hidden>
Signed-off-by: Greg Bellows <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Reviewed-by: Peter Maydell <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 d837820..c36ee6a 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -3531,6 +3531,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
- [Qemu-devel] [PATCH v7 00/32] target-arm: add Security Extensions for CPUs, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 03/32] target-arm: reject switching to monitor mode,
Greg Bellows <=
- [Qemu-devel] [PATCH v7 01/32] target-arm: increase arrays of registers R13 & R14, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 02/32] target-arm: add arm_is_secure() function, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 05/32] target-arm: make arm_current_el() return EL3, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 10/32] target-arm: add non-secure Translation Block flag, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 08/32] target-arm: add async excp target_el function, Greg Bellows, 2014/10/21
- [Qemu-devel] [PATCH v7 07/32] target-arm: extend async excp masking, Greg Bellows, 2014/10/21