expected_regs.pstate already has PSR_MODE_EL1h set as the expected Exception Level. Signed-off-by: Alexandru Elisei <alexandru.elisei@xxxxxxx> --- arm/selftest.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arm/selftest.c b/arm/selftest.c index 28a17f7a7531..176231f32ee1 100644 --- a/arm/selftest.c +++ b/arm/selftest.c @@ -213,10 +213,6 @@ static bool check_regs(struct pt_regs *regs) { unsigned i; - /* exception handlers should always run in EL1 */ - if (current_level() != CurrentEL_EL1) - return false; - for (i = 0; i < ARRAY_SIZE(regs->regs); ++i) { if (regs->regs[i] != expected_regs.regs[i]) return false; -- 2.7.4