Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 sh4_tlb_invalidate_addr - use the right con...



details:   https://anonhg.NetBSD.org/src/rev/c221eca14e64
branches:  trunk
changeset: 936775:c221eca14e64
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Aug 03 19:24:28 2020 +0000

description:
sh4_tlb_invalidate_addr - use the right constant.

VPN mask happens to be the same in many registers, but since we are
writing the value to UTLB data array, use that particular constant for
consistency.  Same object code is generated.

diffstat:

 sys/arch/sh3/sh3/mmu_sh4.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3222f9280ab5 -r c221eca14e64 sys/arch/sh3/sh3/mmu_sh4.c
--- a/sys/arch/sh3/sh3/mmu_sh4.c        Mon Aug 03 19:16:56 2020 +0000
+++ b/sys/arch/sh3/sh3/mmu_sh4.c        Mon Aug 03 19:24:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mmu_sh4.c,v 1.16 2020/08/03 19:08:55 uwe Exp $ */
+/*     $NetBSD: mmu_sh4.c,v 1.17 2020/08/03 19:24:28 uwe Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mmu_sh4.c,v 1.16 2020/08/03 19:08:55 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mmu_sh4.c,v 1.17 2020/08/03 19:24:28 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -83,7 +83,7 @@
        uint32_t pteh;
        int sr;
 
-       va &= SH4_PTEH_VPN_MASK;
+       va &= SH4_UTLB_AA_VPN_MASK;
        sr = _cpu_exception_suspend();
 
        /* Save current ASID */



Home | Main Index | Thread Index | Old Index