Module Name: src
Committed By: maxv
Date: Wed Feb 13 06:32:45 UTC 2019
Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86.h
Log Message:
Reorder the GPRs to match the CPU encoding, simplifies things on Intel.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/nvmm/x86/nvmm_x86.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/nvmm/x86/nvmm_x86.h
diff -u src/sys/dev/nvmm/x86/nvmm_x86.h:1.3 src/sys/dev/nvmm/x86/nvmm_x86.h:1.4
--- src/sys/dev/nvmm/x86/nvmm_x86.h:1.3 Sun Jan 6 16:10:51 2019
+++ src/sys/dev/nvmm/x86/nvmm_x86.h Wed Feb 13 06:32:45 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86.h,v 1.3 2019/01/06 16:10:51 maxv Exp $ */
+/* $NetBSD: nvmm_x86.h,v 1.4 2019/02/13 06:32:45 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -47,21 +47,21 @@
/* General Purpose Registers. */
#define NVMM_X64_GPR_RAX 0
-#define NVMM_X64_GPR_RBX 1
-#define NVMM_X64_GPR_RCX 2
-#define NVMM_X64_GPR_RDX 3
-#define NVMM_X64_GPR_R8 4
-#define NVMM_X64_GPR_R9 5
-#define NVMM_X64_GPR_R10 6
-#define NVMM_X64_GPR_R11 7
-#define NVMM_X64_GPR_R12 8
-#define NVMM_X64_GPR_R13 9
-#define NVMM_X64_GPR_R14 10
-#define NVMM_X64_GPR_R15 11
-#define NVMM_X64_GPR_RDI 12
-#define NVMM_X64_GPR_RSI 13
-#define NVMM_X64_GPR_RBP 14
-#define NVMM_X64_GPR_RSP 15
+#define NVMM_X64_GPR_RCX 1
+#define NVMM_X64_GPR_RDX 2
+#define NVMM_X64_GPR_RBX 3
+#define NVMM_X64_GPR_RSP 4
+#define NVMM_X64_GPR_RBP 5
+#define NVMM_X64_GPR_RSI 6
+#define NVMM_X64_GPR_RDI 7
+#define NVMM_X64_GPR_R8 8
+#define NVMM_X64_GPR_R9 9
+#define NVMM_X64_GPR_R10 10
+#define NVMM_X64_GPR_R11 11
+#define NVMM_X64_GPR_R12 12
+#define NVMM_X64_GPR_R13 13
+#define NVMM_X64_GPR_R14 14
+#define NVMM_X64_GPR_R15 15
#define NVMM_X64_GPR_RIP 16
#define NVMM_X64_GPR_RFLAGS 17
#define NVMM_X64_NGPR 18