summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-target-i386-translate.c
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2008-07-08 18:42:09 +0000
committerJuergen Lock <nox@FreeBSD.org>2008-07-08 18:42:09 +0000
commit54b840b37a44ced448a8ad0f47740ce08278f643 (patch)
treed4801d39b61ef12632cbef1176de598a3d1658c2 /emulators/qemu-devel/files/patch-target-i386-translate.c
parent- New port: plt-scheme (diff)
- Update to 20080620 svn snapshot, which uses the new kqemu-kmod-devel
port that now also works for the 32 bit "qemu" executable on amd64 (if you build with the KQEMU knob on, you have to deinstall the old kqemu-kmod first if it is installed) - Add an ALL_TARGETS knob that, if turned off, omits the remaining dyngen targets, eliminating the need for gcc 3.4 (everything but ppc and sh4 has been converted to tcg in this snapshot) - Add tcg fixes for amd64 guests on i386 hosts (two of three have been committed to qemu svn in the meantime) [1] - Update the pkg-message about kqemu on amd64, and add a note about using nfs with slirp, the latter [2] - Homepage now at http://bellard.org/qemu/ - update links Submitted by: nox [1] Submitted by: joerg [2]
Notes
Notes: svn path=/head/; revision=216547
Diffstat (limited to 'emulators/qemu-devel/files/patch-target-i386-translate.c')
-rw-r--r--emulators/qemu-devel/files/patch-target-i386-translate.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-target-i386-translate.c b/emulators/qemu-devel/files/patch-target-i386-translate.c
new file mode 100644
index 000000000000..332ce9fcd26e
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-target-i386-translate.c
@@ -0,0 +1,16 @@
+Index: qemu/target-i386/translate.c
+@@ -3330,8 +3330,12 @@
+ op1_offset = offsetof(CPUX86State,xmm_regs[reg]);
+ tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
+ sse_op2 = sse_op_table3[(s->dflag == 2) * 2 + ((b >> 8) - 2)];
+- tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
+- tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_tmp2_i32);
++ if (ot == OT_LONG) {
++ tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
++ tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_tmp2_i32);
++ } else {
++ tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_T[0]);
++ }
+ break;
+ case 0x02c: /* cvttps2pi */
+ case 0x12c: /* cvttpd2pi */