[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e72f951] Remove cpu_get_io_memory_{read, write}.

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e72f951] Remove cpu_get_io_memory_{read, write}.
Date: Thu, 30 Apr 2009 17:42:35 -0000

From: Paul Brook <address@hidden>

Signed-off-by: Paul Brook <address@hidden>

diff --git a/cpu-all.h b/cpu-all.h
index e8cccc6..0df54b6 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -917,8 +917,6 @@ int cpu_register_io_memory(int io_index,
                            CPUWriteMemoryFunc **mem_write,
                            void *opaque);
 void cpu_unregister_io_memory(int table_address);
-CPUWriteMemoryFunc **cpu_get_io_memory_write(int io_index);
-CPUReadMemoryFunc **cpu_get_io_memory_read(int io_index);
 void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
                             int len, int is_write);
diff --git a/exec.c b/exec.c
index 23013fb..2effd04 100644
--- a/exec.c
+++ b/exec.c
@@ -3016,8 +3016,7 @@ static void io_mem_init(void)
 /* mem_read and mem_write are arrays of functions containing the
    function to access byte (index 0), word (index 1) and dword (index
-   2). Functions can be omitted with a NULL function pointer. The
-   registered functions may be modified dynamically later.
+   2). Functions can be omitted with a NULL function pointer.
    If io_index is non zero, the corresponding io zone is
    modified. If it is zero, a new io zone is allocated. The return
    value can be used with cpu_register_physical_memory(). (-1) is
@@ -3061,16 +3060,6 @@ void cpu_unregister_io_memory(int io_table_address)
     io_mem_used[io_index] = 0;
-CPUWriteMemoryFunc **cpu_get_io_memory_write(int io_index)
-    return io_mem_write[io_index >> IO_MEM_SHIFT];
-CPUReadMemoryFunc **cpu_get_io_memory_read(int io_index)
-    return io_mem_read[io_index >> IO_MEM_SHIFT];
 #endif /* !defined(CONFIG_USER_ONLY) */
 /* physical memory access (slow version, mainly for debug) */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]