From 33417e7025afa5ea1c38c3c2b2ea53d975b5648b Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 10 Aug 2003 21:47:01 +0000 Subject: soft mmu support - Memory I/O API - synthetize string instructions git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@354 c046a42c-6fe2-441c-8c8c-71466251a162 --- cpu-all.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index cde8451dd0..65304927ee 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -140,6 +140,7 @@ static inline void stfl(void *ptr, float v) stl(ptr, u.i); } + #if defined(__arm__) && !defined(WORDS_BIGENDIAN) /* NOTE: arm is horrible as double 32 bit words are stored in big endian ! */ @@ -317,6 +318,17 @@ 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); +/* memory API */ + +typedef void CPUWriteMemoryFunc(uint32_t addr, uint32_t value); +typedef uint32_t CPUReadMemoryFunc(uint32_t addr); + +void cpu_register_physical_memory(unsigned long start_addr, unsigned long size, + long phys_offset); +int cpu_register_io_memory(int io_index, + CPUReadMemoryFunc **mem_read, + CPUWriteMemoryFunc **mem_write); + /* gdb stub API */ extern int gdbstub_fd; CPUState *cpu_gdbstub_get_env(void *opaque); -- cgit v1.2.3