From 677d033224a5fd2893347f427ebad302ca95b508 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 5 Oct 2011 12:38:27 -0700 Subject: qemu-0.15: Add recipe and forward port patches from 0.14 (From OE-Core rev: fc63229d9cd2e5061cab0686aba4d18bc3fb4e4f) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../qemu/qemu-0.15.0/arm-bgr.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu-0.15.0/arm-bgr.patch (limited to 'meta/recipes-devtools/qemu/qemu-0.15.0/arm-bgr.patch') diff --git a/meta/recipes-devtools/qemu/qemu-0.15.0/arm-bgr.patch b/meta/recipes-devtools/qemu/qemu-0.15.0/arm-bgr.patch new file mode 100644 index 0000000000..3b460d04ce --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu-0.15.0/arm-bgr.patch @@ -0,0 +1,30 @@ +After kernel commit: + +http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-3.0/commit/?h=meta&id=9728c1b6a724daefc413b44e10253cdbb5e06d08 + +It appears that the emulated colours in qemu are incorrect and that +the red and blue channels are reversed. This patch reverses that logic +so the colours are correctly displayed on the versatile platform which +doesn't support the BGR bit. + +RP 16/9/2011 + +Upstream-status: Pending + +Index: qemu-0.14.0/hw/pl110.c +=================================================================== +--- qemu-0.14.0.orig/hw/pl110.c 2011-09-16 14:45:34.228668514 +0100 ++++ qemu-0.14.0/hw/pl110.c 2011-09-16 15:17:22.458671206 +0100 +@@ -141,7 +141,11 @@ + fprintf(stderr, "pl110: Bad color depth\n"); + exit(1); + } +- if (s->cr & PL110_CR_BGR) ++ ++ if (s->versatile && s->bpp == BPP_16) ++ /* Code assumes BPP_16 == 565 and BGR is never set on the versatile in 565 mode */ ++ bpp_offset = 0; ++ else if (s->cr & PL110_CR_BGR) + bpp_offset = 0; + else + bpp_offset = 18; -- cgit v1.2.3-54-g00ecf