Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm The mode synonyms are different for stm and...
details: https://anonhg.NetBSD.org/src/rev/62aaa7aa89a4
branches: trunk
changeset: 335293:62aaa7aa89a4
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jan 02 10:03:42 2015 +0000
description:
The mode synonyms are different for stm and ldm - handle this.
PR/49520: arm/disassem.c doesn't use proper address mode name for loads
diffstat:
sys/arch/arm/arm/disassem.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r dca6ad5ec7b1 -r 62aaa7aa89a4 sys/arch/arm/arm/disassem.c
--- a/sys/arch/arm/arm/disassem.c Fri Jan 02 09:48:01 2015 +0000
+++ b/sys/arch/arm/arm/disassem.c Fri Jan 02 10:03:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disassem.c,v 1.25 2014/11/21 23:36:20 joerg Exp $ */
+/* $NetBSD: disassem.c,v 1.26 2015/01/02 10:03:42 skrll Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe.
@@ -49,7 +49,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.25 2014/11/21 23:36:20 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.26 2015/01/02 10:03:42 skrll Exp $");
#include <sys/systm.h>
@@ -276,7 +276,8 @@
};
static char const insn_stack_block_transfers[][4] = {
- "ed", "ea", "fd", "fa"
+ "ed", "ea", "fd", "fa", /* stm */
+ "fa", "fd", "ea", "ed", /* ldm */
};
static char const op_shifts[][4] = {
@@ -298,7 +299,7 @@
#define insn_condition(x) arm32_insn_conditions[(x >> 28) & 0x0f]
#define insn_blktrans(x) insn_block_transfers[(x >> 23) & 3]
-#define insn_stkblktrans(x) insn_stack_block_transfers[(x >> 23) & 3]
+#define insn_stkblktrans(x) insn_stack_block_transfers[((x >> (20 - 2)) & 4)|((x >> 23) & 3)]
#define op2_shift(x) op_shifts[(x >> 5) & 3]
#define insn_fparnd(x) insn_fpa_rounding[(x >> 5) & 0x03]
#define insn_fpaprec(x) insn_fpa_precision[(((x >> 18) & 2)|(x >> 7)) & 1]
Home |
Main Index |
Thread Index |
Old Index