From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2LrB-0005K7-HM for qemu-devel@nongnu.org; Thu, 03 Nov 2016 13:31:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Lr7-0007WF-JK for qemu-devel@nongnu.org; Thu, 03 Nov 2016 13:31:17 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:47982) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Lr7-0007VC-Dv for qemu-devel@nongnu.org; Thu, 03 Nov 2016 13:31:13 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1c2Lr4-0001yD-8J from Julian_Brown@mentor.com for qemu-devel@nongnu.org; Thu, 03 Nov 2016 10:31:10 -0700 From: Julian Brown Date: Thu, 3 Nov 2016 10:30:53 -0700 Message-ID: <1478194258-75276-1-git-send-email-julian@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/5] ARM BE8/BE32 big-endian system-mode fixes (semihosting, gdbstub) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch series contains a few fixes for ARM big-endian system mode that appear beneficial for our use case of running bare-metal code with semihosting (for toolchain testing), and running code via the built-in gdbstub (for debugger testing). The patches are mostly relevant to BE32 mode, but contain some BE8 mode fixes also. I haven't been following QEMU development terribly closely, so apologies in advance if these patches are moving along the wrong trajectory! I hope they're useful as a starting point though, at least. I have tested (modulo formatting cleanups suggested by checkpatch.pl) these patches against GCC (in particular ARMv7 LE, BE8 multilibs and ARMv5te LE, BE32 multilibs), and GDB, with Mentor's internal test infrastructure (though I needed some other minor local patches to make QEMU work better with that). Let me know if there's other testing I should do. Thank you, Julian Julian Brown (5): ARM BE8/BE32 semihosting and gdbstub support. Fix Thumb-1 BE32 execution and disassembly. Fix arm_semi_flen_cb for BE32 system mode. ARM BE32 watchpoint fix. Fix typo in arm_cpu_do_interrupt_aarch32. disas/arm.c | 46 ++++++++++--- exec.c | 13 ++++ hw/arm/boot.c | 16 ++++- include/disas/bfd.h | 1 + include/exec/softmmu-arm-semi.h | 148 ++++++++++++++++++++++++++++++++++++++++ target-arm/arm-semi.c | 12 +++- target-arm/arm_ldst.h | 10 ++- target-arm/cpu.c | 53 ++++++++++++++ target-arm/gdbstub.c | 42 ++++++++++++ target-arm/helper.c | 2 +- 10 files changed, 328 insertions(+), 15 deletions(-) create mode 100644 include/exec/softmmu-arm-semi.h -- 1.9.1