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 store-with-clamp instructions
details: https://anonhg.NetBSD.org/src/rev/ddad12acd8e5
branches: trunk
changeset: 787457:ddad12acd8e5
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jun 19 00:41:16 2013 +0000
description:
add store-with-clamp instructions
diffstat:
sys/arch/sparc/dev/sxreg.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 103ed6ed6352 -r ddad12acd8e5 sys/arch/sparc/dev/sxreg.h
--- a/sys/arch/sparc/dev/sxreg.h Tue Jun 18 23:40:38 2013 +0000
+++ b/sys/arch/sparc/dev/sxreg.h Wed Jun 19 00:41:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sxreg.h,v 1.10 2013/06/12 20:44:20 macallan Exp $ */
+/* $NetBSD: sxreg.h,v 1.11 2013/06/19 00:41:16 macallan Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -164,6 +164,8 @@
SX_LONG | (sreg << 7) | (o))
#define SX_STB(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE | \
SX_UBYTE_0 | (sreg << 7) | (o))
+#define SX_STBC(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE_CLAMP | \
+ SX_UBYTE_0 | (sreg << 7) | (o))
#define SX_STP(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE | \
SX_PACKED | (sreg << 7) | (o))
#define SX_STS(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE_SELECT \
@@ -172,6 +174,8 @@
| SX_UBYTE_0 | (reg << 7) | (o))
#define SX_STUQ0(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE | \
SX_UQUAD_0 | (sreg << 7) | (o))
+#define SX_STUQ0C(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE_CLAMP | \
+ SX_UQUAD_0 | (sreg << 7) | (o))
#define SX_STUQ8(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE | \
SX_UQUAD_8 | (sreg << 7) | (o))
#define SX_STUQ16(sreg, cnt, o) (0x80000000 | ((cnt) << 23) | SX_STORE | \
Home |
Main Index |
Thread Index |
Old Index