From 11c7ef0c737f37a487f45c6f3aa070ac7e342e3e Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 2 Jan 2012 17:21:07 +0200 Subject: Remove IO_MEM_SHIFT We no longer use any of the lower bits of a ram_addr, so we might as well use them for the io table index. This increases the number of potential I/O handlers by a factor of 8. Signed-off-by: Avi Kivity Reviewed-by: Richard Henderson --- cpu-common.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'cpu-common.h') diff --git a/cpu-common.h b/cpu-common.h index 0f3a682..a40c57d 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -107,8 +107,6 @@ void stq_phys(target_phys_addr_t addr, uint64_t val); void cpu_physical_memory_write_rom(target_phys_addr_t addr, const uint8_t *buf, int len); -#define IO_MEM_SHIFT 3 - extern struct MemoryRegion io_mem_ram; extern struct MemoryRegion io_mem_rom; extern struct MemoryRegion io_mem_unassigned; -- cgit v1.1