From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0ScE-0005Ja-95 for qemu-devel@nongnu.org; Fri, 06 Oct 2017 09:24:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0ScD-0005xT-CI for qemu-devel@nongnu.org; Fri, 06 Oct 2017 09:24:34 -0400 Received: from mail-qt0-x230.google.com ([2607:f8b0:400d:c0d::230]:49047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0ScD-0005x9-7e for qemu-devel@nongnu.org; Fri, 06 Oct 2017 09:24:33 -0400 Received: by mail-qt0-x230.google.com with SMTP id d13so30651225qta.5 for ; Fri, 06 Oct 2017 06:24:33 -0700 (PDT) References: <1506092407-26985-1-git-send-email-peter.maydell@linaro.org> <1506092407-26985-3-git-send-email-peter.maydell@linaro.org> From: Richard Henderson Message-ID: Date: Fri, 6 Oct 2017 09:24:29 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/20] target/arm: Don't switch to target stack early in v7M exception return List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm , QEMU Developers , "patches@linaro.org" On 10/06/2017 09:22 AM, Peter Maydell wrote: > I'm going to change this part of the comment to read > * Compare the v8M ARM ARM pseudocode LookUpSP_with_security_mode(). > * Unlike that pseudocode, we require the caller to pass us in the > * SPSEL control bit value; this is because we also use this > * function in handling of pushing of the callee-saves registers > * part of the v8M stack frame (pseudocode PushCalleeStack()), > * and in the tailchain codepath the SPSEL bit comes from the exception > * return magic LR value from the previous exception. The pseudocode > * opencodes the stack-selection in PushCalleeStack(), but we prefer > * to make this utility function generic enough to do the job. > > which hopefully is a little clearer. Much, thanks. r~