Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Define CACHE_LINE_SIZE / COHERENCY_UNI...



details:   https://anonhg.NetBSD.org/src/rev/e2c81a8bec51
branches:  trunk
changeset: 1012130:e2c81a8bec51
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jul 23 12:13:25 2020 +0000

description:
Define CACHE_LINE_SIZE / COHERENCY_UNIT as 128 for MIPS64_OCTEON

diffstat:

 sys/arch/mips/include/mips_param.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 262891d6f9f3 -r e2c81a8bec51 sys/arch/mips/include/mips_param.h
--- a/sys/arch/mips/include/mips_param.h        Thu Jul 23 11:33:01 2020 +0000
+++ b/sys/arch/mips/include/mips_param.h        Thu Jul 23 12:13:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_param.h,v 1.40 2019/06/19 09:55:27 skrll Exp $    */
+/*     $NetBSD: mips_param.h,v 1.41 2020/07/23 12:13:25 skrll Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -80,6 +80,10 @@
 #define MSGBUFSIZE     NBPG            /* default message buffer size */
 #endif
 
+#ifdef MIPS64_OCTEON
+#define COHERENCY_UNIT 128
+#define CACHE_LINE_SIZE        128
+#endif
 #ifndef COHERENCY_UNIT
 #define COHERENCY_UNIT 32      /* MIPS cachelines are usually 32 bytes */
 #endif



Home | Main Index | Thread Index | Old Index