[Qemu-devel] [PATCH v8 2/9] softfloat: Clean code format in fpu/softfloat-specialize.h

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> fpu/softfloat-specialize.h is the most critical file in SoftFloat library, since it handles numerous differences between platforms in relation to floating point arithmetics. This patch makes the code in this file more consistent

[Qemu-devel] [PATCH v8 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>, for Mips R6. All involved instructions have float operand and integer result. Their core function

[Qemu-devel] [PATCH v8 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v8 4/9] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [1], page 53, section "3.5.3 NaN Propagation". [1] "MIPS Archite

[Qemu-devel] [PATCH v7 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v7 0/9] IEEE 754-2008 support for Mips

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v7 - preprocesor constants for FCR31 bits removed - cleanup items in CFC1 and CTC1 handling removed - initialization of snan_bit_is_one for main FP unit moved from patch 6 to patch 9 - an instance of "!

[Qemu-devel] [PATCH v8 0/9] IEEE 754-2008 support for Mips

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v8 - fixed mail recipients v7 - preprocesor constants for FCR31 bits removed - cleanup items in CFC1 and CTC1 handling removed - initialization of snan_bit_is_one for main FP unit moved from patch 6 to patch 9 - an in

[Qemu-devel] [PATCH v8 5/9] linux-user: Update preprocessor constants for Mips-specific e_flags bits

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Missing values EF_MIPS_FP64 and EF_MIPS_NAN2008 added, and the format of the surrounding code segment adjusted. Signed-off-by: Thomas Schwinge <tho...@codesourcery.com> Signed-off-by: Maciej W. Rozycki <ma...@codesourcery.

[Qemu-devel] [PATCH v8 3/9] softfloat: For Mips only, correct default NaN values

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v8 9/9] target-mips: Implement FCR31's R/W bitmask and related functionalities

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements read and write access rules for Mips floating point control and status register (FCR31). The change can be divided into following parts: - Add fields that will keep FCR31's R/W bitmask in procesor defin

[Qemu-devel] [PATCH v9 02/10] softfloat: Clean code format in fpu/softfloat-specialize.h

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> fpu/softfloat-specialize.h is the most critical file in SoftFloat library, since it handles numerous differences between platforms in relation to floating point arithmetics. This patch makes the code in this file more consistent

[Qemu-devel] [PATCH v9 06/10] target-mips: Activate IEEE 754-2008 signaling NaN bit meaning for MSA

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Function msa_reset() is updated so that flag snan_bit_is_one is properly set to 0. By applying this patch, a number of incorrect MSA behaviors that require IEEE 754-2008 compliance will be fixed. Those are behaviors th

[Qemu-devel] [PATCH v9 10/10] target-mips: Add FCR31's FS bit definition

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add preprocessor definition of FCR31's FS bit, and update related code for setting this bit. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- target-mips/cpu.h | 3 ++- 1 file changed, 2 insertions(+)

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-06-10 Thread Aleksandar Markovic
Maciej Rozycki Sent: Tuesday, June 07, 2016 4:39 AM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; peter.mayd...@linaro.org; pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag...@suse.de; blauwir...@gmail.com; jcmvb...@gmail.com; Aleksandar Markovic; qemu-

[Qemu-devel] [PATCH v9 07/10] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instructions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (and, therefore, any NaN operand causes signaling invalid operation), while abs2008 ones are non-

[Qemu-devel] [PATCH v9 09/10] target-mips: Implement FCR31's R/W bitmask and related functionalities

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements read and write access rules for Mips floating point control and status register (FCR31). The change can be divided into following parts: - Add fields that will keep FCR31's R/W bitmask in procesor defin

[Qemu-devel] [PATCH v9 05/10] linux-user: Update preprocessor constants for Mips-specific e_flags bits

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Missing values EF_MIPS_FP64 and EF_MIPS_NAN2008 added. Reviewed-by: Leon Alrae <leon.al...@imgtec.com> Signed-off-by: Thomas Schwinge <tho...@codesourcery.com> Signed-off-by: Maciej W. Rozycki <ma...@codesou

