From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szrqk-00042q-Uh for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szrqi-0002NE-Rv for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:14:10 -0400 From: Peter Maydell Date: Fri, 10 Aug 2012 17:14:05 +0100 Message-Id: <1344615245-25080-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] cputlb.c: Fix out of date comment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, patches@linaro.org The comment about the return address from get_page_addr_code() was well out of date as phys_ram_base has not existed for some time. Signed-off-by: Peter Maydell --- cputlb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cputlb.c b/cputlb.c index 0d1e252..d3e7b25 100644 --- a/cputlb.c +++ b/cputlb.c @@ -312,7 +312,9 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr, /* NOTE: this function can trigger an exception */ /* NOTE2: the returned address is not exactly the physical address: it - is the offset relative to phys_ram_base */ + * is actually a ram_addr_t (in system mode; the user mode emulation + * version of this function returns a guest virtual address). + */ tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr) { int mmu_idx, page_index, pd; -- 1.7.9.5