diff options
author | Juergen Lock <nox@FreeBSD.org> | 2007-08-09 20:03:30 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2007-08-09 20:03:30 +0000 |
commit | d79579befe964dd920b81c6ee0845f538979fdb6 (patch) | |
tree | 6f1c357017d68118379d28c20b460cee1e316ac3 /emulators/qemu-devel | |
parent | Update to 0.22. (diff) |
- Update to 20070802 snapshot
(longer) log is at:
http://people.freebsd.org/~nox/qemu/qemu-devel-log-20070802.txt
Notes
Notes:
svn path=/head/; revision=197396
Diffstat (limited to 'emulators/qemu-devel')
-rw-r--r-- | emulators/qemu-devel/Makefile | 4 | ||||
-rw-r--r-- | emulators/qemu-devel/distinfo | 6 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-90_security | 23 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-ac | 12 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-bt | 30 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-hw-pxa2xx_gpio.c | 11 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-vl.c-ppbus | 4 |
7 files changed, 53 insertions, 37 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile index b538e9aeb682..8aa2fdd5bfc1 100644 --- a/emulators/qemu-devel/Makefile +++ b/emulators/qemu-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= qemu -PORTVERSION= 0.9.0s.20070702 +PORTVERSION= 0.9.0s.20070802 CATEGORIES= emulators MASTER_SITES= http://qemu.org/:release \ http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \ @@ -15,7 +15,7 @@ MASTER_SITES= http://qemu.org/:release \ http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \ http://people.freebsd.org/~maho/qemu/:misc PKGNAMESUFFIX= -devel -DISTNAME= ${PORTNAME}-snapshot-2007-07-02_05 +DISTNAME= ${PORTNAME}-snapshot-2007-08-02_05 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot DIST_SUBDIR= qemu EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} diff --git a/emulators/qemu-devel/distinfo b/emulators/qemu-devel/distinfo index 9f7a2d9fac62..5cd7bc21eced 100644 --- a/emulators/qemu-devel/distinfo +++ b/emulators/qemu-devel/distinfo @@ -1,6 +1,6 @@ -MD5 (qemu/qemu-snapshot-2007-07-02_05.tar.bz2) = 624b513bbd86e0c7529344584639fba1 -SHA256 (qemu/qemu-snapshot-2007-07-02_05.tar.bz2) = 62474848fda0dacb1c6238b33b6b272e49dfa3821352ec57f38388246e0aa8c2 -SIZE (qemu/qemu-snapshot-2007-07-02_05.tar.bz2) = 2003505 +MD5 (qemu/qemu-snapshot-2007-08-02_05.tar.bz2) = 35332948d2a3647c4b29b27c9fc9b5a5 +SHA256 (qemu/qemu-snapshot-2007-08-02_05.tar.bz2) = b3931bf1d3787cf854b2687bd8bd568aba1d5bb2fde798189a56935cb502cd56 +SIZE (qemu/qemu-snapshot-2007-08-02_05.tar.bz2) = 2054955 MD5 (qemu/patch3_cirrus) = ebe7ed9fce804c49e024bc93bfdfc810 SHA256 (qemu/patch3_cirrus) = e862371834b7d895a896fbdb84fd9f70d17b5729a6f6789a48a61504fc941e11 SIZE (qemu/patch3_cirrus) = 8817 diff --git a/emulators/qemu-devel/files/patch-90_security b/emulators/qemu-devel/files/patch-90_security index b075556cb2f2..d7325507b557 100644 --- a/emulators/qemu-devel/files/patch-90_security +++ b/emulators/qemu-devel/files/patch-90_security @@ -1,7 +1,4 @@ Index: qemu-0.8.2/hw/cirrus_vga.c -=================================================================== ---- qemu-0.8.2.orig/hw/cirrus_vga.c 2007-04-20 06:05:59.000000000 +0300 -+++ qemu-0.8.2/hw/cirrus_vga.c 2007-04-20 06:05:59.000000000 +0300 @@ -217,6 +217,20 @@ #define CIRRUS_HOOK_NOT_HANDLED 0 #define CIRRUS_HOOK_HANDLED 1 @@ -23,7 +20,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c struct CirrusVGAState; typedef void (*cirrus_bitblt_rop_t) (struct CirrusVGAState *s, uint8_t * dst, const uint8_t * src, -@@ -589,7 +603,7 @@ static void cirrus_invalidate_region(Cir +@@ -636,7 +650,7 @@ for (y = 0; y < lines; y++) { off_cur = off_begin; @@ -32,7 +29,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c off_cur &= TARGET_PAGE_MASK; while (off_cur < off_cur_end) { cpu_physical_memory_set_dirty(s->vram_offset + off_cur); -@@ -604,7 +618,11 @@ static int cirrus_bitblt_common_patternc +@@ -651,7 +665,11 @@ { uint8_t *dst; @@ -45,7 +42,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c (*s->cirrus_rop) (s, dst, src, s->cirrus_blt_dstpitch, 0, s->cirrus_blt_width, s->cirrus_blt_height); -@@ -620,8 +638,11 @@ static int cirrus_bitblt_solidfill(Cirru +@@ -667,8 +685,11 @@ { cirrus_fill_t rop_func; @@ -58,7 +55,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c s->cirrus_blt_dstpitch, s->cirrus_blt_width, s->cirrus_blt_height); cirrus_invalidate_region(s, s->cirrus_blt_dstaddr, -@@ -640,8 +661,8 @@ static int cirrus_bitblt_solidfill(Cirru +@@ -687,8 +708,8 @@ static int cirrus_bitblt_videotovideo_patterncopy(CirrusVGAState * s) { return cirrus_bitblt_common_patterncopy(s, @@ -69,9 +66,9 @@ Index: qemu-0.8.2/hw/cirrus_vga.c } static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) -@@ -691,8 +712,10 @@ static void cirrus_do_copy(CirrusVGAStat +@@ -738,8 +759,10 @@ if (notify) - video_hw_update(); + vga_hw_update(); - (*s->cirrus_rop) (s, s->vram_ptr + s->cirrus_blt_dstaddr, - s->vram_ptr + s->cirrus_blt_srcaddr, @@ -82,7 +79,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c s->cirrus_blt_dstpitch, s->cirrus_blt_srcpitch, s->cirrus_blt_width, s->cirrus_blt_height); -@@ -718,8 +741,14 @@ static int cirrus_bitblt_videotovideo_co +@@ -765,8 +788,14 @@ s->cirrus_blt_srcaddr - s->start_addr, s->cirrus_blt_width, s->cirrus_blt_height); } else { @@ -99,7 +96,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c s->cirrus_blt_dstpitch, s->cirrus_blt_srcpitch, s->cirrus_blt_width, s->cirrus_blt_height); -@@ -751,8 +780,9 @@ static void cirrus_bitblt_cputovideo_nex +@@ -798,8 +827,9 @@ } else { /* at least one scan line */ do { @@ -111,7 +108,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c cirrus_invalidate_region(s, s->cirrus_blt_dstaddr, 0, s->cirrus_blt_width, 1); s->cirrus_blt_dstaddr += s->cirrus_blt_dstpitch; -@@ -1852,7 +1882,7 @@ static void cirrus_mem_writeb_mode4and5_ +@@ -1917,7 +1947,7 @@ unsigned val = mem_value; uint8_t *dst; @@ -120,7 +117,7 @@ Index: qemu-0.8.2/hw/cirrus_vga.c for (x = 0; x < 8; x++) { if (val & 0x80) { *dst = s->cirrus_shadow_gr1; -@@ -1875,7 +1905,7 @@ static void cirrus_mem_writeb_mode4and5_ +@@ -1940,7 +1970,7 @@ unsigned val = mem_value; uint8_t *dst; diff --git a/emulators/qemu-devel/files/patch-ac b/emulators/qemu-devel/files/patch-ac index 8adf3dbd9637..99821158695d 100644 --- a/emulators/qemu-devel/files/patch-ac +++ b/emulators/qemu-devel/files/patch-ac @@ -1,10 +1,10 @@ Index: qemu/configure -@@ -204,7 +204,7 @@ +@@ -540,7 +540,7 @@ + sdl_too_old=no if test -z "$sdl" ; then - --sdl_config="sdl-config" -+sdl_config="${SDL_CONFIG}" - sdl=no - sdl_static=no +- sdl_config="sdl-config" ++ sdl_config="${SDL_CONFIG}" + sdl=no + sdl_static=no diff --git a/emulators/qemu-devel/files/patch-bt b/emulators/qemu-devel/files/patch-bt index 2a51b7d00a8f..1280458f2c16 100644 --- a/emulators/qemu-devel/files/patch-bt +++ b/emulators/qemu-devel/files/patch-bt @@ -1,15 +1,17 @@ Index: qemu/vl.c -@@ -76,6 +76,9 @@ +@@ -76,6 +76,11 @@ #endif #endif #endif +#ifdef __FreeBSD__ ++#include <sys/param.h> +#include <sys/module.h> ++#include <sys/linker.h> +#endif #if defined(CONFIG_SLIRP) #include "libslirp.h" -@@ -1059,6 +1062,34 @@ +@@ -3407,6 +3410,34 @@ #endif /* CONFIG_SLIRP */ @@ -42,9 +44,9 @@ Index: qemu/vl.c +#endif + #if !defined(_WIN32) - #ifdef _BSD - static int tun_open(char *ifname, int ifname_size) -@@ -1067,11 +1098,55 @@ + + typedef struct TAPState { +@@ -3470,11 +3501,59 @@ char *dev; struct stat s; @@ -61,12 +63,14 @@ Index: qemu/vl.c + i = 0; +#endif + for (; i < 10; i++) { -+ if (i == -1) -+ strcpy(dname, "/dev/tap"); ++ if (*ifname) ++ snprintf(dname, sizeof dname, "/dev/%s", ifname); ++ else if (i == -1) ++ strcpy(dname, "/dev/tap"); + else -+ snprintf(dname, sizeof dname, "%s%d", -+ "/dev/tap", i); -+ fd = open(dname, O_RDWR); ++ snprintf(dname, sizeof dname, "%s%d", ++ "/dev/tap", i); ++ TFR(fd = open(dname, O_RDWR)); + if (fd >= 0) + break; + else if (errno == ENXIO || errno == ENOENT) { @@ -81,17 +85,19 @@ Index: qemu/vl.c + } + if (errno != ENOENT || ++enoentcount > 3) { + err = errno; -+ break; ++ break; + } + } else + err = errno; ++ if (*ifname) ++ break; + } + if (fd < 0) { + fprintf(stderr, "warning: could not open %s (%s): no virtual network emulation\n", dname, strerror(err)); + return -1; + } +#else - fd = open("/dev/tap", O_RDWR); + TFR(fd = open("/dev/tap", O_RDWR)); if (fd < 0) { - fprintf(stderr, "warning: could not open /dev/tap: no virtual network emulation\n"); + fprintf(stderr, "warning: could not open /dev/tap (%s): no virtual network emulation\n", strerror(errno)); diff --git a/emulators/qemu-devel/files/patch-hw-pxa2xx_gpio.c b/emulators/qemu-devel/files/patch-hw-pxa2xx_gpio.c new file mode 100644 index 000000000000..68dc9c54ace4 --- /dev/null +++ b/emulators/qemu-devel/files/patch-hw-pxa2xx_gpio.c @@ -0,0 +1,11 @@ +Index: qemu/hw/pxa2xx_gpio.c +@@ -152,6 +152,9 @@ + case GPDR: /* GPIO Pin-Direction registers */ + return s->dir[bank]; + ++ case GPSR: /* GPIO Pin-Output Set registers */ ++ return s->olevel[bank]; ++ + case GRER: /* GPIO Rising-Edge Detect Enable registers */ + return s->rising[bank]; + diff --git a/emulators/qemu-devel/files/patch-vl.c-ppbus b/emulators/qemu-devel/files/patch-vl.c-ppbus index 11ce2a60382c..28cf485493d2 100644 --- a/emulators/qemu-devel/files/patch-vl.c-ppbus +++ b/emulators/qemu-devel/files/patch-vl.c-ppbus @@ -1,8 +1,10 @@ Index: qemu/vl.c -@@ -78,6 +78,8 @@ +@@ -78,8 +78,10 @@ #endif #ifdef __FreeBSD__ + #include <sys/param.h> #include <sys/module.h> + #include <sys/linker.h> +#include <dev/ppbus/ppi.h> +#include <dev/ppbus/ppbconf.h> #endif |