arm: use symbolic MDCR_TDE in arm_debug_target_el

We already have this symbol defined so lets use it.

Backports commit b281ba4223c302c41ff8104152bfdd44de4fe798 from qemu
This commit is contained in:
Alex Bennée 2018-11-16 21:42:21 -05:00 committed by Lioncash
parent 295dd866b4
commit 2a3edfce37
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2692,7 +2692,7 @@ static inline int arm_debug_target_el(CPUARMState *env)
if (arm_feature(env, ARM_FEATURE_EL2) && !secure) {
route_to_el2 = env->cp15.hcr_el2 & HCR_TGE ||
env->cp15.mdcr_el2 & (1 << 8);
env->cp15.mdcr_el2 & MDCR_TDE;
}
if (route_to_el2) {