[Qemu-devel] [PATCH v9 00/10] IEEE 754-2008 support for Mips

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v8 -> v9: - patches 1 and 2 slightly reorganized to separate real changes from cleanup changes more clearly - unnecessary changes removed from patches 5 and 9 - changes related to FS bit moved to a separate patch

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-06-10 Thread Aleksandar Markovic
. Aleksandar From: Maciej Rozycki Sent: Friday, June 10, 2016 3:35 AM To: Aleksandar Markovic Cc: Aleksandar Markovic; qemu-devel@nongnu.org; peter.mayd...@linaro.org; pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag

[Qemu-devel] [PATCH v8 7/9] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instructions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (and, therefore, any NaN operand causes signaling invalid operation), while abs2008 ones are non-

[Qemu-devel] [PATCH v8 6/9] target-mips: Activate IEEE 754-2008 signaling NaN bit meaning for MSA

2016-06-03 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Function msa_reset() is updated so that flag snan_bit_is_one is properly set to 0. By applying this patch, a number of incorrect MSA behaviors that require IEEE 754-2008 compliance will be fixed. Those are behaviors th

[Qemu-devel] [PATCH v9 08/10] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>, for Mips R6. All involved instructions have float operand and integer result. Their core function

[Qemu-devel] [PATCH v9 01/10] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v9 03/10] softfloat: For Mips only, correct default NaN values

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v9 04/10] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [1], page 53, section "3.5.3 NaN Propagation". [1] "MIPS Archite

Re: [Qemu-devel] [PATCH v9 00/10] IEEE 754-2008 support for Mips

2016-06-21 Thread Aleksandar Markovic
ping From: Aleksandar Markovic [aleksandar.marko...@rt-rk.com] Sent: Friday, June 10, 2016 2:57 AM To: qemu-devel@nongnu.org; qemu-...@nongnu.org; qemu-...@nongnu.org; Maciej Rozycki; pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-06-20 Thread Aleksandar Markovic
of another bug, it explains the context of the change, and the content of added code segments. From: Maciej Rozycki Sent: Tuesday, June 14, 2016 8:30 AM To: Leon Alrae Cc: Aleksandar Markovic; Aleksandar Markovic; qemu-devel@nongnu.org; peter.mayd...@linar

Re: [Qemu-devel] [PATCH 2/2] target-mips: Implement IEEE 754-2008 functionality for R6 and MSA instructions

2016-03-30 Thread Aleksandar Markovic
[qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org] on behalf of Richard Henderson [r...@twiddle.net] Sent: Monday, March 28, 2016 2:49 PM To: Aleksandar Markovic; qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; ehabk...@redhat.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl

Re: [Qemu-devel] [PATCH 1/2] softfloat: Enable run-time-configurable meaning of signaling NaN bit

2016-03-30 Thread Aleksandar Markovic
of Bastian Koppelmann [kbast...@mail.uni-paderborn.de] Sent: Tuesday, March 29, 2016 5:50 AM To: Aleksandar Markovic; qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; ehabk...@redhat.com; pro...@gmail.com; mark.cave-ayl...@ilande.co.uk; ag...@suse.de; Petar Jovanovic; blauwir...@gmail.com

Re: [Qemu-devel] [PATCH 2/2] target-mips: Implement IEEE 754-2008 functionality for R6 and MSA instructions

2016-03-31 Thread Aleksandar Markovic
u. Yours, Aleksandar From: qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org [qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org] on behalf of Richard Henderson [r...@twiddle.net] Sent: Monday, March 28, 2016 2:49 PM To: Aleksandar Markovic;

[Qemu-devel] [PATCH 0/2] target-mips: Initiate IEEE 754-2008 support for Mips

2016-04-07 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> V2 - Relevant CPU initialization code changes revisited for all platforms. - In connection with <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D> and <ABS|NEG>.<S|D> Mips instructions handling,

[Qemu-devel] [PATCH 1/2] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-07 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured at run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH 2/2] target-mips: Activate IEEE 754-2008 support for Mips

2016-04-07 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch utilizes provisions from the previous patch, and configures Mips R6 CPUs and Mips MSA units appropriately with reference to the meaning of the signaling NaN bit (this is mentioned in point 2 in the list below). The ma

