mirror of https://gitee.com/openkylin/qemu.git
cputlb: document get_page_addr_code
Suggested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
050ec8cc18
commit
8c01eb78c6
|
@ -504,7 +504,15 @@ void mmap_lock(void);
|
||||||
void mmap_unlock(void);
|
void mmap_unlock(void);
|
||||||
bool have_mmap_lock(void);
|
bool have_mmap_lock(void);
|
||||||
|
|
||||||
static inline tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr)
|
/**
|
||||||
|
* get_page_addr_code() - user-mode version
|
||||||
|
* @env: CPUArchState
|
||||||
|
* @addr: guest virtual address of guest code
|
||||||
|
*
|
||||||
|
* Returns @addr.
|
||||||
|
*/
|
||||||
|
static inline tb_page_addr_t get_page_addr_code(CPUArchState *env,
|
||||||
|
target_ulong addr)
|
||||||
{
|
{
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
@ -512,8 +520,18 @@ static inline tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong
|
||||||
static inline void mmap_lock(void) {}
|
static inline void mmap_lock(void) {}
|
||||||
static inline void mmap_unlock(void) {}
|
static inline void mmap_unlock(void) {}
|
||||||
|
|
||||||
/* cputlb.c */
|
/**
|
||||||
tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr);
|
* get_page_addr_code() - full-system version
|
||||||
|
* @env: CPUArchState
|
||||||
|
* @addr: guest virtual address of guest code
|
||||||
|
*
|
||||||
|
* If we cannot translate and execute from the entire RAM page, or if
|
||||||
|
* the region is not backed by RAM, returns -1. Otherwise, returns the
|
||||||
|
* ram_addr_t corresponding to the guest code at @addr.
|
||||||
|
*
|
||||||
|
* Note: this function can trigger an exception.
|
||||||
|
*/
|
||||||
|
tb_page_addr_t get_page_addr_code(CPUArchState *env, target_ulong addr);
|
||||||
|
|
||||||
void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
|
void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
|
||||||
void tlb_set_dirty(CPUState *cpu, target_ulong vaddr);
|
void tlb_set_dirty(CPUState *cpu, target_ulong vaddr);
|
||||||
|
|
Loading…
Reference in New Issue