From 67958ffda03d6b7e64c96b5244bd8f3f409adff1 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Tue, 18 Mar 2008 10:54:54 -0300 Subject: [PATCH] Fix initialization of I/O regions The dynamic I/O regions patch did not initialize the region correctly. Signed-off-by: Avi Kivity --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index edeb21aa5d..e5199cfaf7 100644 --- a/exec.c +++ b/exec.c @@ -2519,7 +2519,7 @@ static void io_mem_init(void) cpu_register_io_memory(IO_MEM_UNASSIGNED >> IO_MEM_SHIFT, unassigned_mem_read, unassigned_mem_write, NULL); cpu_register_io_memory(IO_MEM_NOTDIRTY >> IO_MEM_SHIFT, error_mem_read, notdirty_mem_write, NULL); for (i=0; i<5; i++) - io_mem_used[i] = 0; + io_mem_used[i] = 1; #if defined(CONFIG_SOFTMMU) io_mem_watch = cpu_register_io_memory(-1, watch_mem_read, -- 2.11.4.GIT