pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: Fix qemu-system-i386 nvmm warning



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b13b46c0d4a
branches:  trunk
changeset: 411178:6b13b46c0d4a
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Thu Feb 06 23:23:21 2020 +0000

description:
qemu: Fix qemu-system-i386 nvmm warning

diffstat:

 emulators/qemu/Makefile                             |  4 ++--
 emulators/qemu/distinfo                             |  4 ++--
 emulators/qemu/patches/patch-target_i386_nvmm-all.c |  8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r 82d45d1cc698 -r 6b13b46c0d4a emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Thu Feb 06 22:39:38 2020 +0000
+++ b/emulators/qemu/Makefile   Thu Feb 06 23:23:21 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.230 2020/02/06 22:01:37 kamil Exp $
+# $NetBSD: Makefile,v 1.231 2020/02/06 23:23:21 kamil Exp $
 
 DISTNAME=      qemu-4.2.0
-PKGREVISION=   7
+PKGREVISION=   8
 CATEGORIES=    emulators
 MASTER_SITES=  https://download.qemu.org/
 EXTRACT_SUFX=  .tar.xz
diff -r 82d45d1cc698 -r 6b13b46c0d4a emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Thu Feb 06 22:39:38 2020 +0000
+++ b/emulators/qemu/distinfo   Thu Feb 06 23:23:21 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.155 2020/02/06 21:42:29 kamil Exp $
+$NetBSD: distinfo,v 1.156 2020/02/06 23:23:21 kamil Exp $
 
 SHA1 (qemu-4.2.0.tar.xz) = b27aa828a8457bd8551ae3c81b80cc365e1f6bfe
 RMD160 (qemu-4.2.0.tar.xz) = cab8f6d85c0c6e9c01059087ed27d1243a7004a4
@@ -29,5 +29,5 @@
 SHA1 (patch-target_i386_Makefile.objs) = be8ab2e72521ccd0a71db6b37feb9957b27ac970
 SHA1 (patch-target_i386_helper.c) = 54363fe53688ea4030665b3bbb3ee7aba7ba5348
 SHA1 (patch-target_i386_kvm-stub.c) = 4cd2b7a8d8d8a317829f982b5acff7fdf2479d9f
-SHA1 (patch-target_i386_nvmm-all.c) = adf857c12e746604ca2aa49caf5dde17e5207325
+SHA1 (patch-target_i386_nvmm-all.c) = 091c56c88c2366abef907ca99e5bfa9933a2b6ab
 SHA1 (patch-util_drm.c) = b30a46d623d9431c5af2f3cd101adb89be3f0c2b
diff -r 82d45d1cc698 -r 6b13b46c0d4a emulators/qemu/patches/patch-target_i386_nvmm-all.c
--- a/emulators/qemu/patches/patch-target_i386_nvmm-all.c       Thu Feb 06 22:39:38 2020 +0000
+++ b/emulators/qemu/patches/patch-target_i386_nvmm-all.c       Thu Feb 06 23:23:21 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-target_i386_nvmm-all.c,v 1.2 2020/02/06 21:42:29 kamil Exp $
+$NetBSD: patch-target_i386_nvmm-all.c,v 1.3 2020/02/06 23:23:21 kamil Exp $
 
 Add NVMM support.
 
---- target/i386/nvmm-all.c.orig        2020-02-06 21:37:53.532213438 +0000
+--- target/i386/nvmm-all.c.orig        2020-02-06 23:03:06.140694264 +0000
 +++ target/i386/nvmm-all.c
 @@ -0,0 +1,1226 @@
 +/*
@@ -170,7 +170,7 @@
 +    state->fpu.fx_mxcsr_mask = 0x0000FFFF;
 +    assert(sizeof(state->fpu.fx_87_ac) == sizeof(env->fpregs));
 +    memcpy(state->fpu.fx_87_ac, env->fpregs, sizeof(env->fpregs));
-+    for (i = 0; i < 16; i++) {
++    for (i = 0; i < CPU_NB_REGS; i++) {
 +        memcpy(&state->fpu.fx_xmm[i].xmm_bytes[0],
 +            &env->xmm_regs[i].ZMM_Q(0), 8);
 +        memcpy(&state->fpu.fx_xmm[i].xmm_bytes[8],
@@ -325,7 +325,7 @@
 +    env->mxcsr = state->fpu.fx_mxcsr;
 +    assert(sizeof(state->fpu.fx_87_ac) == sizeof(env->fpregs));
 +    memcpy(env->fpregs, state->fpu.fx_87_ac, sizeof(env->fpregs));
-+    for (i = 0; i < 16; i++) {
++    for (i = 0; i < CPU_NB_REGS; i++) {
 +        memcpy(&env->xmm_regs[i].ZMM_Q(0),
 +            &state->fpu.fx_xmm[i].xmm_bytes[0], 8);
 +        memcpy(&env->xmm_regs[i].ZMM_Q(1),



Home | Main Index | Thread Index | Old Index