Module Name: src Committed By: maxv Date: Tue Feb 12 14:50:21 UTC 2019
Modified Files: src/lib/libnvmm: libnvmm_x86.c Log Message: Optimize: fetch only 5 bytes instead of 15, the instruction can have only up to five prefixes. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/lib/libnvmm/libnvmm_x86.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libnvmm/libnvmm_x86.c diff -u src/lib/libnvmm/libnvmm_x86.c:1.20 src/lib/libnvmm/libnvmm_x86.c:1.21 --- src/lib/libnvmm/libnvmm_x86.c:1.20 Sun Feb 10 19:30:28 2019 +++ src/lib/libnvmm/libnvmm_x86.c Tue Feb 12 14:50:21 2019 @@ -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 @@ store_to_gva(struct nvmm_x64_state *stat 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;