From patchwork Tue Oct 25 14:50:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 9394671 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 157166077F for ; Tue, 25 Oct 2016 14:59:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0833D293F8 for ; Tue, 25 Oct 2016 14:59:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F118C2940E; Tue, 25 Oct 2016 14:59:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85E2E293F8 for ; Tue, 25 Oct 2016 14:59:46 +0000 (UTC) Received: from localhost ([::1]:55230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz3Cb-0007Vq-Mn for patchwork-qemu-devel@patchwork.kernel.org; Tue, 25 Oct 2016 10:59:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz33n-0008Qx-NC for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:50:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz33j-0005vQ-9n for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:50:39 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53363) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bz33j-0005ub-0f for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:50:35 -0400 Received: from Quad.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LehKM-1chhGN3JIk-00qTjL; Tue, 25 Oct 2016 16:50:30 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2016 16:50:04 +0200 Message-Id: <1477407021-30755-7-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477407021-30755-1-git-send-email-laurent@vivier.eu> References: <1477407021-30755-1-git-send-email-laurent@vivier.eu> X-Provags-ID: V03:K0:EGbK46ULCetTwRcWwIzjIECEIxm9AQbbf7mwyUGvf2zn9HNrMdb 0GJUkokYbNHvFjzTi88qy0AVcT9Ko/SrNr+6SPi3H202FeCKlFTIzANVhhi95+iDsdvTwr9 qGjhiMFcpv0/P6D5TFNlRn0nyz52ky+Fr4FvW74YGv6HnALX8Z3niqsAwrbJqJL1zMFiXCN iBYuVut1Kp5JGr83rEzZA== X-UI-Out-Filterresults: notjunk:1; V01:K0:K6N34Yw2ZRI=:sKKXRtYi7CccFUy6NJo5VZ TKcRyb3dLc4IoZhT5WFP93Y5GIKAKbx+YtWlfnKzLTQr5nNpEyooZYwugyY00TaMMkwmRKRH+ cT1cxEGCLBM295+nGj04MJ8d+LgkEC7zLWe7KBvb4wTvri9X30IF0YmUKQjVOtSs6DbQ+yq53 tRSp1PmJeY3IYGR9vsBwzlM06ticyfeUuqIJ0QQ9u1lPBzMh8UyYaRIWiNg09LY47kpqIHh4n 5Xd3gjlNltRatbjSb+Mul5pVyBX9wCaIdz81QQoKWmroQ8Y30DdN1BWE/4CHWq1Rht1+L9CM4 iba24k8iqnl7Av7HeLT4zTzreVpsvQQ3ox8Uc0j9V2sC+27yxkquKdZ9qUaSWMiBJUEzfAGt/ sUfPQnpKPd3oyvOhd2o6nUD6NH5kwpaM0tKUwBQCKE8NCt5QI8GM1/VtBTxVCmZiEDZKhZMvD nTZoBrbBtb7jc776DQK6nuwE3FV63fIPGwfABdi6taKcEkMHdkt6W73rN8GfdWPcVbg7l7XTK pOzCYzuM7glcdyArnDS3CP8n68vynO/71kVzitbhHAlLFw9tfCf7gvHKrtLfERklyzNQ+mn/F kSywgVSpzXW4KSXsMK5RoE/xMPPOJ45xAPhfTN1WcIm1uWfffnZhooJmURbEMsWcQ8tpPRpLy Cej/7zgZtNaosJN9QU31WuaFb97jE/70paYauGmy+ZKFtb5aQmhDGNsAP1/Za+ReYkTY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.131 Subject: [Qemu-devel] [PATCH 06/23] target-m68k: set disassembler mode to 680x0 or coldfire X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , gerg@uclinux.org, schwab@linux-m68k.org, agraf@suse.de, Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/cpu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c index 800e8f0..f925e26 100644 --- a/target-m68k/cpu.c +++ b/target-m68k/cpu.c @@ -64,9 +64,14 @@ static void m68k_cpu_reset(CPUState *s) tlb_flush(s, 1); } -static void m68k_cpu_disas_set_info(CPUState *cpu, disassemble_info *info) +static void m68k_cpu_disas_set_info(CPUState *s, disassemble_info *info) { + M68kCPU *cpu = M68K_CPU(s); + CPUM68KState *env = &cpu->env; info->print_insn = print_insn_m68k; + if (m68k_feature(env, M68K_FEATURE_M68000)) { + info->mach = bfd_mach_m68040; + } } /* CPU models */