Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libnvmm Set hardseg to -1 rather than 0, because 0 can b...
details: https://anonhg.NetBSD.org/src/rev/3631e9b7cc1b
branches: trunk
changeset: 997193:3631e9b7cc1b
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Feb 26 10:18:39 2019 +0000
description:
Set hardseg to -1 rather than 0, because 0 can be a valid segment.
diffstat:
lib/libnvmm/libnvmm_x86.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 21e9a69396e6 -r 3631e9b7cc1b lib/libnvmm/libnvmm_x86.c
--- a/lib/libnvmm/libnvmm_x86.c Tue Feb 26 10:01:40 2019 +0000
+++ b/lib/libnvmm/libnvmm_x86.c Tue Feb 26 10:18:39 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libnvmm_x86.c,v 1.24 2019/02/17 20:25:46 maxv Exp $ */
+/* $NetBSD: libnvmm_x86.c,v 1.25 2019/02/26 10:18:39 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -2556,6 +2556,8 @@
memset(instr, 0, sizeof(*instr));
instr->legpref.seg = -1;
+ instr->src.hardseg = -1;
+ instr->dst.hardseg = -1;
fsm.is64bit = is_64bit(state);
fsm.is32bit = is_32bit(state);
@@ -2926,7 +2928,7 @@
gva += store->disp.data;
}
- if (store->hardseg != 0) {
+ if (store->hardseg != -1) {
seg = store->hardseg;
} else {
if (__predict_false(instr->legpref.seg != -1)) {
Home |
Main Index |
Thread Index |
Old Index