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 Fix J/JAL address calculation to not thro...
details: https://anonhg.NetBSD.org/src/rev/b222091f4796
branches: trunk
changeset: 808832:b222091f4796
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 04 05:23:40 2015 +0000
description:
Fix J/JAL address calculation to not throw the top 32-bits.
diffstat:
sys/arch/mips/mips/db_disasm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 59c35a8b3e54 -r b222091f4796 sys/arch/mips/mips/db_disasm.c
--- a/sys/arch/mips/mips/db_disasm.c Thu Jun 04 05:22:10 2015 +0000
+++ b/sys/arch/mips/mips/db_disasm.c Thu Jun 04 05:23:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.25 2015/06/04 02:26:49 matt Exp $ */
+/* $NetBSD: db_disasm.c,v 1.26 2015/06/04 05:23:40 matt Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.25 2015/06/04 02:26:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.26 2015/06/04 05:23:40 matt Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -697,7 +697,7 @@
case OP_J:
case OP_JAL:
db_printf("%s\t", op_name[i.JType.op]);
- print_addr((loc & 0xF0000000) | (i.JType.target << 2));
+ print_addr((loc & ~0x0FFFFFFFL) | (i.JType.target << 2));
bdslot = true;
break;
Home |
Main Index |
Thread Index |
Old Index