diff options
-rw-r--r-- | target/arm/helper.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index e24689f767..676059cb38 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11078,17 +11078,18 @@ static void v8m_security_lookup(CPUARMState *env, uint32_t address, } } } + break; + } - /* The IDAU will override the SAU lookup results if it specifies - * higher security than the SAU does. - */ - if (!idau_ns) { - if (sattrs->ns || (!idau_nsc && sattrs->nsc)) { - sattrs->ns = false; - sattrs->nsc = idau_nsc; - } + /* + * The IDAU will override the SAU lookup results if it specifies + * higher security than the SAU does. + */ + if (!idau_ns) { + if (sattrs->ns || (!idau_nsc && sattrs->nsc)) { + sattrs->ns = false; + sattrs->nsc = idau_nsc; } - break; } } |