[Qemu-devel] [PATCH v4 6/9] target-mips: Activate IEEE 274-2008 support

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 1) Definitions of Mips processors are updated to reflect supported IEEE-754-2008-related features. (file target-mips/translate_init.c) 2) Functions mips_cpu_reset() and msa_reset() are updated so that flag snan_bit_

[Qemu-devel] [PATCH v4 3/9] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [2], page 53, section "3.5.3 NaN Propagation". [1] &qu

[Qemu-devel] [PATCH v4 7/9] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instuctions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (any NaN operand signals invalid operation), while abs2008 ones are non-arithmetic, always changing

[Qemu-devel] [PATCH v4 0/9] target-mips: Initiate IEEE 754-2008 support

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v4 - Added code cleanup items: a. Capitalization of hex constants in softfloat-specialize.h; b. White spaces in softfloat-specialize.h; c. Order of Mips helpers for CVT.<L|W>.<S|D>. v3 - Patch

[Qemu-devel] [PATCH v4 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>. Details on these instructions are presented in [1] p. 129, 130, 149, 155, 222, 223, 393, 3

[Qemu-devel] [PATCH v4 4/9] softfloat: Clean up hex constants capitalization in softfloat-specialize.h

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> With this partch, capitals A, B, C, D, E, F are always used for hex constants in softfloat-specialize.h. The large latter size is chosen just beacause it is currently prevalent in this file. Signed-off-by: Aleksandar Ma

[Qemu-devel] [PATCH v4 9/9] target-mips: Clean up order of helpers for CVT.<L|W>.<S|D>

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch makes position of helpers for CVT.<L|W>.<S|D> consistent with position of helpers for <CEIL|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@i

[Qemu-devel] [PATCH v4 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v4 5/9] softfloat: Clean up white spaces in softfloat-specialize.h

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> As the development of SoftFloat library took places, many contributors had different code styles, and the code was left with inconsistent style, difficult to read, and hard to maintain. This patch will make spaces around shift ope

[Qemu-devel] [PATCH v4 2/9] softfloat: For Mips only, correct default NaN values

2016-04-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v3 0/6] target-mips: Initiate IEEE 754-2008 support

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v3 - Patch series reorganized into 6 patches instead of 2. - Commit messages improved. - Except commit messages, net result of applying v3 and v2 is the same. v2 - Relevant CPU initialization code changes revisited f

[Qemu-devel] [PATCH v3 5/6] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instuctions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (any NaN operand signals invalid operation), while abs2008 ones are non-arithmetic, always changing

[Qemu-devel] [PATCH v3 3/6] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [2], page 53, section "3.5.3 NaN Propagation". [1] &qu

[Qemu-devel] [PATCH v3 4/6] target-mips: Activate IEEE 274-2008 support

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 1) Definitions of Mips processors are updated to reflect supported IEEE-754-2008-related features. (file target-mips/translate_init.c) 2) Functions mips_cpu_reset() and msa_reset() are updated so that flag snan_bit_

[Qemu-devel] [PATCH v3 2/6] softfloat: For Mips only, correct default NaN values

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v3 1/6] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v3 6/6] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-04-11 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>. Details on these instructions are presented in [1], pages 129, 130, 149, 155, 222, 223, 393, 3

[Qemu-devel] [PATCH 1/2] softfloat: Enable run-time-configurable meaning of signaling NaN bit

2016-03-25 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch enables SoftFloat library to be configured at run-time in relation to the meaning of signaling NaN bit. Background: In floating-point calculations, there is a need for denoting undefined or unrepresentable

[Qemu-devel] [PATCH 2/2] target-mips: Implement IEEE 754-2008 functionality for R6 and MSA instructions

2016-03-25 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch utilizes provisions from the previous patch, and configures Mips R6 CPUs and Mips MSA units appropriately with reference to the meaning of the signaling NaN bit (this is mentioned in point 3 in the list below). The ma

[Qemu-devel] [PATCH 0/2] target-mips: Fix IEEE 754-2008-related issues

2016-03-25 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Mips platform represents the most complex case among QEMU-supported platforms in reference to certain aspects of floating-point arithmetics. This is mostly a consequence of the fact that Mips platform, for many reasons, e

Re: [Qemu-devel] [PATCH 1/2] softfloat: Enable run-time-configurable meaning of signaling NaN bit

