diff options
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r-- | meta/recipes-devtools/qemu/files/fxrstorssefix.patch | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_1.5.0.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/files/fxrstorssefix.patch b/meta/recipes-devtools/qemu/files/fxrstorssefix.patch new file mode 100644 index 0000000000..59ab0f50fa --- /dev/null +++ b/meta/recipes-devtools/qemu/files/fxrstorssefix.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | When we restore the mxcsr resgister with FXRSTOR, we need to update the various SSE | ||
2 | flag files by calling update_sse_status() else we're using the flags from some other | ||
3 | process with interesting results. | ||
4 | |||
5 | The code isn't ordered to make this easy hence the function declaration. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | RP 2013/9/30 | ||
10 | |||
11 | Index: qemu-1.5.0/target-i386/fpu_helper.c | ||
12 | =================================================================== | ||
13 | --- qemu-1.5.0.orig/target-i386/fpu_helper.c 2013-09-30 18:46:39.283377648 +0000 | ||
14 | +++ qemu-1.5.0/target-i386/fpu_helper.c 2013-09-30 18:46:56.895377232 +0000 | ||
15 | @@ -1149,6 +1149,8 @@ | ||
16 | } | ||
17 | } | ||
18 | |||
19 | +static void update_sse_status(CPUX86State *env); | ||
20 | + | ||
21 | void helper_fxrstor(CPUX86State *env, target_ulong ptr, int data64) | ||
22 | { | ||
23 | int i, fpus, fptag, nb_xmm_regs; | ||
24 | @@ -1180,6 +1182,7 @@ | ||
25 | if (env->cr[4] & CR4_OSFXSR_MASK) { | ||
26 | /* XXX: finish it */ | ||
27 | env->mxcsr = cpu_ldl_data(env, ptr + 0x18); | ||
28 | + update_sse_status(env); | ||
29 | /* cpu_ldl_data(env, ptr + 0x1c); */ | ||
30 | if (env->hflags & HF_CS64_MASK) { | ||
31 | nb_xmm_regs = 16; | ||
diff --git a/meta/recipes-devtools/qemu/qemu_1.5.0.bb b/meta/recipes-devtools/qemu/qemu_1.5.0.bb index d6dd743bb0..06c2cdba63 100644 --- a/meta/recipes-devtools/qemu/qemu_1.5.0.bb +++ b/meta/recipes-devtools/qemu/qemu_1.5.0.bb | |||
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | |||
6 | SRC_URI += "file://fdt_header.patch \ | 6 | SRC_URI += "file://fdt_header.patch \ |
7 | file://target-i386-Fix-aflag-logic-for-CODE64-and-the-0x67-.patch \ | 7 | file://target-i386-Fix-aflag-logic-for-CODE64-and-the-0x67-.patch \ |
8 | file://target-ppc_fix_bit_extraction.patch \ | 8 | file://target-ppc_fix_bit_extraction.patch \ |
9 | file://fxrstorssefix.patch \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | SRC_URI_prepend = "http://wiki.qemu.org/download/qemu-${PV}.tar.bz2" | 12 | SRC_URI_prepend = "http://wiki.qemu.org/download/qemu-${PV}.tar.bz2" |