From 13eb76e091a302dff848b0001a64d1b571450ccc Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 24 Jan 2004 15:23:36 +0000 Subject: virtual memory access for gdbstub git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@581 c046a42c-6fe2-441c-8c8c-71466251a162 --- cpu-all.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index 499e1483d..1cf35ea23 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -473,6 +473,11 @@ int cpu_breakpoint_insert(CPUState *env, uint32_t pc); int cpu_breakpoint_remove(CPUState *env, uint32_t pc); void cpu_single_step(CPUState *env, int enabled); +/* Return the physical page corresponding to a virtual one. Use it + only for debugging because no protection checks are done. Return -1 + if no page found. */ +target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr); + #define CPU_LOG_ALL 1 void cpu_set_log(int log_flags); void cpu_set_log_filename(const char *filename); @@ -515,6 +520,11 @@ int cpu_register_io_memory(int io_index, CPUReadMemoryFunc **mem_read, CPUWriteMemoryFunc **mem_write); +void cpu_physical_memory_rw(CPUState *env, uint8_t *buf, target_ulong addr, + int len, int is_write); +int cpu_memory_rw_debug(CPUState *env, + uint8_t *buf, target_ulong addr, int len, int is_write); + /* gdb stub API */ extern int gdbstub_fd; CPUState *cpu_gdbstub_get_env(void *opaque); -- cgit v1.2.3