Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/include hp300: Specify proper constraints for...



details:   https://anonhg.NetBSD.org/src/rev/8518c04df1cd
branches:  trunk
changeset: 373251:8518c04df1cd
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jan 27 19:48:00 2023 +0000

description:
hp300: Specify proper constraints for bus_space_read region and multi ops.

Synk with next68k.
Also use consistent register name constrains, i.e. no '%' prefix.

diffstat:

 sys/arch/hp300/include/bus.h |  38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diffs (171 lines):

diff -r ee54e2d56bdd -r 8518c04df1cd sys/arch/hp300/include/bus.h
--- a/sys/arch/hp300/include/bus.h      Fri Jan 27 19:39:04 2023 +0000
+++ b/sys/arch/hp300/include/bus.h      Fri Jan 27 19:48:00 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.23 2023/01/15 06:19:46 tsutsui Exp $ */
+/*     $NetBSD: bus.h,v 1.24 2023/01/27 19:48:00 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -280,7 +280,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -298,7 +298,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -315,7 +315,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -343,7 +343,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -361,7 +361,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -379,7 +379,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0","memory");                   \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -439,7 +439,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -457,7 +457,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -476,7 +476,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -503,7 +503,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -521,7 +521,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -539,7 +539,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (a), "g" (c)   :       \
-                           "%a0","%a1","%d0");                         \
+                           "a0","a1","d0");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -566,7 +566,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -584,7 +584,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -602,7 +602,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -629,7 +629,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -647,7 +647,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 
@@ -666,7 +666,7 @@
                        jne     1b"                             :       \
                                                                :       \
                            "r" ((h) + (o)), "g" (val), "g" (c) :       \
-                           "%a0","%d0","%d1");                         \
+                           "a0","d0","d1");                            \
        }                                                               \
 } while (/* CONSTCOND */ 0)
 



Home | Main Index | Thread Index | Old Index