All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Tom Musta <tommusta@gmail.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [V2 PATCH 00/37] target-ppc: Decimal Floating Point
Date: Thu, 08 May 2014 11:58:02 +0200	[thread overview]
Message-ID: <536B552A.1040809@suse.de> (raw)
In-Reply-To: <1398113721-15782-1-git-send-email-tommusta@gmail.com>

On 04/21/2014 10:54 PM, Tom Musta wrote:
> This patch series adds emulation of the PowerPC Decimal Floating Point (DFP) instructions.
> The complete set of DFP instructions defined by the Power ISA is introduced.
>
> The foundation of the emulation code is libdecnumber, a software library that models DFP
> numbers and operations in a manner similar to how softfloat models IEEE Binary Floating
> Point.  A subset of the libdecnumber source (from GCC) is dropped into the QEMU source tree
> and modified slightly; only libdecnumber files containing code that is required to implement
> the PowerPC DFP instructions are copied.
>
> The DFP instructions are implemented via helpers.  A typical helper does the following:
>
>    - The contents of the source registers (PPC FPRs) are converted to libdecnumber's
>      internal representation, the decNumber type.  Inputs are either 64 bit (Long)
>      or 128 bit (Extended or Quad) densely packed decimal (DPD), depending on the specific
>      instruction being emulated.
>    - A libdecnumber operation is invoked, producing a decNumber result as well as status
>      flags.
>    - A chain of post-processors is executed to convert status flags and/or input and output
>      data to PPC status (usually FPSCR bits).
>    - The decNumber result is converted back to DPD format and written into the target
>      FPR(s).
>
> V2:
>    - modified post-processor handling per Richard Henderson's comments; eliminated the use
>      of lists of function pointers, replacing with aggregated, static functions.
>    - cleaned up int64 to decNumber converter.

Thanks, applied to ppc-next.

Since we can't apply any patches from the gcc libdecnumber anyway, maybe 
it makes sense to reformat all libdecformat files to match the QEMU 
coding style. But that can be a follow-up patch.


Alex

           reply	other threads:[~2014-05-08  9:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1398113721-15782-1-git-send-email-tommusta@gmail.com>]

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=536B552A.1040809@suse.de \
    --to=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=tommusta@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.