aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-08-10 17:14:05 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-15 15:18:54 +0100
commit116aae36ae446cd97dd0010ae813194042732ccc (patch)
tree9a2d43c4b3e741b8eed59c05ef33c416dd998df1
parentdf6839c7f7f0afb208414234903a8f8202fc6770 (diff)
cputlb.c: Fix out of date comment
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 <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r--cputlb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cputlb.c b/cputlb.c
index 0d1e2527fb..d3e7b257ae 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;