diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/qemu/files/3f08ffb4a4741d147634761dc053ed386243a0de.patch | 42 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_1.4.0.bb | 2 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/files/3f08ffb4a4741d147634761dc053ed386243a0de.patch b/meta/recipes-devtools/qemu/files/3f08ffb4a4741d147634761dc053ed386243a0de.patch new file mode 100644 index 0000000000..6bcf3d1552 --- /dev/null +++ b/meta/recipes-devtools/qemu/files/3f08ffb4a4741d147634761dc053ed386243a0de.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | Upsteream-Status: Backport | ||
2 | |||
3 | [Appears to fix the random segfaults we were seeing in a variety of architectures: | ||
4 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=4216 ] | ||
5 | |||
6 | |||
7 | From: Yeongkyoon Lee <yeongkyoon.lee@samsung.com> | ||
8 | Date: Fri, 22 Mar 2013 12:50:17 +0000 (+0900) | ||
9 | Subject: tcg: Fix occasional TCG broken problem when ldst optimization enabled | ||
10 | X-Git-Url: http://git.qemu.org/?p=qemu.git;a=commitdiff_plain;h=52ae646d4a3ebdcdcc973492c6a56f2c49b6578f;hp=3f08ffb4a4741d147634761dc053ed386243a0de | ||
11 | |||
12 | tcg: Fix occasional TCG broken problem when ldst optimization enabled | ||
13 | |||
14 | is_tcg_gen_code() checks the upper limit of TCG generated code range wrong, so | ||
15 | that TCG could get broken occasionally only when CONFIG_QEMU_LDST_OPTIMIZATION | ||
16 | enabled. The reason is code_gen_buffer_max_size does not cover the upper range | ||
17 | up to (TCG_MAX_OP_SIZE * OPC_BUF_SIZE), thus code_gen_buffer_max_size should be | ||
18 | modified to code_gen_buffer_size. | ||
19 | |||
20 | CC: qemu-stable@nongnu.org | ||
21 | Signed-off-by: Yeongkyoon Lee <yeongkyoon.lee@samsung.com> | ||
22 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> | ||
23 | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> | ||
24 | --- | ||
25 | |||
26 | Index: qemu-1.4.0/translate-all.c | ||
27 | =================================================================== | ||
28 | --- qemu-1.4.0.orig/translate-all.c 2013-04-09 10:58:19.000000000 +0000 | ||
29 | +++ qemu-1.4.0/translate-all.c 2013-04-09 10:58:34.783203406 +0000 | ||
30 | @@ -1310,10 +1310,10 @@ | ||
31 | /* check whether the given addr is in TCG generated code buffer or not */ | ||
32 | bool is_tcg_gen_code(uintptr_t tc_ptr) | ||
33 | { | ||
34 | - /* This can be called during code generation, code_gen_buffer_max_size | ||
35 | + /* This can be called during code generation, code_gen_buffer_size | ||
36 | is used instead of code_gen_ptr for upper boundary checking */ | ||
37 | return (tc_ptr >= (uintptr_t)code_gen_buffer && | ||
38 | - tc_ptr < (uintptr_t)(code_gen_buffer + code_gen_buffer_max_size)); | ||
39 | + tc_ptr < (uintptr_t)(code_gen_buffer + code_gen_buffer_size)); | ||
40 | } | ||
41 | #endif | ||
42 | |||
diff --git a/meta/recipes-devtools/qemu/qemu_1.4.0.bb b/meta/recipes-devtools/qemu/qemu_1.4.0.bb index 009cd78337..e705a0386d 100644 --- a/meta/recipes-devtools/qemu/qemu_1.4.0.bb +++ b/meta/recipes-devtools/qemu/qemu_1.4.0.bb | |||
@@ -3,6 +3,8 @@ require qemu.inc | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
4 | file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913" | 4 | file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913" |
5 | 5 | ||
6 | SRC_URI += "file://3f08ffb4a4741d147634761dc053ed386243a0de.patch" | ||
7 | |||
6 | SRC_URI_prepend = "http://wiki.qemu.org/download/qemu-${PV}.tar.bz2" | 8 | SRC_URI_prepend = "http://wiki.qemu.org/download/qemu-${PV}.tar.bz2" |
7 | SRC_URI[md5sum] = "78f13b774814b6b7ebcaf4f9b9204318" | 9 | SRC_URI[md5sum] = "78f13b774814b6b7ebcaf4f9b9204318" |
8 | SRC_URI[sha256sum] = "066297ed77408fb7588889c271a85cf3c259ad55c939315988e6062d7708eda8" | 10 | SRC_URI[sha256sum] = "066297ed77408fb7588889c271a85cf3c259ad55c939315988e6062d7708eda8" |