Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Use the register define MIPS_HWR_ULR inst...



details:   https://anonhg.NetBSD.org/src/rev/87cd634aff03
branches:  trunk
changeset: 1026276:87cd634aff03
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Nov 16 06:15:48 2021 +0000

description:
Use the register define MIPS_HWR_ULR instead of a magic number.

diffstat:

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

diffs (27 lines):

diff -r 1676879c9110 -r 87cd634aff03 sys/arch/mips/mips/mips_emul.c
--- a/sys/arch/mips/mips/mips_emul.c    Tue Nov 16 06:11:52 2021 +0000
+++ b/sys/arch/mips/mips/mips_emul.c    Tue Nov 16 06:15:48 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_emul.c,v 1.30 2021/05/29 12:35:27 simonb Exp $ */
+/*     $NetBSD: mips_emul.c,v 1.31 2021/11/16 06:15:48 simonb Exp $ */
 
 /*
  * Copyright (c) 1999 Shuichiro URATA.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.30 2021/05/29 12:35:27 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.31 2021/11/16 06:15:48 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -461,7 +461,7 @@
        }
        case OP_RDHWR:
                switch (instfmt.RType.rd) {
-               case 29:
+               case MIPS_HWR_ULR:
                        tf->tf_regs[instfmt.RType.rt] =
                            (mips_reg_t)(intptr_t)curlwp->l_private;
                        goto done;



Home | Main Index | Thread Index | Old Index