Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/dev add SCATTER/GATHER instructions
details: https://anonhg.NetBSD.org/src/rev/d1d811718cbe
branches: trunk
changeset: 357999:d1d811718cbe
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Dec 07 19:15:56 2017 +0000
description:
add SCATTER/GATHER instructions
diffstat:
sys/arch/sparc/dev/sxreg.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 66b7d6c32c6d -r d1d811718cbe sys/arch/sparc/dev/sxreg.h
--- a/sys/arch/sparc/dev/sxreg.h Thu Dec 07 18:26:51 2017 +0000
+++ b/sys/arch/sparc/dev/sxreg.h Thu Dec 07 19:15:56 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sxreg.h,v 1.14 2017/10/30 21:41:39 macallan Exp $ */
+/* $NetBSD: sxreg.h,v 1.15 2017/12/07 19:15:56 macallan Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -290,4 +290,12 @@
#define SX_ADDV(sa, sb, d, cnt) (0xa0000000 | ((cnt) << 24) | SX_ADD_V | \
((sa) << 14) | ((d) << 7) | (sb))
+/* MISC group */
+#define SX_GTHR (3 << 21) /* sa with spacing sb -> d */
+#define SX_SCTR (2 << 21) /* sa -> d with spacing sb */
+#define SX_GATHER(sa, sb, d, cnt) (0xe0000000 | ((cnt << 24) | SX_GTHR | \
+ ((sa) << 14) | ((d << 7) | (sb))
+#define SX_SCATTER(sa, sb, d, cnt) (0xe0000000 | ((cnt << 24) | SX_SCRT | \
+ ((sa) << 14) | ((d << 7) | (sb))
+
#endif /* SXREG_H */
Home |
Main Index |
Thread Index |
Old Index