From nobody Sat Nov 1 07:20:18 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526102200366265.7105884151555; Fri, 11 May 2018 22:16:40 -0700 (PDT) Received: from localhost ([::1]:46166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHMtb-0002WU-MT for importer@patchew.org; Sat, 12 May 2018 01:16:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHMgY-00046g-D1 for qemu-devel@nongnu.org; Sat, 12 May 2018 01:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHMgT-0008Nu-Dr for qemu-devel@nongnu.org; Sat, 12 May 2018 01:03:10 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:35682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHMgT-0008Nl-99 for qemu-devel@nongnu.org; Sat, 12 May 2018 01:03:05 -0400 Received: by mail-pl0-x241.google.com with SMTP id i5-v6so4373864plt.2 for ; Fri, 11 May 2018 22:03:05 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id x124-v6sm8999945pfx.72.2018.05.11.22.03.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 22:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U6nS46xM2ODxxohiUKnS5JtgCHRh8ZMrwU73D7F0Pls=; b=C8NQSrijXQpV5cjscDQk6/XxEBBvgPbfOl8Q/99R0rdkhI/ml7Aq534kBVr61UEc9t aN9YZkN4iEZVQfCb9Pj+CAaomooTnSVMetdJSl/1VXHGMklrcbNZgWyk3ryMStZJN+5y 6iNmaM6piDIIpyNtWSaJG9Tu55MkanHghFJdg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U6nS46xM2ODxxohiUKnS5JtgCHRh8ZMrwU73D7F0Pls=; b=g/jXZSu3pND38yTEM05J821wfRgScQsDdRFBi/mVn6pPV3rWVK4MgkL+SMNNsMqRW7 fwMkvlUqB98b4zUqnvB59D5GN8mLLFnnxsQezC2Ciju9t0GY7byT/0DPRhqYBWCnE/4T wzNDb8lZX+hfUaLnAU2cB+iFQ1lAmpQEJgCvW8VyBzwNOZvhSNI5AKKF1jjbgmw/rZ0f 4D/MKKDwMvpNx3cbyljtDhpoAa/6M5e0PDxww9wm6hVAkhIPvKQYcqzQ9rLIrsfHV+BD IDGWm6Dj2HH8Bf91oAHqykGpydixJD4+QCxVre9vNABN3SufTPQB/2ay0jjH6k3R7kGk 6r8w== X-Gm-Message-State: ALKqPwfv0e6REZf9d2b5Ey2p2wNTYGT3B9h7nlV/zr+8eacaNaEQKFAH Dq7NGP02A8htqqfAPITx4gMHDcVt0TM= X-Google-Smtp-Source: AB8JxZo/fu2+mePy2FZ4Qbh3ycir788/rgmzjVwVCj4WxvuQDn21J6PXHUrbBbHv4FOw1Xqu5eqH/w== X-Received: by 2002:a17:902:6b44:: with SMTP id g4-v6mr1020962plt.390.1526101384026; Fri, 11 May 2018 22:03:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 22:02:50 -0700 Message-Id: <20180512050250.12774-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512050250.12774-1-richard.henderson@linaro.org> References: <20180512050250.12774-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [PATCH 9/9] target/m68k: Merge disas_m68k_insn into m68k_tr_translate_insn 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.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/m68k/translate.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 069558bc28..21eeebf4df 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -6049,16 +6049,6 @@ void register_m68k_insns (CPUM68KState *env) #undef INSN } =20 -/* ??? Some of this implementation is not exception safe. We should always - write back the result to memory before setting the condition codes. */ -static void disas_m68k_insn(CPUM68KState * env, DisasContext *s) -{ - uint16_t insn =3D read_im16(env, s); - opcode_table[insn](env, s, insn); - do_writebacks(s); - do_release(s); -} - static void m68k_tr_init_disas_context(DisasContextBase *dcbase, CPUState = *cpu) { DisasContext *dc =3D container_of(dcbase, DisasContext, base); @@ -6101,8 +6091,13 @@ static bool m68k_tr_breakpoint_check(DisasContextBas= e *dcbase, CPUState *cpu, static void m68k_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu) { DisasContext *dc =3D container_of(dcbase, DisasContext, base); + CPUM68KState *env =3D cpu->env_ptr; + uint16_t insn =3D read_im16(env, dc); + + opcode_table[insn](env, dc, insn); + do_writebacks(dc); + do_release(dc); =20 - disas_m68k_insn(cpu->env_ptr, dc); dc->base.pc_next =3D dc->pc; =20 if (dc->base.is_jmp =3D=3D DISAS_NEXT) { --=20 2.17.0