summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-01-14 16:37:56 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-01-14 16:37:56 +0000
commit50d9ca76b42a4b777e88123a060e8cfb284f4a40 (patch)
tree28d601dfd04e05d5bced14a023180c3f433316bc /meta
parent24c24ecf0d407128ecfdd71234a1150122dbe1da (diff)
downloadpoky-50d9ca76b42a4b777e88123a060e8cfb284f4a40.tar.gz
qemu: Add small fix to gl patch
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/qemu/qemu-git/qemu-git-qemugl-host.patch380
-rw-r--r--meta/packages/qemu/qemu_git.bb2
2 files changed, 182 insertions, 200 deletions
diff --git a/meta/packages/qemu/qemu-git/qemu-git-qemugl-host.patch b/meta/packages/qemu/qemu-git/qemu-git-qemugl-host.patch
index cfa0918162..00d9ca7cc2 100644
--- a/meta/packages/qemu/qemu-git/qemu-git-qemugl-host.patch
+++ b/meta/packages/qemu/qemu-git/qemu-git-qemugl-host.patch
@@ -1,8 +1,8 @@
1diff --git a/Makefile.target b/Makefile.target 1Index: git/Makefile.target
2index f33f762..d1eb876 100644 2===================================================================
3--- a/Makefile.target 3--- git.orig/Makefile.target 2009-12-02 13:13:56.000000000 +0000
4+++ b/Makefile.target 4+++ git/Makefile.target 2010-01-14 16:34:58.000000000 +0000
5@@ -153,6 +153,10 @@ endif 5@@ -153,6 +153,10 @@
6 CPPFLAGS+=-I$(SRC_PATH)/fpu 6 CPPFLAGS+=-I$(SRC_PATH)/fpu
7 LIBOBJS+= op_helper.o helper.o 7 LIBOBJS+= op_helper.o helper.o
8 8
@@ -13,7 +13,7 @@ index f33f762..d1eb876 100644
13 ifeq ($(TARGET_BASE_ARCH), arm) 13 ifeq ($(TARGET_BASE_ARCH), arm)
14 LIBOBJS+= neon_helper.o iwmmxt_helper.o 14 LIBOBJS+= neon_helper.o iwmmxt_helper.o
15 endif 15 endif
16@@ -224,6 +228,21 @@ op_helper.o: CFLAGS += $(HELPER_CFLAGS) $(I386_CFLAGS) 16@@ -224,6 +228,21 @@
17 17
18 cpu-exec.o: CFLAGS += $(HELPER_CFLAGS) 18 cpu-exec.o: CFLAGS += $(HELPER_CFLAGS)
19 19
@@ -35,7 +35,7 @@ index f33f762..d1eb876 100644
35 ######################################################### 35 #########################################################
36 # Linux user emulator target 36 # Linux user emulator target
37 37
38@@ -584,7 +603,7 @@ OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o 38@@ -584,7 +603,7 @@
39 OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o 39 OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
40 OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o 40 OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
41 OBJS += device-hotplug.o pci-hotplug.o 41 OBJS += device-hotplug.o pci-hotplug.o
@@ -44,7 +44,7 @@ index f33f762..d1eb876 100644
44 endif 44 endif
45 ifeq ($(TARGET_BASE_ARCH), ppc) 45 ifeq ($(TARGET_BASE_ARCH), ppc)
46 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE 46 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
47@@ -727,7 +746,7 @@ endif 47@@ -727,7 +746,7 @@
48 $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) 48 $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS)
49 49
50 $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a 50 $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a
@@ -53,11 +53,11 @@ index f33f762..d1eb876 100644
53 53
54 endif # !CONFIG_USER_ONLY 54 endif # !CONFIG_USER_ONLY
55 55
56diff --git a/hw/pixel_ops.h b/hw/pixel_ops.h 56Index: git/hw/pixel_ops.h
57index d390adf..9100b5c 100644 57===================================================================
58--- a/hw/pixel_ops.h 58--- git.orig/hw/pixel_ops.h 2009-12-02 13:13:56.000000000 +0000
59+++ b/hw/pixel_ops.h 59+++ git/hw/pixel_ops.h 2010-01-14 15:55:40.000000000 +0000
60@@ -4,6 +4,12 @@ static inline unsigned int rgb_to_pixel8(unsigned int r, unsigned int g, 60@@ -4,6 +4,12 @@
61 return ((r >> 5) << 5) | ((g >> 5) << 2) | (b >> 6); 61 return ((r >> 5) << 5) | ((g >> 5) << 2) | (b >> 6);
62 } 62 }
63 63
@@ -70,11 +70,11 @@ index d390adf..9100b5c 100644
70 static inline unsigned int rgb_to_pixel15(unsigned int r, unsigned int g, 70 static inline unsigned int rgb_to_pixel15(unsigned int r, unsigned int g,
71 unsigned int b) 71 unsigned int b)
72 { 72 {
73diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c 73Index: git/hw/vmware_vga.c
74index d1cba28..c918afb 100644 74===================================================================
75--- a/hw/vmware_vga.c 75--- git.orig/hw/vmware_vga.c 2009-12-02 13:13:56.000000000 +0000
76+++ b/hw/vmware_vga.c 76+++ git/hw/vmware_vga.c 2010-01-14 15:55:40.000000000 +0000
77@@ -484,6 +484,8 @@ static inline void vmsvga_cursor_define(struct vmsvga_state_s *s, 77@@ -484,6 +484,8 @@
78 78
79 #define CMD(f) le32_to_cpu(s->cmd->f) 79 #define CMD(f) le32_to_cpu(s->cmd->f)
80 80
@@ -83,7 +83,7 @@ index d1cba28..c918afb 100644
83 static inline int vmsvga_fifo_empty(struct vmsvga_state_s *s) 83 static inline int vmsvga_fifo_empty(struct vmsvga_state_s *s)
84 { 84 {
85 if (!s->config || !s->enable) 85 if (!s->config || !s->enable)
86@@ -493,11 +495,18 @@ static inline int vmsvga_fifo_empty(struct vmsvga_state_s *s) 86@@ -493,11 +495,18 @@
87 87
88 static inline uint32_t vmsvga_fifo_read_raw(struct vmsvga_state_s *s) 88 static inline uint32_t vmsvga_fifo_read_raw(struct vmsvga_state_s *s)
89 { 89 {
@@ -106,7 +106,7 @@ index d1cba28..c918afb 100644
106 } 106 }
107 107
108 static inline uint32_t vmsvga_fifo_read(struct vmsvga_state_s *s) 108 static inline uint32_t vmsvga_fifo_read(struct vmsvga_state_s *s)
109@@ -507,12 +516,12 @@ static inline uint32_t vmsvga_fifo_read(struct vmsvga_state_s *s) 109@@ -507,12 +516,12 @@
110 110
111 static void vmsvga_fifo_run(struct vmsvga_state_s *s) 111 static void vmsvga_fifo_run(struct vmsvga_state_s *s)
112 { 112 {
@@ -121,7 +121,7 @@ index d1cba28..c918afb 100644
121 case SVGA_CMD_UPDATE: 121 case SVGA_CMD_UPDATE:
122 case SVGA_CMD_UPDATE_VERBOSE: 122 case SVGA_CMD_UPDATE_VERBOSE:
123 x = vmsvga_fifo_read(s); 123 x = vmsvga_fifo_read(s);
124@@ -612,7 +621,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) 124@@ -612,7 +621,7 @@
125 while (args --) 125 while (args --)
126 vmsvga_fifo_read(s); 126 vmsvga_fifo_read(s);
127 printf("%s: Unknown command 0x%02x in SVGA command FIFO\n", 127 printf("%s: Unknown command 0x%02x in SVGA command FIFO\n",
@@ -130,7 +130,7 @@ index d1cba28..c918afb 100644
130 break; 130 break;
131 } 131 }
132 132
133@@ -914,8 +923,9 @@ static void vmsvga_reset(struct vmsvga_state_s *s) 133@@ -914,8 +923,9 @@
134 s->width = -1; 134 s->width = -1;
135 s->height = -1; 135 s->height = -1;
136 s->svgaid = SVGA_ID; 136 s->svgaid = SVGA_ID;
@@ -141,7 +141,7 @@ index d1cba28..c918afb 100644
141 s->cursor.on = 0; 141 s->cursor.on = 0;
142 s->redraw_fifo_first = 0; 142 s->redraw_fifo_first = 0;
143 s->redraw_fifo_last = 0; 143 s->redraw_fifo_last = 0;
144@@ -1140,6 +1150,12 @@ static void vmsvga_init(struct vmsvga_state_s *s, 144@@ -1140,6 +1150,12 @@
145 /* XXX: use optimized standard vga accesses */ 145 /* XXX: use optimized standard vga accesses */
146 cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS, 146 cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS,
147 vga_ram_size, vga_ram_offset); 147 vga_ram_size, vga_ram_offset);
@@ -154,11 +154,11 @@ index d1cba28..c918afb 100644
154 #endif 154 #endif
155 } 155 }
156 156
157diff --git a/kqemu.c b/kqemu.c 157Index: git/kqemu.c
158index 25f4ea7..09c761a 100644 158===================================================================
159--- a/kqemu.c 159--- git.orig/kqemu.c 2009-12-02 13:13:56.000000000 +0000
160+++ b/kqemu.c 160+++ git/kqemu.c 2010-01-14 15:55:40.000000000 +0000
161@@ -93,6 +93,8 @@ uint8_t *modified_ram_pages_table; 161@@ -93,6 +93,8 @@
162 int qpi_io_memory; 162 int qpi_io_memory;
163 uint32_t kqemu_comm_base; /* physical address of the QPI communication page */ 163 uint32_t kqemu_comm_base; /* physical address of the QPI communication page */
164 164
@@ -167,7 +167,7 @@ index 25f4ea7..09c761a 100644
167 #define cpuid(index, eax, ebx, ecx, edx) \ 167 #define cpuid(index, eax, ebx, ecx, edx) \
168 asm volatile ("cpuid" \ 168 asm volatile ("cpuid" \
169 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) \ 169 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) \
170@@ -860,6 +862,22 @@ int kqemu_cpu_exec(CPUState *env) 170@@ -860,6 +862,22 @@
171 else 171 else
172 env->hflags &= ~HF_OSFXSR_MASK; 172 env->hflags &= ~HF_OSFXSR_MASK;
173 173
@@ -190,11 +190,11 @@ index 25f4ea7..09c761a 100644
190 LOG_INT("kqemu: kqemu_cpu_exec: ret=0x%x\n", ret); 190 LOG_INT("kqemu: kqemu_cpu_exec: ret=0x%x\n", ret);
191 if (ret == KQEMU_RET_SYSCALL) { 191 if (ret == KQEMU_RET_SYSCALL) {
192 /* syscall instruction */ 192 /* syscall instruction */
193diff --git a/qemu-char.c b/qemu-char.c 193Index: git/qemu-char.c
194index 64d41d0..424ea9b 100644 194===================================================================
195--- a/qemu-char.c 195--- git.orig/qemu-char.c 2009-12-02 13:13:56.000000000 +0000
196+++ b/qemu-char.c 196+++ git/qemu-char.c 2010-01-14 15:55:40.000000000 +0000
197@@ -2112,6 +2112,69 @@ static CharDriverState *qemu_chr_open_tcp(const char *host_str, 197@@ -2112,6 +2112,69 @@
198 return NULL; 198 return NULL;
199 } 199 }
200 200
@@ -264,7 +264,7 @@ index 64d41d0..424ea9b 100644
264 CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s)) 264 CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s))
265 { 265 {
266 const char *p; 266 const char *p;
267@@ -2192,6 +2255,9 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i 267@@ -2192,6 +2255,9 @@
268 chr = chr_baum_init(); 268 chr = chr_baum_init();
269 } else 269 } else
270 #endif 270 #endif
@@ -274,11 +274,11 @@ index 64d41d0..424ea9b 100644
274 { 274 {
275 chr = NULL; 275 chr = NULL;
276 } 276 }
277diff --git a/sdl.c b/sdl.c 277Index: git/sdl.c
278index 74f084c..b78f754 100644 278===================================================================
279--- a/sdl.c 279--- git.orig/sdl.c 2009-12-02 13:13:56.000000000 +0000
280+++ b/sdl.c 280+++ git/sdl.c 2010-01-14 15:55:40.000000000 +0000
281@@ -54,6 +54,8 @@ static int guest_cursor = 0; 281@@ -54,6 +54,8 @@
282 static int guest_x, guest_y; 282 static int guest_x, guest_y;
283 static SDL_Cursor *guest_sprite = 0; 283 static SDL_Cursor *guest_sprite = 0;
284 284
@@ -287,7 +287,7 @@ index 74f084c..b78f754 100644
287 static void sdl_update(DisplayState *ds, int x, int y, int w, int h) 287 static void sdl_update(DisplayState *ds, int x, int y, int w, int h)
288 { 288 {
289 SDL_Rect rec; 289 SDL_Rect rec;
290@@ -85,7 +87,9 @@ static void sdl_setdata(DisplayState *ds) 290@@ -85,7 +87,9 @@
291 291
292 static void sdl_resize(DisplayState *ds) 292 static void sdl_resize(DisplayState *ds)
293 { 293 {
@@ -297,7 +297,7 @@ index 74f084c..b78f754 100644
297 297
298 // printf("resizing to %d %d\n", w, h); 298 // printf("resizing to %d %d\n", w, h);
299 299
300@@ -104,6 +108,13 @@ static void sdl_resize(DisplayState *ds) 300@@ -104,6 +108,13 @@
301 } 301 }
302 302
303 sdl_setdata(ds); 303 sdl_setdata(ds);
@@ -311,7 +311,7 @@ index 74f084c..b78f754 100644
311 } 311 }
312 312
313 /* generic keyboard conversion */ 313 /* generic keyboard conversion */
314@@ -320,7 +331,7 @@ static void sdl_show_cursor(void) 314@@ -323,7 +334,7 @@
315 315
316 if (!kbd_mouse_is_absolute()) { 316 if (!kbd_mouse_is_absolute()) {
317 SDL_ShowCursor(1); 317 SDL_ShowCursor(1);
@@ -320,7 +320,7 @@ index 74f084c..b78f754 100644
320 (gui_grab || kbd_mouse_is_absolute() || absolute_enabled)) 320 (gui_grab || kbd_mouse_is_absolute() || absolute_enabled))
321 SDL_SetCursor(guest_sprite); 321 SDL_SetCursor(guest_sprite);
322 else 322 else
323@@ -331,7 +342,8 @@ static void sdl_show_cursor(void) 323@@ -334,7 +345,8 @@
324 static void sdl_grab_start(void) 324 static void sdl_grab_start(void)
325 { 325 {
326 if (guest_cursor) { 326 if (guest_cursor) {
@@ -330,7 +330,7 @@ index 74f084c..b78f754 100644
330 if (!kbd_mouse_is_absolute() && !absolute_enabled) 330 if (!kbd_mouse_is_absolute() && !absolute_enabled)
331 SDL_WarpMouse(guest_x, guest_y); 331 SDL_WarpMouse(guest_x, guest_y);
332 } else 332 } else
333@@ -372,8 +384,8 @@ static void sdl_send_mouse_event(int dx, int dy, int dz, int x, int y, int state 333@@ -375,8 +387,8 @@
334 absolute_enabled = 1; 334 absolute_enabled = 1;
335 } 335 }
336 336
@@ -341,7 +341,7 @@ index 74f084c..b78f754 100644
341 } else if (absolute_enabled) { 341 } else if (absolute_enabled) {
342 sdl_show_cursor(); 342 sdl_show_cursor();
343 absolute_enabled = 0; 343 absolute_enabled = 0;
344@@ -603,7 +615,8 @@ static void sdl_mouse_warp(int x, int y, int on) 344@@ -606,7 +618,8 @@
345 if (!guest_cursor) 345 if (!guest_cursor)
346 sdl_show_cursor(); 346 sdl_show_cursor();
347 if (gui_grab || kbd_mouse_is_absolute() || absolute_enabled) { 347 if (gui_grab || kbd_mouse_is_absolute() || absolute_enabled) {
@@ -351,7 +351,7 @@ index 74f084c..b78f754 100644
351 if (!kbd_mouse_is_absolute() && !absolute_enabled) 351 if (!kbd_mouse_is_absolute() && !absolute_enabled)
352 SDL_WarpMouse(x, y); 352 SDL_WarpMouse(x, y);
353 } 353 }
354@@ -628,6 +641,10 @@ static void sdl_mouse_define(int width, int height, int bpp, 354@@ -631,6 +644,10 @@
355 line = image; 355 line = image;
356 for (x = 0; x < width; x ++, dst ++) { 356 for (x = 0; x < width; x ++, dst ++) {
357 switch (bpp) { 357 switch (bpp) {
@@ -362,7 +362,7 @@ index 74f084c..b78f754 100644
362 case 24: 362 case 24:
363 src = *(line ++); src |= *(line ++); src |= *(line ++); 363 src = *(line ++); src |= *(line ++); src |= *(line ++);
364 break; 364 break;
365@@ -654,7 +671,7 @@ static void sdl_mouse_define(int width, int height, int bpp, 365@@ -657,7 +674,7 @@
366 } 366 }
367 guest_sprite = SDL_CreateCursor(sprite, mask, width, height, hot_x, hot_y); 367 guest_sprite = SDL_CreateCursor(sprite, mask, width, height, hot_x, hot_y);
368 368
@@ -371,7 +371,7 @@ index 74f084c..b78f754 100644
371 (gui_grab || kbd_mouse_is_absolute() || absolute_enabled)) 371 (gui_grab || kbd_mouse_is_absolute() || absolute_enabled))
372 SDL_SetCursor(guest_sprite); 372 SDL_SetCursor(guest_sprite);
373 } 373 }
374@@ -670,6 +687,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) 374@@ -673,6 +690,7 @@
375 { 375 {
376 int flags; 376 int flags;
377 uint8_t data = 0; 377 uint8_t data = 0;
@@ -379,7 +379,7 @@ index 74f084c..b78f754 100644
379 379
380 #if defined(__APPLE__) 380 #if defined(__APPLE__)
381 /* always use generic keymaps */ 381 /* always use generic keymaps */
382@@ -691,6 +709,12 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) 382@@ -694,6 +712,12 @@
383 exit(1); 383 exit(1);
384 } 384 }
385 385
@@ -392,7 +392,7 @@ index 74f084c..b78f754 100644
392 dcl = qemu_mallocz(sizeof(DisplayChangeListener)); 392 dcl = qemu_mallocz(sizeof(DisplayChangeListener));
393 dcl->dpy_update = sdl_update; 393 dcl->dpy_update = sdl_update;
394 dcl->dpy_resize = sdl_resize; 394 dcl->dpy_resize = sdl_resize;
395@@ -714,4 +738,9 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) 395@@ -717,4 +741,9 @@
396 gui_fullscreen_initial_grab = 1; 396 gui_fullscreen_initial_grab = 1;
397 sdl_grab_start(); 397 sdl_grab_start();
398 } 398 }
@@ -402,10 +402,10 @@ index 74f084c..b78f754 100644
402+ opengl_exec_set_parent_window(info.info.x11.display, 402+ opengl_exec_set_parent_window(info.info.x11.display,
403+ info.info.x11.window); 403+ info.info.x11.window);
404 } 404 }
405diff --git a/slirp/ctl.h b/slirp/ctl.h 405Index: git/slirp/ctl.h
406index 4a8576d..201ae4b 100644 406===================================================================
407--- a/slirp/ctl.h 407--- git.orig/slirp/ctl.h 2009-12-02 13:13:56.000000000 +0000
408+++ b/slirp/ctl.h 408+++ git/slirp/ctl.h 2010-01-14 15:55:40.000000000 +0000
409@@ -2,6 +2,7 @@ 409@@ -2,6 +2,7 @@
410 #define CTL_EXEC 1 410 #define CTL_EXEC 1
411 #define CTL_ALIAS 2 411 #define CTL_ALIAS 2
@@ -414,10 +414,10 @@ index 4a8576d..201ae4b 100644
414 414
415 #define CTL_SPECIAL "10.0.2.0" 415 #define CTL_SPECIAL "10.0.2.0"
416 #define CTL_LOCAL "10.0.2.15" 416 #define CTL_LOCAL "10.0.2.15"
417diff --git a/slirp/udp.c b/slirp/udp.c 417Index: git/slirp/udp.c
418index 8d3bdd2..e5f40cc 100644 418===================================================================
419--- a/slirp/udp.c 419--- git.orig/slirp/udp.c 2009-12-02 13:13:56.000000000 +0000
420+++ b/slirp/udp.c 420+++ git/slirp/udp.c 2010-01-14 15:55:40.000000000 +0000
421@@ -40,6 +40,7 @@ 421@@ -40,6 +40,7 @@
422 422
423 #include <slirp.h> 423 #include <slirp.h>
@@ -426,7 +426,7 @@ index 8d3bdd2..e5f40cc 100644
426 426
427 #ifdef LOG_ENABLED 427 #ifdef LOG_ENABLED
428 struct udpstat udpstat; 428 struct udpstat udpstat;
429@@ -153,6 +154,11 @@ udp_input(m, iphlen) 429@@ -153,6 +154,11 @@
430 goto bad; 430 goto bad;
431 } 431 }
432 432
@@ -438,11 +438,11 @@ index 8d3bdd2..e5f40cc 100644
438 if (slirp_restrict) 438 if (slirp_restrict)
439 goto bad; 439 goto bad;
440 440
441diff --git a/sysemu.h b/sysemu.h 441Index: git/sysemu.h
442index 57217c1..f0a48cd 100644 442===================================================================
443--- a/sysemu.h 443--- git.orig/sysemu.h 2009-12-02 13:13:56.000000000 +0000
444+++ b/sysemu.h 444+++ git/sysemu.h 2010-01-14 15:55:40.000000000 +0000
445@@ -96,6 +96,7 @@ extern int graphic_rotate; 445@@ -96,6 +96,7 @@
446 extern int no_quit; 446 extern int no_quit;
447 extern int semihosting_enabled; 447 extern int semihosting_enabled;
448 extern int old_param; 448 extern int old_param;
@@ -450,11 +450,10 @@ index 57217c1..f0a48cd 100644
450 extern const char *bootp_filename; 450 extern const char *bootp_filename;
451 451
452 #ifdef USE_KQEMU 452 #ifdef USE_KQEMU
453diff --git a/target-i386/beginend_funcs.sh b/target-i386/beginend_funcs.sh 453Index: git/target-i386/beginend_funcs.sh
454new file mode 100755 454===================================================================
455index 0000000..bdd7684 455--- /dev/null 1970-01-01 00:00:00.000000000 +0000
456--- /dev/null 456+++ git/target-i386/beginend_funcs.sh 2010-01-14 15:55:40.000000000 +0000
457+++ b/target-i386/beginend_funcs.sh
458@@ -0,0 +1,23 @@ 457@@ -0,0 +1,23 @@
459+#! /bin/sh 458+#! /bin/sh
460+# Copyright 2008 (C) Intel Corporation 459+# Copyright 2008 (C) Intel Corporation
@@ -479,11 +478,10 @@ index 0000000..bdd7684
479+echo -e MAGIC_MACRO\(glCallList\)\\n 478+echo -e MAGIC_MACRO\(glCallList\)\\n
480+echo -e MAGIC_MACRO\(glCallLists\)\\n 479+echo -e MAGIC_MACRO\(glCallLists\)\\n
481+echo -e MAGIC_MACRO\(glEdgeFlag{,v}\)\\n 480+echo -e MAGIC_MACRO\(glEdgeFlag{,v}\)\\n
482diff --git a/target-i386/ghash.c b/target-i386/ghash.c 481Index: git/target-i386/ghash.c
483new file mode 100644 482===================================================================
484index 0000000..1f0c380 483--- /dev/null 1970-01-01 00:00:00.000000000 +0000
485--- /dev/null 484+++ git/target-i386/ghash.c 2010-01-14 15:55:40.000000000 +0000
486+++ b/target-i386/ghash.c
487@@ -0,0 +1,347 @@ 485@@ -0,0 +1,347 @@
488+/* This is a modified and simplified version of original ghash.c */ 486+/* This is a modified and simplified version of original ghash.c */
489+ 487+
@@ -832,11 +830,10 @@ index 0000000..1f0c380
832+ hash_node = next; 830+ hash_node = next;
833+ } 831+ }
834+} 832+}
835diff --git a/target-i386/ghash.h b/target-i386/ghash.h 833Index: git/target-i386/ghash.h
836new file mode 100644 834===================================================================
837index 0000000..7f34436 835--- /dev/null 1970-01-01 00:00:00.000000000 +0000
838--- /dev/null 836+++ git/target-i386/ghash.h 2010-01-14 15:55:40.000000000 +0000
839+++ b/target-i386/ghash.h
840@@ -0,0 +1,59 @@ 837@@ -0,0 +1,59 @@
841+/* This is a modified and simplified version of original ghash.h */ 838+/* This is a modified and simplified version of original ghash.h */
842+ 839+
@@ -897,11 +894,10 @@ index 0000000..7f34436
897+ 894+
898+#endif /* __SIMPLE_HASH_H__ */ 895+#endif /* __SIMPLE_HASH_H__ */
899+ 896+
900diff --git a/target-i386/gl_func_perso.h b/target-i386/gl_func_perso.h 897Index: git/target-i386/gl_func_perso.h
901new file mode 100644 898===================================================================
902index 0000000..401c0a8 899--- /dev/null 1970-01-01 00:00:00.000000000 +0000
903--- /dev/null 900+++ git/target-i386/gl_func_perso.h 2010-01-14 15:55:40.000000000 +0000
904+++ b/target-i386/gl_func_perso.h
905@@ -0,0 +1,135 @@ 901@@ -0,0 +1,135 @@
906+/* 902+/*
907+ * Hand-implemented GL/GLX API 903+ * Hand-implemented GL/GLX API
@@ -1038,11 +1034,11 @@ index 0000000..401c0a8
1038+MAGIC_MACRO(_glGetSelectBuffer_fake), 1034+MAGIC_MACRO(_glGetSelectBuffer_fake),
1039+MAGIC_MACRO(_glFeedbackBuffer_fake), 1035+MAGIC_MACRO(_glFeedbackBuffer_fake),
1040+MAGIC_MACRO(_glGetFeedbackBuffer_fake), 1036+MAGIC_MACRO(_glGetFeedbackBuffer_fake),
1041diff --git a/target-i386/helper.c b/target-i386/helper.c 1037Index: git/target-i386/helper.c
1042index e714994..7354220 100644 1038===================================================================
1043--- a/target-i386/helper.c 1039--- git.orig/target-i386/helper.c 2009-12-02 13:13:56.000000000 +0000
1044+++ b/target-i386/helper.c 1040+++ git/target-i386/helper.c 2010-01-14 15:55:40.000000000 +0000
1045@@ -1320,7 +1320,7 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) 1041@@ -1326,7 +1326,7 @@
1046 } 1042 }
1047 1043
1048 page_offset = (addr & TARGET_PAGE_MASK) & (page_size - 1); 1044 page_offset = (addr & TARGET_PAGE_MASK) & (page_size - 1);
@@ -1051,23 +1047,22 @@ index e714994..7354220 100644
1051 return paddr; 1047 return paddr;
1052 } 1048 }
1053 1049
1054diff --git a/target-i386/helper.h b/target-i386/helper.h 1050Index: git/target-i386/helper.h
1055index 0c36783..b247b35 100644 1051===================================================================
1056--- a/target-i386/helper.h 1052--- git.orig/target-i386/helper.h 2009-12-02 13:13:56.000000000 +0000
1057+++ b/target-i386/helper.h 1053+++ git/target-i386/helper.h 2010-01-14 15:55:40.000000000 +0000
1058@@ -214,4 +214,6 @@ DEF_HELPER_2(rclq, tl, tl, tl) 1054@@ -214,4 +214,6 @@
1059 DEF_HELPER_2(rcrq, tl, tl, tl) 1055 DEF_HELPER_2(rcrq, tl, tl, tl)
1060 #endif 1056 #endif
1061 1057
1062+DEF_HELPER_0(opengl, void) 1058+DEF_HELPER_0(opengl, void)
1063+ 1059+
1064 #include "def-helper.h" 1060 #include "def-helper.h"
1065diff --git a/target-i386/helper_opengl.c b/target-i386/helper_opengl.c 1061Index: git/target-i386/helper_opengl.c
1066new file mode 100644 1062===================================================================
1067index 0000000..f83d02b 1063--- /dev/null 1970-01-01 00:00:00.000000000 +0000
1068--- /dev/null 1064+++ git/target-i386/helper_opengl.c 2010-01-14 16:36:59.000000000 +0000
1069+++ b/target-i386/helper_opengl.c 1065@@ -0,0 +1,1207 @@
1070@@ -0,0 +1,1205 @@
1071+/* 1066+/*
1072+ * Host-side implementation of GL/GLX API 1067+ * Host-side implementation of GL/GLX API
1073+ * 1068+ *
@@ -2041,6 +2036,8 @@ index 0000000..f83d02b
2041+ target_ret_string, in_args, in_args_size); 2036+ target_ret_string, in_args, in_args_size);
2042+} 2037+}
2043+ 2038+
2039+#define env first_cpu
2040+
2044+void helper_opengl(void) 2041+void helper_opengl(void)
2045+{ 2042+{
2046+ doing_opengl = 1; 2043+ doing_opengl = 1;
@@ -2273,11 +2270,11 @@ index 0000000..f83d02b
2273+ io_register(); 2270+ io_register();
2274+} 2271+}
2275+#endif 2272+#endif
2276diff --git a/target-i386/kvm.c b/target-i386/kvm.c 2273Index: git/target-i386/kvm.c
2277index eb61598..5c6fbae 100644 2274===================================================================
2278--- a/target-i386/kvm.c 2275--- git.orig/target-i386/kvm.c 2009-12-02 13:13:56.000000000 +0000
2279+++ b/target-i386/kvm.c 2276+++ git/target-i386/kvm.c 2010-01-14 15:55:40.000000000 +0000
2280@@ -480,7 +480,7 @@ static int kvm_get_fpu(CPUState *env) 2277@@ -480,7 +480,7 @@
2281 return 0; 2278 return 0;
2282 } 2279 }
2283 2280
@@ -2286,11 +2283,10 @@ index eb61598..5c6fbae 100644
2286 { 2283 {
2287 struct kvm_sregs sregs; 2284 struct kvm_sregs sregs;
2288 uint32_t hflags; 2285 uint32_t hflags;
2289diff --git a/target-i386/mesa_enums.c b/target-i386/mesa_enums.c 2286Index: git/target-i386/mesa_enums.c
2290new file mode 100644 2287===================================================================
2291index 0000000..61a540c 2288--- /dev/null 1970-01-01 00:00:00.000000000 +0000
2292--- /dev/null 2289+++ git/target-i386/mesa_enums.c 2010-01-14 15:55:40.000000000 +0000
2293+++ b/target-i386/mesa_enums.c
2294@@ -0,0 +1,4890 @@ 2290@@ -0,0 +1,4890 @@
2295+/* DO NOT EDIT - This file generated automatically by gl_enums.py (from Mesa) script */ 2291+/* DO NOT EDIT - This file generated automatically by gl_enums.py (from Mesa) script */
2296+ 2292+
@@ -7182,11 +7178,10 @@ index 0000000..61a540c
7182+} 7178+}
7183+ 7179+
7184+ 7180+
7185diff --git a/target-i386/mesa_get.c b/target-i386/mesa_get.c 7181Index: git/target-i386/mesa_get.c
7186new file mode 100644 7182===================================================================
7187index 0000000..3b4c9aa 7183--- /dev/null 1970-01-01 00:00:00.000000000 +0000
7188--- /dev/null 7184+++ git/target-i386/mesa_get.c 2010-01-14 15:55:40.000000000 +0000
7189+++ b/target-i386/mesa_get.c
7190@@ -0,0 +1,5563 @@ 7185@@ -0,0 +1,5563 @@
7191+ 7186+
7192+/*** 7187+/***
@@ -12751,11 +12746,10 @@ index 0000000..3b4c9aa
12751+ params[i] = (GLdouble) values[i]; 12746+ params[i] = (GLdouble) values[i];
12752+} 12747+}
12753+ 12748+
12754diff --git a/target-i386/mesa_gl.h b/target-i386/mesa_gl.h 12749Index: git/target-i386/mesa_gl.h
12755new file mode 100644 12750===================================================================
12756index 0000000..dc2047c 12751--- /dev/null 1970-01-01 00:00:00.000000000 +0000
12757--- /dev/null 12752+++ git/target-i386/mesa_gl.h 2010-01-14 15:55:40.000000000 +0000
12758+++ b/target-i386/mesa_gl.h
12759@@ -0,0 +1,2251 @@ 12753@@ -0,0 +1,2251 @@
12760+/* 12754+/*
12761+ * Mesa 3-D graphics library 12755+ * Mesa 3-D graphics library
@@ -15008,11 +15002,10 @@ index 0000000..dc2047c
15008+#endif 15002+#endif
15009+ 15003+
15010+#endif /* __gl_h_ */ 15004+#endif /* __gl_h_ */
15011diff --git a/target-i386/mesa_glext.h b/target-i386/mesa_glext.h 15005Index: git/target-i386/mesa_glext.h
15012new file mode 100644 15006===================================================================
15013index 0000000..f8cf2d2 15007--- /dev/null 1970-01-01 00:00:00.000000000 +0000
15014--- /dev/null 15008+++ git/target-i386/mesa_glext.h 2010-01-14 15:55:40.000000000 +0000
15015+++ b/target-i386/mesa_glext.h
15016@@ -0,0 +1,7279 @@ 15009@@ -0,0 +1,7279 @@
15017+#ifndef __glext_h_ 15010+#ifndef __glext_h_
15018+#define __glext_h_ 15011+#define __glext_h_
@@ -22293,11 +22286,10 @@ index 0000000..f8cf2d2
22293+ 22286+
22294+/* ERO */ 22287+/* ERO */
22295+GLAPI void GLAPIENTRY fake_gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *data); 22288+GLAPI void GLAPIENTRY fake_gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *data);
22296diff --git a/target-i386/mesa_glu.h b/target-i386/mesa_glu.h 22289Index: git/target-i386/mesa_glu.h
22297new file mode 100644 22290===================================================================
22298index 0000000..f1a704b 22291--- /dev/null 1970-01-01 00:00:00.000000000 +0000
22299--- /dev/null 22292+++ git/target-i386/mesa_glu.h 2010-01-14 15:55:40.000000000 +0000
22300+++ b/target-i386/mesa_glu.h
22301@@ -0,0 +1,354 @@ 22293@@ -0,0 +1,354 @@
22302+/* 22294+/*
22303+** License Applicability. Except to the extent portions of this file are 22295+** License Applicability. Except to the extent portions of this file are
@@ -22653,11 +22645,10 @@ index 0000000..f1a704b
22653+#endif 22645+#endif
22654+ 22646+
22655+#endif /* __glu_h__ */ 22647+#endif /* __glu_h__ */
22656diff --git a/target-i386/mesa_glx.h b/target-i386/mesa_glx.h 22648Index: git/target-i386/mesa_glx.h
22657new file mode 100644 22649===================================================================
22658index 0000000..2930461 22650--- /dev/null 1970-01-01 00:00:00.000000000 +0000
22659--- /dev/null 22651+++ git/target-i386/mesa_glx.h 2010-01-14 15:55:40.000000000 +0000
22660+++ b/target-i386/mesa_glx.h
22661@@ -0,0 +1,510 @@ 22652@@ -0,0 +1,510 @@
22662+/* 22653+/*
22663+ * Mesa 3-D graphics library 22654+ * Mesa 3-D graphics library
@@ -23169,11 +23160,10 @@ index 0000000..2930461
23169+#endif 23160+#endif
23170+ 23161+
23171+#endif 23162+#endif
23172diff --git a/target-i386/mesa_glxext.h b/target-i386/mesa_glxext.h 23163Index: git/target-i386/mesa_glxext.h
23173new file mode 100644 23164===================================================================
23174index 0000000..0f66df6 23165--- /dev/null 1970-01-01 00:00:00.000000000 +0000
23175--- /dev/null 23166+++ git/target-i386/mesa_glxext.h 2010-01-14 15:55:40.000000000 +0000
23176+++ b/target-i386/mesa_glxext.h
23177@@ -0,0 +1,785 @@ 23167@@ -0,0 +1,785 @@
23178+#ifndef __glxext_h_ 23168+#ifndef __glxext_h_
23179+#define __glxext_h_ 23169+#define __glxext_h_
@@ -23960,11 +23950,10 @@ index 0000000..0f66df6
23960+#endif 23950+#endif
23961+ 23951+
23962+#endif 23952+#endif
23963diff --git a/target-i386/mesa_mipmap.c b/target-i386/mesa_mipmap.c 23953Index: git/target-i386/mesa_mipmap.c
23964new file mode 100644 23954===================================================================
23965index 0000000..f623ea1 23955--- /dev/null 1970-01-01 00:00:00.000000000 +0000
23966--- /dev/null 23956+++ git/target-i386/mesa_mipmap.c 2010-01-14 15:55:40.000000000 +0000
23967+++ b/target-i386/mesa_mipmap.c
23968@@ -0,0 +1,824 @@ 23957@@ -0,0 +1,824 @@
23969+ 23958+
23970+/* 23959+/*
@@ -24790,11 +24779,10 @@ index 0000000..f623ea1
24790+ 24779+
24791+ return retval; 24780+ return retval;
24792+} 24781+}
24793diff --git a/target-i386/opengl_exec.c b/target-i386/opengl_exec.c 24782Index: git/target-i386/opengl_exec.c
24794new file mode 100644 24783===================================================================
24795index 0000000..4a69b9b 24784--- /dev/null 1970-01-01 00:00:00.000000000 +0000
24796--- /dev/null 24785+++ git/target-i386/opengl_exec.c 2010-01-14 16:34:53.000000000 +0000
24797+++ b/target-i386/opengl_exec.c
24798@@ -0,0 +1,3931 @@ 24786@@ -0,0 +1,3931 @@
24799+/* 24787+/*
24800+ * Host-side implementation of GL/GLX API 24788+ * Host-side implementation of GL/GLX API
@@ -28727,11 +28715,10 @@ index 0000000..4a69b9b
28727+ 28715+
28728+ return ret_int; 28716+ return ret_int;
28729+} 28717+}
28730diff --git a/target-i386/opengl_func.h b/target-i386/opengl_func.h 28718Index: git/target-i386/opengl_func.h
28731new file mode 100644 28719===================================================================
28732index 0000000..d1b50fd 28720--- /dev/null 1970-01-01 00:00:00.000000000 +0000
28733--- /dev/null 28721+++ git/target-i386/opengl_func.h 2010-01-14 15:55:40.000000000 +0000
28734+++ b/target-i386/opengl_func.h
28735@@ -0,0 +1,1108 @@ 28722@@ -0,0 +1,1108 @@
28736+/* 28723+/*
28737+ * Main header for both host and guest sides 28724+ * Main header for both host and guest sides
@@ -29841,11 +29828,10 @@ index 0000000..d1b50fd
29841+#error Unsupported ABI 29828+#error Unsupported ABI
29842+#endif 29829+#endif
29843+#endif 29830+#endif
29844diff --git a/target-i386/opengl_player.c b/target-i386/opengl_player.c 29831Index: git/target-i386/opengl_player.c
29845new file mode 100644 29832===================================================================
29846index 0000000..f071b7f 29833--- /dev/null 1970-01-01 00:00:00.000000000 +0000
29847--- /dev/null 29834+++ git/target-i386/opengl_player.c 2010-01-14 15:55:40.000000000 +0000
29848+++ b/target-i386/opengl_player.c
29849@@ -0,0 +1,1461 @@ 29835@@ -0,0 +1,1461 @@
29850+/* 29836+/*
29851+ * Plays a sequence of OpenGL calls recorded either under qemu or with opengl_server 29837+ * Plays a sequence of OpenGL calls recorded either under qemu or with opengl_server
@@ -31308,11 +31294,10 @@ index 0000000..f071b7f
31308+ } 31294+ }
31309+ return 0; 31295+ return 0;
31310+} 31296+}
31311diff --git a/target-i386/opengl_server.c b/target-i386/opengl_server.c 31297Index: git/target-i386/opengl_server.c
31312new file mode 100644 31298===================================================================
31313index 0000000..80060ba 31299--- /dev/null 1970-01-01 00:00:00.000000000 +0000
31314--- /dev/null 31300+++ git/target-i386/opengl_server.c 2010-01-14 15:55:40.000000000 +0000
31315+++ b/target-i386/opengl_server.c
31316@@ -0,0 +1,826 @@ 31301@@ -0,0 +1,826 @@
31317+/* 31302+/*
31318+ * TCP/IP OpenGL server 31303+ * TCP/IP OpenGL server
@@ -32140,11 +32125,10 @@ index 0000000..80060ba
32140+ 32125+
32141+ return 0; 32126+ return 0;
32142+} 32127+}
32143diff --git a/target-i386/opengl_utils.h b/target-i386/opengl_utils.h 32128Index: git/target-i386/opengl_utils.h
32144new file mode 100644 32129===================================================================
32145index 0000000..01077ff 32130--- /dev/null 1970-01-01 00:00:00.000000000 +0000
32146--- /dev/null 32131+++ git/target-i386/opengl_utils.h 2010-01-14 15:55:40.000000000 +0000
32147+++ b/target-i386/opengl_utils.h
32148@@ -0,0 +1,453 @@ 32132@@ -0,0 +1,453 @@
32149+/* 32133+/*
32150+ * Functions used by host & client sides 32134+ * Functions used by host & client sides
@@ -32599,11 +32583,10 @@ index 0000000..01077ff
32599+} 32583+}
32600+ 32584+
32601+#endif 32585+#endif
32602diff --git a/target-i386/parse_gl_h.c b/target-i386/parse_gl_h.c 32586Index: git/target-i386/parse_gl_h.c
32603new file mode 100644 32587===================================================================
32604index 0000000..f1e93ec 32588--- /dev/null 1970-01-01 00:00:00.000000000 +0000
32605--- /dev/null 32589+++ git/target-i386/parse_gl_h.c 2010-01-14 15:55:40.000000000 +0000
32606+++ b/target-i386/parse_gl_h.c
32607@@ -0,0 +1,1496 @@ 32590@@ -0,0 +1,1496 @@
32608+/* 32591+/*
32609+ * Parse gl.h et glx.h to auto-generate source code 32592+ * Parse gl.h et glx.h to auto-generate source code
@@ -34101,11 +34084,10 @@ index 0000000..f1e93ec
34101+ 34084+
34102+ return 0; 34085+ return 0;
34103+} 34086+}
34104diff --git a/target-i386/parse_mesa_get_c.c b/target-i386/parse_mesa_get_c.c 34087Index: git/target-i386/parse_mesa_get_c.c
34105new file mode 100644 34088===================================================================
34106index 0000000..b214358 34089--- /dev/null 1970-01-01 00:00:00.000000000 +0000
34107--- /dev/null 34090+++ git/target-i386/parse_mesa_get_c.c 2010-01-14 15:55:40.000000000 +0000
34108+++ b/target-i386/parse_mesa_get_c.c
34109@@ -0,0 +1,225 @@ 34091@@ -0,0 +1,225 @@
34110+/* 34092+/*
34111+ * Parse the "get.c" from mesa source tree to generate "glgetv_cst.h" 34093+ * Parse the "get.c" from mesa source tree to generate "glgetv_cst.h"
@@ -34332,11 +34314,11 @@ index 0000000..b214358
34332+ fclose(outf); 34314+ fclose(outf);
34333+ return 0; 34315+ return 0;
34334+} 34316+}
34335diff --git a/target-i386/translate.c b/target-i386/translate.c 34317Index: git/target-i386/translate.c
34336index 4b894fd..10920a7 100644 34318===================================================================
34337--- a/target-i386/translate.c 34319--- git.orig/target-i386/translate.c 2009-12-02 13:13:56.000000000 +0000
34338+++ b/target-i386/translate.c 34320+++ git/target-i386/translate.c 2010-01-14 15:55:40.000000000 +0000
34339@@ -741,6 +741,8 @@ static void gen_check_io(DisasContext *s, int ot, target_ulong cur_eip, 34321@@ -741,6 +741,8 @@
34340 int state_saved; 34322 int state_saved;
34341 target_ulong next_eip; 34323 target_ulong next_eip;
34342 34324
@@ -34345,7 +34327,7 @@ index 4b894fd..10920a7 100644
34345 state_saved = 0; 34327 state_saved = 0;
34346 if (s->pe && (s->cpl > s->iopl || s->vm86)) { 34328 if (s->pe && (s->cpl > s->iopl || s->vm86)) {
34347 if (s->cc_op != CC_OP_DYNAMIC) 34329 if (s->cc_op != CC_OP_DYNAMIC)
34348@@ -2592,11 +2594,18 @@ static void gen_exception(DisasContext *s, int trapno, target_ulong cur_eip) 34330@@ -2592,11 +2594,18 @@
34349 s->is_jmp = 3; 34331 s->is_jmp = 3;
34350 } 34332 }
34351 34333
@@ -34364,11 +34346,11 @@ index 4b894fd..10920a7 100644
34364 if (s->cc_op != CC_OP_DYNAMIC) 34346 if (s->cc_op != CC_OP_DYNAMIC)
34365 gen_op_set_cc_op(s->cc_op); 34347 gen_op_set_cc_op(s->cc_op);
34366 gen_jmp_im(cur_eip); 34348 gen_jmp_im(cur_eip);
34367diff --git a/vl.c b/vl.c 34349Index: git/vl.c
34368index 56623fb..095da54 100644 34350===================================================================
34369--- a/vl.c 34351--- git.orig/vl.c 2009-12-02 13:13:56.000000000 +0000
34370+++ b/vl.c 34352+++ git/vl.c 2010-01-14 15:55:40.000000000 +0000
34371@@ -245,6 +245,7 @@ int semihosting_enabled = 0; 34353@@ -245,6 +245,7 @@
34372 #ifdef TARGET_ARM 34354 #ifdef TARGET_ARM
34373 int old_param = 0; 34355 int old_param = 0;
34374 #endif 34356 #endif
@@ -34376,7 +34358,7 @@ index 56623fb..095da54 100644
34376 const char *qemu_name; 34358 const char *qemu_name;
34377 int alt_grab = 0; 34359 int alt_grab = 0;
34378 #if defined(TARGET_SPARC) || defined(TARGET_PPC) 34360 #if defined(TARGET_SPARC) || defined(TARGET_PPC)
34379@@ -253,6 +254,7 @@ const char *prom_envs[MAX_PROM_ENVS]; 34361@@ -253,6 +254,7 @@
34380 #endif 34362 #endif
34381 int nb_drives_opt; 34363 int nb_drives_opt;
34382 struct drive_opt drives_opt[MAX_DRIVES]; 34364 struct drive_opt drives_opt[MAX_DRIVES];
@@ -34384,7 +34366,7 @@ index 56623fb..095da54 100644
34384 34366
34385 static CPUState *cur_cpu; 34367 static CPUState *cur_cpu;
34386 static CPUState *next_cpu; 34368 static CPUState *next_cpu;
34387@@ -4208,12 +4210,14 @@ enum { 34369@@ -4208,12 +4210,14 @@
34388 QEMU_OPTION_clock, 34370 QEMU_OPTION_clock,
34389 QEMU_OPTION_localtime, 34371 QEMU_OPTION_localtime,
34390 QEMU_OPTION_startdate, 34372 QEMU_OPTION_startdate,
@@ -34399,7 +34381,7 @@ index 56623fb..095da54 100644
34399 QEMU_OPTION_tb_size, 34381 QEMU_OPTION_tb_size,
34400 QEMU_OPTION_incoming, 34382 QEMU_OPTION_incoming,
34401 QEMU_OPTION_chroot, 34383 QEMU_OPTION_chroot,
34402@@ -4344,6 +4348,8 @@ static const QEMUOption qemu_options[] = { 34384@@ -4344,6 +4348,8 @@
34403 #if defined(TARGET_ARM) 34385 #if defined(TARGET_ARM)
34404 { "old-param", 0, QEMU_OPTION_old_param }, 34386 { "old-param", 0, QEMU_OPTION_old_param },
34405 #endif 34387 #endif
@@ -34408,7 +34390,7 @@ index 56623fb..095da54 100644
34408 { "tb-size", HAS_ARG, QEMU_OPTION_tb_size }, 34390 { "tb-size", HAS_ARG, QEMU_OPTION_tb_size },
34409 { "incoming", HAS_ARG, QEMU_OPTION_incoming }, 34391 { "incoming", HAS_ARG, QEMU_OPTION_incoming },
34410 { "chroot", HAS_ARG, QEMU_OPTION_chroot }, 34392 { "chroot", HAS_ARG, QEMU_OPTION_chroot },
34411@@ -4496,22 +4502,17 @@ static void select_vgahw (const char *p) 34393@@ -4496,22 +4502,17 @@
34412 { 34394 {
34413 const char *opts; 34395 const char *opts;
34414 34396
@@ -34435,7 +34417,7 @@ index 56623fb..095da54 100644
34435 } else { 34417 } else {
34436 invalid_vga: 34418 invalid_vga:
34437 fprintf(stderr, "Unknown vga type: %s\n", p); 34419 fprintf(stderr, "Unknown vga type: %s\n", p);
34438@@ -5220,6 +5221,9 @@ int main(int argc, char **argv, char **envp) 34420@@ -5220,6 +5221,9 @@
34439 old_param = 1; 34421 old_param = 1;
34440 break; 34422 break;
34441 #endif 34423 #endif
@@ -34445,7 +34427,7 @@ index 56623fb..095da54 100644
34445 case QEMU_OPTION_clock: 34427 case QEMU_OPTION_clock:
34446 configure_alarms(optarg); 34428 configure_alarms(optarg);
34447 break; 34429 break;
34448@@ -5261,6 +5265,11 @@ int main(int argc, char **argv, char **envp) 34430@@ -5261,6 +5265,11 @@
34449 } 34431 }
34450 } 34432 }
34451 break; 34433 break;
@@ -34457,7 +34439,7 @@ index 56623fb..095da54 100644
34457 case QEMU_OPTION_tb_size: 34439 case QEMU_OPTION_tb_size:
34458 tb_size = strtol(optarg, NULL, 0); 34440 tb_size = strtol(optarg, NULL, 0);
34459 if (tb_size < 0) 34441 if (tb_size < 0)
34460@@ -5545,6 +5554,17 @@ int main(int argc, char **argv, char **envp) 34442@@ -5545,6 +5554,17 @@
34461 exit(1); 34443 exit(1);
34462 } 34444 }
34463 } 34445 }
diff --git a/meta/packages/qemu/qemu_git.bb b/meta/packages/qemu/qemu_git.bb
index 057543530f..c8383f4afd 100644
--- a/meta/packages/qemu/qemu_git.bb
+++ b/meta/packages/qemu/qemu_git.bb
@@ -1,7 +1,7 @@
1LICENSE = "GPL" 1LICENSE = "GPL"
2DEPENDS = "zlib" 2DEPENDS = "zlib"
3PV = "0.10.6+git${SRCREV}" 3PV = "0.10.6+git${SRCREV}"
4PR = "r0" 4PR = "r1"
5 5
6FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/" 6FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/"
7 7