[{"id":1771292,"web_url":"http://patchwork.ozlabs.org/comment/1771292/","msgid":"<58618c0e-9336-2cf8-9db2-d11181c29ea7@linaro.org>","list_archive_url":null,"date":"2017-09-19T18:50:26","subject":"Re: [Qemu-devel] [PATCH 12/19] nvic: In escalation to HardFault,\n\tsupport HF not being priority -1","submitter":{"id":72104,"url":"http://patchwork.ozlabs.org/api/people/72104/","name":"Richard Henderson","email":"richard.henderson@linaro.org"},"content":"On 09/12/2017 01:13 PM, Peter Maydell wrote:\n> When escalating to HardFault, we must go into Lockup if we\n> can't take the synchronous HardFault because the current\n> execution priority is already at or below the priority of\n> HardFault. In v7M HF is always priority -1 so a simple < 0\n> comparison sufficed; in v8M the priority of HardFault can\n> vary depending on whether it is a Secure or NonSecure\n> HardFault, so we must check against the priority of the\n> HardFault exception vector we're about to use.\n> \n> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>\n> ---\n>  hw/intc/armv7m_nvic.c | 23 ++++++++++++-----------\n>  1 file changed, 12 insertions(+), 11 deletions(-)\n\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\n\nr~","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"Y4bA4pvC\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxX5R1V16z9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 04:51:07 +1000 (AEST)","from localhost ([::1]:44863 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1duNbs-0000Qm-Ia\n\tfor incoming@patchwork.ozlabs.org; Tue, 19 Sep 2017 14:51:04 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:38859)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1duNbL-0000Oh-Q5\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 14:50:32 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1duNbK-0006pg-QU\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 14:50:31 -0400","from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:50970)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <richard.henderson@linaro.org>)\n\tid 1duNbK-0006pL-Mc\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 14:50:30 -0400","by mail-io0-x231.google.com with SMTP id w94so1347339ioi.7\n\tfor <qemu-devel@nongnu.org>; Tue, 19 Sep 2017 11:50:30 -0700 (PDT)","from bigtime.twiddle.net (162.189-204-159.bestel.com.mx.\n\t[189.204.159.162]) by smtp.gmail.com with ESMTPSA id\n\t105sm565957otc.39.2017.09.19.11.50.28\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 19 Sep 2017 11:50:29 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=jDABxhreQ09WdGq2wk7q292Rhr4gchgylH/mKoc1Wh8=;\n\tb=Y4bA4pvCsh7U0OTz3O9ngIDDKfhXDTgLP5Dry5cJjpml9cXQM/wGRkyRbYanRJ5bc2\n\t99tLg7ctfNsqhqdGAicLzmWsYLkTjpONkehhpB0foZgKSFaveRR8fQtXAPYpen/Lhi7H\n\tx5d8+GeDmMKg8ebVQ307m8Z0VDHpG08ZCcXMw=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=jDABxhreQ09WdGq2wk7q292Rhr4gchgylH/mKoc1Wh8=;\n\tb=d9Ag3AZoNUq7zPSlf0OwD1OKsYLzYCNL1p7gNQ8OB6p66B3Z0lZfIlPSkhFEuTXCr4\n\tUMcut8BiYi7NMyTCofcTw8onSO/h75GmfF/4qcLhb6UstqvyKNF6zavtlagjt9qDTw7z\n\tBxSIoiRTYrx7A/I48EhJ66Kpjdk7/07KO+GTmHEu0lUKlbcXbHC3iuLs4NzWqi19NM6Y\n\tQxEP+PrF74zOMcnTgXhZN9Pgu3MEP03GWFMS4A7eWM5RiAU1aZjXmBDDmvASiZWD4/+M\n\tbT3B9cNUYYBqhCv4zHr3EYPz0H1haHJgmeJC/3ObjozgvNBkHtqlKKbv5LISCepluAKe\n\t6M7Q==","X-Gm-Message-State":"AHPjjUjPqlGpbIGoY/B/B1zJTXpjxSWsILs5NbPpzu9/9EUPeGGop9fI\n\tCMkvcl8OEfc2DDAWXaKfDBVeONHBQMo=","X-Google-Smtp-Source":"AOwi7QDivUvIWh2mrKhZ3f4foQBm4xBPw+3/rpSU+7Z9LO2fuAgyZhiSx+P70n5b9tTDYkM0CmI+bQ==","X-Received":"by 10.202.206.1 with SMTP id e1mr2520859oig.150.1505847029974;\n\tTue, 19 Sep 2017 11:50:29 -0700 (PDT)","To":"Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org,\n\tqemu-devel@nongnu.org","References":"<1505240046-11454-1-git-send-email-peter.maydell@linaro.org>\n\t<1505240046-11454-13-git-send-email-peter.maydell@linaro.org>","From":"Richard Henderson <richard.henderson@linaro.org>","Message-ID":"<58618c0e-9336-2cf8-9db2-d11181c29ea7@linaro.org>","Date":"Tue, 19 Sep 2017 13:50:26 -0500","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<1505240046-11454-13-git-send-email-peter.maydell@linaro.org>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:4001:c06::231","Subject":"Re: [Qemu-devel] [PATCH 12/19] nvic: In escalation to HardFault,\n\tsupport HF not being priority -1","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"patches@linaro.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]