Commit 0b4e6e3e788ec1fdf95c405191981b10b26c4bd1

Authored by Paul Brook
1 parent 1dcea8e8

Remove cpu_get_io_memory_{read,write}.

Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing 2 changed files with 1 additions and 14 deletions
cpu-all.h
... ... @@ -917,8 +917,6 @@ int cpu_register_io_memory(int io_index,
917 917 CPUWriteMemoryFunc **mem_write,
918 918 void *opaque);
919 919 void cpu_unregister_io_memory(int table_address);
920   -CPUWriteMemoryFunc **cpu_get_io_memory_write(int io_index);
921   -CPUReadMemoryFunc **cpu_get_io_memory_read(int io_index);
922 920  
923 921 void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
924 922 int len, int is_write);
... ...
... ... @@ -3016,8 +3016,7 @@ static void io_mem_init(void)
3016 3016  
3017 3017 /* mem_read and mem_write are arrays of functions containing the
3018 3018 function to access byte (index 0), word (index 1) and dword (index
3019   - 2). Functions can be omitted with a NULL function pointer. The
3020   - registered functions may be modified dynamically later.
  3019 + 2). Functions can be omitted with a NULL function pointer.
3021 3020 If io_index is non zero, the corresponding io zone is
3022 3021 modified. If it is zero, a new io zone is allocated. The return
3023 3022 value can be used with cpu_register_physical_memory(). (-1) is
... ... @@ -3061,16 +3060,6 @@ void cpu_unregister_io_memory(int io_table_address)
3061 3060 io_mem_used[io_index] = 0;
3062 3061 }
3063 3062  
3064   -CPUWriteMemoryFunc **cpu_get_io_memory_write(int io_index)
3065   -{
3066   - return io_mem_write[io_index >> IO_MEM_SHIFT];
3067   -}
3068   -
3069   -CPUReadMemoryFunc **cpu_get_io_memory_read(int io_index)
3070   -{
3071   - return io_mem_read[io_index >> IO_MEM_SHIFT];
3072   -}
3073   -
3074 3063 #endif /* !defined(CONFIG_USER_ONLY) */
3075 3064  
3076 3065 /* physical memory access (slow version, mainly for debug) */
... ...