diff options
author | Roy.Li <rongqing.li@windriver.com> | 2012-08-08 13:35:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 14:26:38 +0100 |
commit | 5c96735dbc9e77f2b5dd86f532aa467d78e553e2 (patch) | |
tree | 395e09dc3e8b46da666490d67613d5bff67f8bf5 /meta/recipes-devtools/qemu | |
parent | 0452d8b2a066688c2c36135be83186196550fbb2 (diff) | |
download | poky-5c96735dbc9e77f2b5dd86f532aa467d78e553e2.tar.gz |
qemu: backport patch to fix pl031 RTC
Intergrate the patch from:
http://repo.or.cz/w/qemu.git/commit/13a16f1d91fc7a46b65b22a33f6ffea1b826a097
(From OE-Core rev: a2a47ebfc3c8afa93bbf28e4a243538ea61079ac)
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-0.15.1/hw-pl031-Actually-raise-interrupt-on-timer-expiry.patch | 41 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_0.15.1.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-0.15.1/hw-pl031-Actually-raise-interrupt-on-timer-expiry.patch b/meta/recipes-devtools/qemu/qemu-0.15.1/hw-pl031-Actually-raise-interrupt-on-timer-expiry.patch new file mode 100644 index 0000000000..2ccc663d75 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu-0.15.1/hw-pl031-Actually-raise-interrupt-on-timer-expiry.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Backport | ||
2 | commit 13a16f1d91fc7a46b65b22a33f6ffea1b826a097 | ||
3 | in git://git.qemu.org/qemu.git master | ||
4 | |||
5 | From 13a16f1d91fc7a46b65b22a33f6ffea1b826a097 Mon Sep 17 00:00:00 2001 | ||
6 | From: Peter Maydell <peter.maydell@linaro.org> | ||
7 | Date: Thu, 16 Feb 2012 09:56:10 +0000 | ||
8 | Subject: [PATCH] hw/pl031: Actually raise interrupt on timer expiry | ||
9 | MIME-Version: 1.0 | ||
10 | Content-Type: text/plain; charset=UTF-8 | ||
11 | Content-Transfer-Encoding: 8bit | ||
12 | |||
13 | Fix a typo in pl031_interrupt() which meant we were setting a bit | ||
14 | in the interrupt mask rather than the interrupt status register | ||
15 | and thus not actually raising an interrupt. This fix allows the | ||
16 | rtctest program from the kernel's Documentation/rtc.txt to pass | ||
17 | rather than hanging. | ||
18 | |||
19 | Reported-by: Daniel Forsgren <daniel.forsgren@enea.com> | ||
20 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | ||
21 | Acked-by: Andreas Färber <afaerber@suse.de> | ||
22 | --- | ||
23 | hw/pl031.c | 2 +- | ||
24 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
25 | |||
26 | diff --git a/hw/pl031.c b/hw/pl031.c | ||
27 | index 05b5b11..69abc4f 100644 | ||
28 | --- a/hw/pl031.c | ||
29 | +++ b/hw/pl031.c | ||
30 | @@ -76,7 +76,7 @@ static void pl031_interrupt(void * opaque) | ||
31 | { | ||
32 | pl031_state *s = (pl031_state *)opaque; | ||
33 | |||
34 | - s->im = 1; | ||
35 | + s->is = 1; | ||
36 | DPRINTF("Alarm raised\n"); | ||
37 | pl031_update(s); | ||
38 | } | ||
39 | -- | ||
40 | 1.7.4.1 | ||
41 | |||
diff --git a/meta/recipes-devtools/qemu/qemu_0.15.1.bb b/meta/recipes-devtools/qemu/qemu_0.15.1.bb index 7b862ed0dd..a914bcfad4 100644 --- a/meta/recipes-devtools/qemu/qemu_0.15.1.bb +++ b/meta/recipes-devtools/qemu/qemu_0.15.1.bb | |||
@@ -22,6 +22,7 @@ SRC_URI = "\ | |||
22 | file://dummy-gl-config.patch \ | 22 | file://dummy-gl-config.patch \ |
23 | file://0001-ppc64-Fix-linker-script.patch \ | 23 | file://0001-ppc64-Fix-linker-script.patch \ |
24 | file://ppc-s500-set-invalid-mask.patch \ | 24 | file://ppc-s500-set-invalid-mask.patch \ |
25 | file://hw-pl031-Actually-raise-interrupt-on-timer-expiry.patch \ | ||
25 | " | 26 | " |
26 | 27 | ||
27 | # Only use the GL passthrough patches for native/nativesdk versions | 28 | # Only use the GL passthrough patches for native/nativesdk versions |