Source-Changes-HG archive

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

[src/trunk]: src/lib/libnvmm Optimize: fetch only 5 bytes instead of 15, the ...



details:   https://anonhg.NetBSD.org/src/rev/cef8bcbfdf45
branches:  trunk
changeset: 996895:cef8bcbfdf45
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Feb 12 14:50:21 2019 +0000

description:
Optimize: fetch only 5 bytes instead of 15, the instruction can have only
up to five prefixes.

diffstat:

 lib/libnvmm/libnvmm_x86.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 989d8c52adbe -r cef8bcbfdf45 lib/libnvmm/libnvmm_x86.c
--- a/lib/libnvmm/libnvmm_x86.c Tue Feb 12 14:40:38 2019 +0000
+++ b/lib/libnvmm/libnvmm_x86.c Tue Feb 12 14:50:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libnvmm_x86.c,v 1.20 2019/02/10 19:30:28 christos Exp $        */
+/*     $NetBSD: libnvmm_x86.c,v 1.21 2019/02/12 14:50:21 maxv Exp $    */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -2958,7 +2958,7 @@
 static int
 fetch_segment(struct nvmm_machine *mach, struct nvmm_x64_state *state)
 {
-       uint8_t inst_bytes[15], byte;
+       uint8_t inst_bytes[5], byte;
        size_t i, fetchsize;
        gvaddr_t gva;
        int ret, seg;



Home | Main Index | Thread Index | Old Index