qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: schwab@linux-m68k.org, agraf@suse.de,
	Richard Henderson <rth@twiddle.net>,
	gerg@uclinux.org, Laurent Vivier <laurent@vivier.eu>
Subject: [Qemu-devel] [PATCH v3 0/2] 680x0 mul and div instructions
Date: Tue,  1 Nov 2016 00:48:10 +0100	[thread overview]
Message-ID: <1477957692-7231-1-git-send-email-laurent@vivier.eu> (raw)

This series is another subset of the series I sent in May:
https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00501.html

It must be applied on top of series:
"target-m68k: 680x0 instruction set, part 2"

This subset contains reworked patches of mul and div instructions:
- "add 64bit mull": correctly set QREG_CC_V,
- "inline divu/divs": don't inline divu/divs, but update
   existing functions to manage 680x0 div instructions

I've checked it doesn't break coldfire support:
http://wiki.qemu.org/download/coldfire-test-0.1.tar.bz2
but it can't boot a 680x0 processor kernel.

v3:
- mull: manage the case where Dl == Dh
- divu/divs: move all the mechanic to helpers,
  and pass the register number to directly set
  the result
v2:
- Free "rem" and "quot" in "divl".

Laurent Vivier (2):
  target-m68k: add 64bit mull
  target-m68k: add 680x0 divu/divs variants

 linux-user/main.c       |   7 ++
 target-m68k/cpu.h       |   4 --
 target-m68k/helper.h    |   8 ++-
 target-m68k/op_helper.c | 182 +++++++++++++++++++++++++++++++++++++++++-------
 target-m68k/qregs.def   |   2 -
 target-m68k/translate.c | 146 +++++++++++++++++++++++++-------------
 6 files changed, 267 insertions(+), 82 deletions(-)

-- 
2.7.4

             reply	other threads:[~2016-10-31 23:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-31 23:48 Laurent Vivier [this message]
2016-10-31 23:48 ` [Qemu-devel] [PATCH v3 1/2] target-m68k: add 64bit mull Laurent Vivier
2016-11-01 12:10   ` Richard Henderson
2016-10-31 23:48 ` [Qemu-devel] [PATCH v3 2/2] target-m68k: add 680x0 divu/divs variants Laurent Vivier
2016-11-01 12:34   ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1477957692-7231-1-git-send-email-laurent@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=agraf@suse.de \
    --cc=gerg@uclinux.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).