2016-04-03 Thread Aleksandar Markovic
: qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org [qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org] on behalf of Leon Alrae Sent: Friday, April 01, 2016 12:02 PM To: Aleksandar Markovic; qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; ehabk...@redhat.com; pro...@gmail

Re: [Qemu-devel] [PATCH 2/2] target-mips: Implement IEEE 754-2008 functionality for R6 and MSA instructions

2016-04-03 Thread Aleksandar Markovic
instructions Date: Friday, April 1, 2016 21:07 CEST From: Leon Alrae <leon.al...@imgtec.com> To: Aleksandar Markovic <aleksandar.marko...@rt-rk.com>,<qemu-devel@nongnu.org> CC: <qemu-...@nongnu.org>, <qemu-...@nongnu.org>, <aurel...@aurel32.net>,<peter.mayd...@l

Re: [Qemu-devel] [PATCH 1/2] softfloat: Enable run-time-configurable meaning of signaling NaN bit

2016-04-04 Thread Aleksandar Markovic
Aleksandar From: qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org [qemu-devel-bounces+aleksandar.markovic=imgtec@nongnu.org] on behalf of Richard Henderson [r...@twiddle.net] Sent: Monday, March 28, 2016 2:36 PM To: Aleksandar Markovic;

Re: [Qemu-devel] [PATCH v4 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-13 Thread Aleksandar Markovic
you. Yours, Aleksandar From: Eduardo Habkost [ehabk...@redhat.com] Sent: Tuesday, April 12, 2016 11:45 AM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag...@suse.de; Maciej Rozycki; Petar Jovanovic; blau

Re: [Qemu-devel] [PATCH v4 3/9] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-04-13 Thread Aleksandar Markovic
, Aleksandar From: Leon Alrae Sent: Wednesday, April 13, 2016 5:47 AM To: Aleksandar Markovic; qemu-devel@nongnu.org Cc: pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag...@suse.de; blauwir...@gmail.com; jcmvb...@gmail.com

Re: [Qemu-devel] [PATCH v5 5/9] target-mips: Activate IEEE 274-2008 signaling NaN bit meaning

2016-04-25 Thread Aleksandar Markovic
No, nothing is lost. The plan is to add this functionality at a later time. From: Maciej Rozycki Sent: Monday, April 25, 2016 7:06 AM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; peter.mayd...@linaro.org; pro...@gmail.com; kbast...@mail.uni

[Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>, for Mips R6. All involved instructions have float operand and integer result. Their core function

[Qemu-devel] [PATCH v6 7/9] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instructions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (and, therefore, any NaN operand causes signaling invalid operation), while abs2008 ones are non-

[Qemu-devel] [PATCH v6 3/9] softfloat: For Mips only, correct default NaN values

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v6 2/9] softfloat: Clean code format in fpu/softfloat-specialize.h

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> fpu/softfloat-specialize.h is the most critical file in SoftFloat library, since it handles numerous differences between platforms in relation to floating point arithmetics. This patch makes the code in this file more consistent

[Qemu-devel] [PATCH v6 5/9] linux-user: Update preprocessor constants for Mips-specific e_flags bits

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Missing values EF_MIPS_FP64 and EF_MIPS_NAN2008 added, and the format of the surrounding code segment adjusted. Signed-off-by: Thomas Schwinge <tho...@codesourcery.com> Signed-off-by: Maciej W. Rozycki <ma...@codesourcery.

[Qemu-devel] [PATCH v6 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

[Qemu-devel] [PATCH v6 0/9] IEEE 754-2008 support for Mips

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v6 - code for hanlding MSA FCLASS instructions slightly simplified. - handling of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D> corrected for nan2008 case. - R/W bitmask for FCR31 introduced, and

[Qemu-devel] [PATCH v6 6/9] target-mips: Activate IEEE 754-2008 signaling NaN bit meaning

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Functions mips_cpu_reset() and msa_reset() are updated so that flag snan_bit_is_one is properly set for any Mips FPU/MSA configuration. For main FPUs, CPUs with FCR31's FCR31_NAN2008 bit set will invoke set_snan_bit_is_one(0). F

[Qemu-devel] [PATCH v6 4/9] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [1], page 53, section "3.5.3 NaN Propagation". [1] "MIPS Archite

[Qemu-devel] [PATCH v6 9/9] target-mips: Implement FCR31's R/W bitmask and related functionalities

2016-05-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements read and write access rules for Mips floating point control and status register (FCR31). The change can be divided into following parts: - Add preprocessor constants for all bits of FCR31 and related masks f

Re: [Qemu-devel] [PATCH v5 7/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-05-04 Thread Aleksandar Markovic
> > @@ -8919,7 +8920,11 @@ static void gen_farith (DisasContext *ctx, enum > > fopcode op1, > > TCGv_i64 fp64 = tcg_temp_new_i64(); > > > > gen_load_fpr32(ctx, fp32, fs); > > -gen_helper_float_roundl_s(fp64, cpu_env, fp32); > > +if

[Qemu-devel] [PATCH v5 7/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>, for Mips R6. All involved instructions have float operand and integer result. Their core function

[Qemu-devel] [PATCH v5 6/9] target-mips: Add abs2008 flavor of <ABS|NEG>.<S|D>

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Updated handling of instuctions <ABS|NEG>.<S|D>. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (and, therefore, any NaN operand causes signaling invalid operation), while abs2008 ones are non-

[Qemu-devel] [PATCH v5 3/9] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [2], page 53, section "3.5.3 NaN Propagation". [1] &qu

[Qemu-devel] [PATCH v5 0/9] target-mips: Initiate IEEE 754-2008 support for Mips

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v5 - platform initialization code revisited one more time; - handling of CLASS.<S|D> and their MSA counterparts revisited; - better orgranization of patches (squashing, splitting); - corrected handling of <CEIL|

Re: [Qemu-devel] [PATCH v5 7/9] target-mips: Add nan2008 flavor of <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>

2016-04-18 Thread Aleksandar Markovic
There was a small error in the version of this patch 7/9 sent an hour ago. Please apply this corrected version. From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> New set of helpers for handling nan2008-syle versions of instructions <CEIL|CVT|FLOOR|ROUND|TRUNC>.<L|W>.

[Qemu-devel] [PATCH v5 5/9] target-mips: Activate IEEE 274-2008 signaling NaN bit meaning

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Functions mips_cpu_reset() and msa_reset() are updated so that flag snan_bit_is_one is properly set for any Mips FPU/MSA configuration. For main FPUs, CPUs with FCR31's FCR31_NAN2008 bit set will invoke set_snan_bit_is_one(0). F

[Qemu-devel] [PATCH v5 4/9] target-mips: Amend processor definitions in relation to FCR31

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Amend definitions of some Mips processors related to FCR31 (float status control register). Most significantly, FCR31 of processors mips32r6-generic, mips64r6-generic, and P5600 will be set so that its FCR31_ABS2008 and FCR31_NAN200

[Qemu-devel] [PATCH v5 2/9] softfloat: For Mips only, correct default NaN values

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Creat

[Qemu-devel] [PATCH v5 8/9] target-mips: Clean up position and order of helpers for CVT.<L|W>.<S|D>

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch makes position and order of helpers for CVT.<L|W>.<S|D> within file target-mips/op_helper.c consistent with position and order of helpers for <CEIL|FLOOR|ROUND|TRUNC>.<L|W>.<S|D>.

[Qemu-devel] [PATCH v5 9/9] target-mips: Clean up position of abs2008/nan2008 cases in genfarith()

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch slightly reorders cases in genfarith() so that abs2008/nan2008- dependant cases are grouped together, for easier maintenantce (code becomes less prone to errors). Signed-off-by: Aleksandar Markovic <aleksan

[Qemu-devel] [PATCH v5 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In fl

Re: [Qemu-devel] [PATCH v4 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-17 Thread Aleksandar Markovic
in the patch related to <CEIL|CVT|FLOOR|...>, that are currently being analysed and tested here. Sincerely, Aleksandar ____ From: Aleksandar Markovic Sent: Friday, April 15, 2016 4:38 AM To: Leon Alrae; Aleksandar Markovic; qemu-devel@nongnu.org Cc: pro...@gm

Re: [Qemu-devel] [PATCH v4 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-15 Thread Aleksandar Markovic
nt of any function if its type is float_status*). If you agree, I am going to replace name "fst" with name "status" in the code that you provided, otherwise as-is. From: Leon Alrae Sent: Thursday, April 14, 2016 8:31 AM To: Aleksandar Markovic;

Re: [Qemu-devel] [PATCH v5 9/9] target-mips: Clean up position of abs2008/nan2008 cases in genfarith()

2016-04-19 Thread Aleksandar Markovic
Diff looks messy, but, in fact, this change is just changing location of six cases in gen_farith(). This is illustrated in the diagram below: (I added indentation of 2 spaces for abs2008-related cases, and 4 spaces for nan2008-related cases, to stress the effect of grouping cases with similar

Re: [Qemu-devel] [PATCH v4 1/9] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-04-15 Thread Aleksandar Markovic
From: Leon Alrae Sent: Friday, April 15, 2016 3:41 AM To: Aleksandar Markovic; Aleksandar Markovic; qemu-devel@nongnu.org Cc: pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag...@suse.de; blauwir...@gmail.com; jcmvb...@gmail.com; qemu-...@nongnu.org

Re: [Qemu-devel] [PATCH v6 0/9] IEEE 754-2008 support for Mips

2016-05-25 Thread Aleksandar Markovic
ping From: Aleksandar Markovic [aleksandar.marko...@rt-rk.com] Sent: Monday, May 16, 2016 7:12 AM To: qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; pro...@gmail.com; kbast...@mail.uni-paderborn.de; mark.cave-ayl...@ilande.co.uk; ag...@suse.de

[Qemu-devel] [PATCH v4 5/5] linux-user: Fix certain argument alignment cases for Mips64

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> The function that is changed in this patch is supposed to indicate that there was certaing argument rearangement related to 64-bit arguments on 32-bit platforms. The background on such rearangements can be found, for example, in t

[Qemu-devel] [PATCH v2 0/3] linux-user: Add support for adjtimex(), sysfs(), and ustat() syscalls

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1->v2: - added "#ifdef TARGET_NR_adjtimex" where appropriate in patch 1/3. This patch series adds support for three syscalls to the Qemu user mode. Each patch fixes certain LTP test failures that occur if LTP

[Qemu-devel] [PATCH v4 0/5] linux-user: Fix miscellaneous Mips-specific issues

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v3->v4: - Added a patch on agrument rearangement. v2 -> v3: - Minor fixes in the commit messages. v1 -> v2: - Improved a comment in the patch about target_semid64_ds (now 4/4). - Added a patch that fixes TA

[Qemu-devel] [PATCH v2 1/5] linux-user: Fix syslog() syscall emulation

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NUL

[Qemu-devel] [PATCH v2 2/3] linux-user: Add support for sysfs() syscall

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH v2 0/5] linux user: Fix assorted Qemu user mode issues

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1->v2: - improved usage of "#ifdefs" in patch on syslog() - removed EIDRM-related code from patch on msgrcv(), since this error code is already handled well - added three cleanup patches (also, v1

[Qemu-devel] [PATCH v2 2/5] linux-user: Fix msgrcv() and msgsnd() syscalls emulation

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have th

[Qemu-devel] [PATCH v2 1/3] linux-user: Add support for adjtimex() syscall

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is

[Qemu-devel] [PATCH v4 3/5] linux-user: Fix structure target_flock definition for Mips

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Structure flock is defined for Mips in a way different from any other platform. For reference, see Linux kernel source code files: arch/mips/include/uapi/asm/fcntl.h#L63 (for Mips) include/uapi/asm-generic/fcntl.h#L195 (for all

[Qemu-devel] [PATCH v4 2/5] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH v4 1/5] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch fixes wrong definition of TARGET_SIOCATMARK for Mips. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See Linux kernel

[Qemu-devel] [PATCH v4 4/5] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-relat

[Qemu-devel] [PATCH v2 4/5] linux-user: Remove a duplicate item from strace.list

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There is a duplicate item in strace.list. It is benign, but it shouldn't be there. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> ---

[Qemu-devel] [PATCH v2 3/3] linux-user: Add support for ustat() syscall

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related sy

  1   2   3   4   5   6   7   8   9   10   >