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/bb14025bf8a1
branches: trunk
changeset: 936980:bb14025bf8a1
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 7e5110d0cb99 -r bb14025bf8a1 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