Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 AArch64 instructions are always LE:...



details:   https://anonhg.NetBSD.org/src/rev/b6702ee469ea
branches:  trunk
changeset: 975741:b6702ee469ea
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Sep 05 15:59:09 2020 +0000

description:
AArch64 instructions are always LE: swap if we're BE

diffstat:

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

diffs (27 lines):

diff -r 244f525a6d13 -r b6702ee469ea sys/arch/aarch64/aarch64/disasm.c
--- a/sys/arch/aarch64/aarch64/disasm.c Sat Sep 05 15:57:12 2020 +0000
+++ b/sys/arch/aarch64/aarch64/disasm.c Sat Sep 05 15:59:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disasm.c,v 1.9 2020/08/03 19:16:56 ryo Exp $   */
+/*     $NetBSD: disasm.c,v 1.10 2020/09/05 15:59:09 jakllsch Exp $     */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.9 2020/08/03 19:16:56 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.10 2020/09/05 15:59:09 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -4044,7 +4044,7 @@
 {
        uint32_t insn;
 
-       insn = di->di_readword(loc);
+       insn = le32toh(di->di_readword(loc));
        disasm_insn(di, loc, insn);
 
        /* return next address */



Home | Main Index | Thread Index | Old Index