]> git.proxmox.com Git - qemu.git/commit - target-ppc/translate.c
target-ppc: Fix add and subf carry generation in narrow mode
authorRichard Henderson <rth@twiddle.net>
Thu, 21 Mar 2013 10:01:45 +0000 (10:01 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:54 +0000 (15:28 +0100)
commit79482e5ab38a05ca8869040b0d8b8f451f16ff62
treeb9be9189d4cf7d4a8376a037df3d0ae576768403
parentb632a148b677b773ff155f9de840b37a653567b9
target-ppc: Fix add and subf carry generation in narrow mode

The set of computations used in b5a73f8d8a57e940f9bbeb399a9e47897522ee9a
are only valid if the current word size == target_long size.  This failed
to take ppc64 in 32-bit (narrow) mode into account.

Add a NARROW_MODE macro to avoid conditional compilation.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c