Received: from eggs.gnu.org ([2001:4830:134:3::10]:44371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6KVa-00089H-Mu for qemu-devel@nongnu.org; Fri, 27 May 2016 12:21:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6KVW-0007JY-JY for qemu-devel@nongnu.org; Fri, 27 May 2016 12:21:10 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:36033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6KVW-0007JT-Ef for qemu-devel@nongnu.org; Fri, 27 May 2016 12:21:06 -0400 Received: by mail-qk0-x22f.google.com with SMTP id x7so82828205qkd.3 for ; Fri, 27 May 2016 09:21:06 -0700 (PDT) Sender: Richard Henderson References: <1464361598-30776-1-git-send-email-peter.maydell@linaro.org> From: Richard Henderson Message-ID: <2601a20d-de08-1852-7058-cb6ec4885c68@twiddle.net> Date: Fri, 27 May 2016 09:21:01 -0700 MIME-Version: 1.0 In-Reply-To: <1464361598-30776-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] linux-user: provide frame information in x86-64 safe_syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Riku Voipio On 05/27/2016 08:06 AM, Peter Maydell wrote: > @@ -31,6 +32,8 @@ safe_syscall_base: > * does not list any ABI differences regarding stack alignment.) > */ > push %rbp > + .cfi_def_cfa_offset 16 > + .cfi_offset rbp,-16 While this is correct, there are two other directives that make it easier to describe changes without having to compute globally correct constants. Here they would be: .cfi_adjust_cfa_offset 8 Add 8 to the offset, i.e. decrement the SP by 8. .cfi_rel_offset rbp, 0 Save rbp at the current top-of-stack. The assembler will compute the absolute values from these relative values. Using them makes it easy to see from a narrow window of code that the annotations are correct. Otherwise, Reviewed-by: Richard Henderson r~