[Bug 1890775] Re: Aten USB to Serial bridge does not work with qemu under Windows 10

2021-05-07 Thread Thomas Huth
The QEMU project is currently moving its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting the bug state to "Incomplete" now. If the bug has already been fixed in the latest upstream version of QEMU, then

[Bug 1891829] Re: High bit(s) sometimes set high on rcvd serial bytes when char size < 8 bits

2021-05-07 Thread Thomas Huth
The QEMU project is currently moving its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting the bug state to "Incomplete" now. If the bug has already been fixed in the latest upstream version of QEMU, then

[Bug 1892533] Re: Meson: Missing config-host.mak

2021-05-07 Thread Thomas Huth
QEMU ships with the appropriate version of Meson included (see the "meson" directory), that's why it is not mentioned in the README. Anyway, does any of your build problems still persist with QEMU v6.0? Or could we close this ticket now? ** Changed in: qemu Status: New => Incomplete --

[PATCH v3 2/2] target/i386: add "-cpu, lbr-fmt=*" support to enable guest LBR

2021-05-07 Thread Like Xu
The last branch recording (LBR) is a performance monitor unit (PMU) feature on Intel processors that records a running trace of the most recent branches taken by the processor in the LBR stack. The QEMU could configure whether it's enabled or not for each guest via CLI. The LBR feature would be

[PATCH v3 1/2] qdev-properties: Add a new macro to validate bitmask for setter

2021-05-07 Thread Like Xu
The new generic DEFINE_PROP_BITMASK_UINT64 could be used to ensure that a user-provided property value complies with its bitmask rule and the default value is recommended to be set in instance_init(). Signed-off-by: Like Xu --- hw/core/qdev-properties.c| 19 +++

[Bug 1625216] Re: memory writes via gdb don't work for memory mapped hardware

2021-05-07 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/213 ** Changed in: qemu Status: Confirmed => Expired **

[Bug 1652286] Re: QEMU manpages provoke man(1) "can't break line" warnings

2021-05-07 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/214 ** Changed in: qemu Status: Confirmed => Expired **

[Bug 1668041] Re: x86 Floating point exceptions - incorrect support?

2021-05-07 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/215 ** Changed in: qemu Status: Confirmed => Expired **

[Bug 1699567] Re: Qemu does not force SSE data alignment

2021-05-07 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/217 ** Changed in: qemu Status: Confirmed => Expired **

[Bug 1670175] Re: qemu-system-sparc64 with tribblix-sparc-0m16.iso ends with "panic - kernel: no nucleus hblk8 to allocate"

2021-05-07 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/216 ** Changed in: qemu Status: Confirmed => Expired **

[Bug 1888818] Re: Multi-queue vhost-user fails to reconnect with qemu version >=4.2

2021-05-07 Thread xuan
** Changed in: qemu Status: Incomplete => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/118 Title: Multi-queue vhost-user fails to reconnect with qemu version >=4.2 Status in QEMU:

[Bug 1679358] Re: ARM: RES0/RES1 SCTLR fields not read-only

2021-05-07 Thread Thomas Huth
The QEMU project is currently moving its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting the bug state to "Incomplete" now. If the bug has already been fixed in the latest upstream version of QEMU, then

[Bug 1926995] Re: hw/remote/mpqemu-link.c:221: bad error checking ?

2021-05-07 Thread Thomas Huth
Thanks, I've reported it on the mailing list, and a patch has now been posted here: https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg02106.html ** Changed in: qemu Status: New => In Progress ** Changed in: qemu Importance: Undecided => High -- You received this bug

Re: [PATCH] multi-process: Avoid logical AND of mutually exclusive tests

2021-05-07 Thread Thomas Huth
On 07/05/2021 17.53, Jagannathan Raman wrote: Fixes an if statement that performs a logical AND of mutually exclusive tests Reported-by: Thomas Huth I just spotted the bug ticket on Launchpad :-) So whoever picks this patch up, please add this instead: Buglink:

Re: [PATCH v4] hw/smbios: support for type 41 (onboard devices extended information)

2021-05-07 Thread Vincent Bernat
❦ 3 mai 2021 15:42 -04, Michael S. Tsirkin: >> >> +/* >> >> + * We only handle the case were the device is attached to >> >> + * the PCI root bus. The general case is more complex as >> >> + * bridges are enumerated later and the table would need

Re: [PATCH v3] i386/cpu: Remove the deprecated cpu model 'Icelake-Client'

2021-05-07 Thread Robert Hoo
Hi, Ping... Thanks. On Thu, 2021-04-29 at 09:35 +0800, Robert Hoo wrote: > As it's been marked deprecated since v5.2, now I think it's time > remove it > from code. > > Signed-off-by: Robert Hoo > --- > Changelog: > v3: > Update deprecated.rst. (Sorry for my carelessness in last >

Re: [PATCH 00/72] Convert floatx80 and float128 to FloatParts

2021-05-07 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210508014802.892561-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210508014802.892561-1-richard.hender...@linaro.org Subject: [PATCH 00/72]

[PATCH 69/72] softfloat: Convert floatx80 compare to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 82 + 1 file changed, 22 insertions(+), 60 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 81ff563dc0..b89ec4b832 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 70/72] softfloat: Convert float32_exp2 to FloatParts

2021-05-07 Thread Richard Henderson
Keep the intermediate results in FloatParts instead of converting back and forth between float64. Use muladd instead of separate mul+add. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 53 + 1 file changed, 23 insertions(+), 30

[PATCH 56/72] softfloat: Introduce Floatx80RoundPrec

2021-05-07 Thread Richard Henderson
Use an enumeration instead of raw 32/64/80 values. Signed-off-by: Richard Henderson --- include/fpu/softfloat-helpers.h | 5 +- include/fpu/softfloat-types.h | 10 +++- include/fpu/softfloat.h | 4 +- fpu/softfloat.c | 32 ++-- linux-user/arm/nwfpe/fpa11.c

[PATCH 59/72] softfloat: Convert floatx80_add/sub to FloatParts

2021-05-07 Thread Richard Henderson
Since this is the first such, this includes all of the packing and unpacking routines as well. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 339 +++- 1 file changed, 136 insertions(+), 203 deletions(-) diff --git a/fpu/softfloat.c

[PATCH 72/72] softfloat: Convert modrem operations to FloatParts

2021-05-07 Thread Richard Henderson
Rename to parts$N_modrem. This was the last use of a lot of the legacy infrastructure, so remove it as required. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 34 + fpu/softfloat.c| 1339 +++- fpu/softfloat-parts.c.inc

[PATCH 60/72] softfloat: Convert floatx80_mul to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 76 + 1 file changed, 14 insertions(+), 62 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 3c6751e4d0..4454219f8a 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 57/72] softfloat: Adjust parts_uncanon_normal for floatx80

2021-05-07 Thread Richard Henderson
With floatx80_precision_x, the rounding happens across the break between words. Notice this case with frac_lsb = round_mask + 1 -> 0 and check the bits in frac_hi as needed. In addition, since frac_shift == 0, we won't implicitly clear round_mask via the right-shift, so explicitly clear

[PATCH 71/72] softfloat: Move floatN_log2 to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_log2. Though this is partly a ruse, since I do not believe the code will succeed for float128 without work. Which is ok for now, because we do not need this for more than float32 and float64. Since berkeley-testfloat-3 doesn't support log2, compare float64_log2 vs the system

[PATCH 54/72] softfloat: Split out parts_uncanon_normal

2021-05-07 Thread Richard Henderson
We will need to treat the non-normal cases of floatx80 specially, so split out the normal case that we can reuse. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 8 ++ fpu/softfloat-parts.c.inc | 56 ++- 2 files changed, 39

[PATCH 67/72] softfloat: Convert floatx80 to integer to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 336 ++-- 1 file changed, 42 insertions(+), 294 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index d7c6c37d99..9f28c5c058 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 64/72] softfloat: Convert floatx80_round_to_int to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 116 ++-- 1 file changed, 13 insertions(+), 103 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index faccc8df41..914cf2688c 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 58/72] tests/fp/fp-test: Reverse order of floatx80 precision tests

2021-05-07 Thread Richard Henderson
Many qemu softfloat will check floatx80_rounding_precision even when berkeley testfloat will not. So begin with floatx80_precision_x, so that's the one we use when !FUNC_EFF_ROUNDINGPRECISION. Signed-off-by: Richard Henderson --- tests/fp/fp-test.c | 8 1 file changed, 4

[PATCH 51/72] softfloat: Move compare_floats to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_compare. Rename all of the intermediate functions to ftype_do_compare. Rename the hard-float functions to ftype_hs_compare. Convert float128 to FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 208 ++

[PATCH 68/72] softfloat: Convert floatx80_scalbn to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 50 +++-- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 9f28c5c058..81ff563dc0 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 66/72] softfloat: Convert floatx80 float conversions to FloatParts

2021-05-07 Thread Richard Henderson
This is the last use of commonNaNT and all of the routines that use it, so remove all of them for Werror. Signed-off-by: Richard Henderson --- fpu/softfloat.c| 276 - fpu/softfloat-specialize.c.inc | 175 - 2 files changed, 67

[PATCH 53/72] softfloat: Move sqrt_float to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_sqrt. Reimplement float128_sqrt with FloatParts128. Reimplement with the inverse sqrt newton-raphson algorithm from musl. This is significantly faster than even the berkeley sqrt n-r algorithm, because it does not use division instructions, only multiplication. Ordinarily,

[PATCH 45/72] softfloat: Move round_to_int to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, split out parts$N_round_to_int_normal, define a macro for parts_round_to_int using QEMU_GENERIC. This necessarily meant some rearrangement to the rount_to_{,u}int_and_pack routines, so go ahead and convert to parts_round_to_int_normal, which in turn allows

[PATCH 63/72] softfloat: Convert floatx80_round to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 7050d8f012..faccc8df41 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -5794,10 +5794,12 @@ float128

[PATCH 65/72] softfloat: Convert integer to floatx80 to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 58 +++-- 1 file changed, 13 insertions(+), 45 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 914cf2688c..82f71896ac 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 52/72] softfloat: Move scalbn_decomposed to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_scalbn. Reimplement float128_scalbn with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 103 +- fpu/softfloat-parts.c.inc | 21 2 files changed, 55 insertions(+), 69 deletions(-) diff --git

[PATCH 44/72] softfloat: Convert float-to-float conversions with float128

2021-05-07 Thread Richard Henderson
Introduce parts_float_to_float_widen and parts_float_to_float_narrow. Use them for float128_to_float{32,64} and float{32,64}_to_float128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 203 1 file changed, 69 insertions(+), 134

[PATCH 62/72] softfloat: Convert floatx80_sqrt to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 82 +++-- 1 file changed, 11 insertions(+), 71 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 352f359bc5..7050d8f012 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 61/72] softfloat: Convert floatx80_div to FloatParts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 100 +++- 1 file changed, 13 insertions(+), 87 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 4454219f8a..352f359bc5 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 48/72] softfloat: Move int_to_float to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_sint_to_float. Reimplement int{32,64}_to_float128 with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 136 +++--- fpu/softfloat-parts.c.inc | 32 + 2 files changed, 70 insertions(+), 98 deletions(-)

[PATCH 43/72] softfloat: Split float_to_float

2021-05-07 Thread Richard Henderson
Split out parts_float_to_ahp and parts_float_to_float. Convert to pointers. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 174 1 file changed, 101 insertions(+), 73 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index

[PATCH 55/72] softfloat: Reduce FloatFmt

2021-05-07 Thread Richard Henderson
Remove frac_lsb, frac_lsbm1, roundeven_mask. Compute these from round_mask in parts$N_uncanon_normal. With floatx80, round_mask will not be tied to frac_shift. Everything else is easily computable. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 29

[PATCH 50/72] softfloat: Move minmax_flags to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_minmax. Combine 3 bool arguments to a bitmask, return a tri-state value to indicate nan vs unchanged operand. Introduce ftype_minmax functions as a common optimization point. Fold bfloat16 expansions into the same macro as the other types. Signed-off-by: Richard Henderson ---

[PATCH 42/72] softfloat: Move div_floats to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_div. Implement float128_div with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 290 +++--- fpu/softfloat-parts.c.inc | 55 2 files changed, 171 insertions(+), 174 deletions(-) diff --git

[PATCH 39/72] softfloat: Use add192 in mul128To256

2021-05-07 Thread Richard Henderson
We can perform the operation in 6 total adds instead of 8. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 37 +++--- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h

[PATCH 49/72] softfloat: Move uint_to_float to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_uint_to_float. Reimplement uint64_to_float128 with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 83 --- fpu/softfloat-parts.c.inc | 23 +++ 2 files changed, 56 insertions(+), 50 deletions(-) diff

[PATCH 47/72] softfloat: Move rount_to_uint_and_pack to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_float_to_uint. Reimplement float128_to_uint{32,64}{_round_to_zero} with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 357 +- fpu/softfloat-parts.c.inc | 68 +++- 2 files changed, 147 insertions(+),

[PATCH 41/72] softfloat: Introduce sh[lr]_double primitives

2021-05-07 Thread Richard Henderson
Have x86_64 assembly for them, with a fallback. This avoids shuffling values through %cl in the x86 case. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 36 fpu/softfloat.c| 102 + 2 files changed, 115

[PATCH 34/72] softfloat: Move addsub_floats to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
In preparation for implementing multiple sizes. Rename to parts_addsub, split out parts_add/sub_normal for future reuse with muladd. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 253 ++- fpu/softfloat-parts-addsub.c.inc | 62

[PATCH 40/72] softfloat: Tidy mul128By64To192

2021-05-07 Thread Richard Henderson
Clean up the formatting and variables; no functional change. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index

[PATCH 38/72] softfloat: Use mulu64 for mul64To128

2021-05-07 Thread Richard Henderson
Via host-utils.h, we use a host widening multiply for 64-bit hosts, and a common subroutine for 32-bit hosts. Reviewed-by: Alex Bennée Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 23 +++ 1 file changed, 3

[PATCH 46/72] softfloat: Move rount_to_int_and_pack to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_float_to_sint. Reimplement float128_to_int{32,64}{_round_to_zero} with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 365 +- fpu/softfloat-parts.c.inc | 64 +++ 2 files changed, 145 insertions(+), 284

[PATCH 33/72] softfloat: Use uadd64_carry, usub64_borrow in softfloat-macros.h

2021-05-07 Thread Richard Henderson
Use compiler support for carry arithmetic. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 95 +- 1 file changed, 25 insertions(+), 70 deletions(-) diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index

[PATCH 37/72] softfloat: Move muladd_floats to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_muladd. Implement float128_muladd with FloatParts128. Signed-off-by: Richard Henderson --- include/fpu/softfloat.h | 2 + fpu/softfloat.c | 406 ++ tests/fp/fp-bench.c | 8 +- tests/fp/fp-test.c| 2 +-

[PATCH 31/72] softfloat: Move sf_canonicalize to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, rename to parts$N_canonicalize and define a macro for parts_canonicalize using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 117 +- fpu/softfloat-parts.c.inc | 33 +++ 2 files

[PATCH 29/72] softfloat: Move pick_nan to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, rename to parts$N_pick_nan and define a macro for parts_pick_nan using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 62 ++- fpu/softfloat-parts.c.inc | 25 2 files

[PATCH 28/72] softfloat: Move return_nan to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, rename to return_nan$N and define a macro for return_nan using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 45 ++- fpu/softfloat-parts.c.inc | 37 2

[PATCH 36/72] softfloat: Move mul_floats to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
Rename to parts$N_mul. Reimplement float128_mul with FloatParts128. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 206 ++ fpu/softfloat-parts.c.inc | 51 ++ 2 files changed, 128 insertions(+), 129 deletions(-) diff --git

[PATCH 23/72] softfloat: Use pointers with ftype_round_pack_canonical

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 131 +--- 1 file changed, 68 insertions(+), 63 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index e53d4a138f..b0cbd5941c 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 27/72] softfloat: Convert float128_default_nan to parts

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c| 17 - fpu/softfloat-specialize.c.inc | 19 +++ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 073b80d502..6d5392aeab 100644 ---

[PATCH 26/72] softfloat: Convert float128_silence_nan to parts

2021-05-07 Thread Richard Henderson
This is the minimal change that also introduces float128_params, float128_unpack_raw, and float128_pack_raw without running into unused symbol Werrors. Signed-off-by: Richard Henderson --- fpu/softfloat.c| 96 +- fpu/softfloat-specialize.c.inc |

[PATCH 35/72] softfloat: Implement float128_add/sub via parts

2021-05-07 Thread Richard Henderson
Replace the existing Berkeley implementation with the FloatParts implementation. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 257 +++- 1 file changed, 36 insertions(+), 221 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index

[PATCH 24/72] softfloat: Use pointers with parts_silence_nan

2021-05-07 Thread Richard Henderson
At the same time, rename to parts64_silence_nan, split out parts_silence_nan_frac, and define a macro for parts_silence_nan. Signed-off-by: Richard Henderson --- fpu/softfloat.c| 16 +--- fpu/softfloat-specialize.c.inc | 17 +++-- 2 files changed, 20

[PATCH 20/72] softfloat: Use pointers with pack_raw

2021-05-07 Thread Richard Henderson
At the same time, rename to pack_raw64. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 5a736a46cf..b59b777bca 100644 --- a/fpu/softfloat.c +++

[PATCH 13/72] target/mips: Set set_default_nan_mode with set_snan_bit_is_one

2021-05-07 Thread Richard Henderson
This behavior is currently hard-coded in parts_silence_nan, but setting this bit properly will allow this to be cleaned up. Signed-off-by: Richard Henderson --- target/mips/fpu_helper.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/mips/fpu_helper.h

[PATCH 32/72] softfloat: Move round_canonical to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, renaming to parts$N_uncanon, and define a macro for parts_uncanon using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 201 +- fpu/softfloat-parts.c.inc | 148

[PATCH 15/72] softfloat: Rename FloatParts to FloatParts64

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c| 362 - fpu/softfloat-specialize.c.inc | 6 +- 2 files changed, 184 insertions(+), 184 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 6589f00b23..27b51659c9 100644 ---

[PATCH 19/72] softfloat: Use pointers with ftype_unpack_raw

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 76 +++-- 1 file changed, 48 insertions(+), 28 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 5ff9368012..5a736a46cf 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 18/72] softfloat: Use pointers with unpack_raw

2021-05-07 Thread Richard Henderson
At the same time, rename to unpack_raw64. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index c7f95961cf..5ff9368012 100644 --- a/fpu/softfloat.c +++

[PATCH 25/72] softfloat: Rearrange FloatParts64

2021-05-07 Thread Richard Henderson
Shuffle the fraction to the end, otherwise sort by size. Add frac_hi and frac_lo members to alias frac. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index

[PATCH 16/72] softfloat: Move type-specific pack/unpack routines

2021-05-07 Thread Richard Henderson
In preparation from moving sf_canonicalize. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 109 +--- 1 file changed, 56 insertions(+), 53 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 27b51659c9..398a068b58 100644 ---

[PATCH 06/72] softfloat: Move the binary point to the msb

2021-05-07 Thread Richard Henderson
Rather than point the binary point at msb-1, put it at the msb. Use uadd64_overflow to detect when addition overflows instead of DECOMPOSED_OVERFLOW_BIT. This reduces the number of special cases within the code, such as shifting an int64_t either left or right during conversion. Signed-off-by:

[PATCH 12/72] softfloat: fix return_nan vs default_nan_mode

2021-05-07 Thread Richard Henderson
Do not call parts_silence_nan when default_nan_mode is in effect. This will avoid an assert in a later patch. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index

[PATCH 30/72] softfloat: Move pick_nan_muladd to softfloat-parts.c.inc

2021-05-07 Thread Richard Henderson
At the same time, convert to pointers, rename to pick_nan_muladd$N and define a macro for pick_nan_muladd using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 53 ++- fpu/softfloat-parts.c.inc | 40 +

[PATCH 11/72] softfloat: Use return_nan in float_to_float

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 64edb23793..b694e38522 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -1931,13 +1931,7 @@ static FloatParts

[PATCH 17/72] softfloat: Use pointers with parts_default_nan

2021-05-07 Thread Richard Henderson
At the same time, rename to parts64_default_nan and define a macro for parts_default_nan using QEMU_GENERIC. Signed-off-by: Richard Henderson --- fpu/softfloat.c| 47 +++--- fpu/softfloat-specialize.c.inc | 4 +-- 2 files changed, 34 insertions(+),

[PATCH 07/72] softfloat: Inline float_raise

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- include/fpu/softfloat.h| 5 - fpu/softfloat-specialize.c.inc | 12 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 78ad5ca738..019c2ec66d 100644 ---

[PATCH 22/72] softfloat: Use pointers with ftype_unpack_canonical

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 509 ++-- 1 file changed, 320 insertions(+), 189 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index e02cbafaf9..e53d4a138f 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@

[PATCH 14/72] softfloat: Do not produce a default_nan from parts_silence_nan

2021-05-07 Thread Richard Henderson
Require default_nan_mode to be set instead. Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.c.inc | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc index 487b29155c..5988830c16 100644 ---

[PATCH 09/72] softfloat: Tidy a * b + inf return

2021-05-07 Thread Richard Henderson
No reason to set values in 'a', when we already have float_class_inf in 'c', and can flip that sign. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- fpu/softfloat.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH 05/72] tests/fp: add quad support to the benchmark utility

2021-05-07 Thread Richard Henderson
From: Alex Bennée Currently this only support softfloat calculations because working out if the hardware supports 128 bit floats needs configure magic. The 3 op muladd operation is currently unimplemented so commented out for now. Signed-off-by: Alex Bennée Message-Id:

[PATCH 21/72] softfloat: Use pointers with ftype_pack_raw

2021-05-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- fpu/softfloat.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index b59b777bca..e02cbafaf9 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -626,24

[PATCH 10/72] softfloat: Add float_cmask and constants

2021-05-07 Thread Richard Henderson
Testing more than one class at a time is better done with masks. This reduces the static branch count. Reviewed-by: Alex Bennée Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- fpu/softfloat.c | 30 +++--- 1 file changed, 23 insertions(+), 7

[PATCH 00/72] Convert floatx80 and float128 to FloatParts

2021-05-07 Thread Richard Henderson
Reorg everything using QEMU_GENERIC and multiple inclusion to reduce the amount of code duplication between the formats. The use of QEMU_GENERIC means that we need to use pointers instead of structures, which means that even the smaller float formats need rearranging. I've carried it through to

[PATCH 08/72] softfloat: Use float_raise in more places

2021-05-07 Thread Richard Henderson
We have been somewhat inconsistent about when to use float_raise and when to or in the bit by hand. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 87 + 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/fpu/softfloat.c

[PATCH 04/72] accel/tcg: Use add/sub overflow routines in tcg-runtime-gvec.c

2021-05-07 Thread Richard Henderson
Obvious uses of the new functions. Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime-gvec.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/accel/tcg/tcg-runtime-gvec.c b/accel/tcg/tcg-runtime-gvec.c index

[PATCH 03/72] qemu/host-utils: Add wrappers for carry builtins

2021-05-07 Thread Richard Henderson
These builtins came in clang 3.8, but are not present in gcc through version 11. Even in clang the optimization is not ideal except for x86_64, but no worse than the hand-coding that we currently do. Signed-off-by: Richard Henderson --- include/qemu/host-utils.h | 50

[PATCH 02/72] qemu/host-utils: Add wrappers for overflow builtins

2021-05-07 Thread Richard Henderson
These builtins came in with gcc 5 and clang 3.8, which are slightly newer than our supported minimum compiler versions. Signed-off-by: Richard Henderson --- include/qemu/host-utils.h | 225 ++ 1 file changed, 225 insertions(+) diff --git

[PATCH 01/72] qemu/host-utils: Use __builtin_bitreverseN

2021-05-07 Thread Richard Henderson
Clang has added some builtins for these operations; use them if available. Signed-off-by: Richard Henderson --- include/qemu/host-utils.h | 16 1 file changed, 16 insertions(+) diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h index cdca2991d8..f1e52851e0

Re: [PATCH v2] This makes it easier to figure out whether a particular instruction was actually translated.

2021-05-07 Thread Richard Henderson
On 5/7/21 3:48 PM, Nathan Ringo wrote: -trace_translate_block(tb, tb->pc, tb->tc.ptr); +trace_translate_block(tb, tb->pc, (int)tb->icount, tb->tc.ptr); What target are you looking at, because for the variable-length isa's, instruction count may not really help. Perhaps tb->size

[PATCH v2] This makes it easier to figure out whether a particular instruction was actually translated.

2021-05-07 Thread Nathan Ringo
Signed-off-by: Nathan Ringo --- accel/tcg/trace-events| 2 +- accel/tcg/translate-all.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/tcg/trace-events b/accel/tcg/trace-events index 6eefb37f5d..c227e56248 100644 --- a/accel/tcg/trace-events +++

(No Subject)

2021-05-07 Thread Nathan Ringo
Updates for QEMU 6.0.0.

Re: [PATCH v3] target/i386/sev: add support to query the attestation report

2021-05-07 Thread Connor Kuehl
On 4/29/21 12:07 PM, Brijesh Singh wrote: > The SEV FW >= 0.23 added a new command that can be used to query the > attestation report containing the SHA-256 digest of the guest memory > and VMSA encrypted with the LAUNCH_UPDATE and sign it with the PEK. > > Note, we already have a command

Re: [PATCH v2 09/11] pckbd: add function kbd_pending()

2021-05-07 Thread Philippe Mathieu-Daudé
On 5/7/21 8:09 PM, Volker Rümelin wrote: > Replace reads of the variable s->pending with a call to a new > function kbd_pending() to ease the review of the next patch. > There is no functional change. > > Signed-off-by: Volker Rümelin > --- > hw/input/pckbd.c | 21 ++--- > 1

Re: [PATCH v3 18/17] tests/unit/test-char: Replace g_alloca() by buffer on the stack

2021-05-07 Thread Richard Henderson
On 5/7/21 1:44 PM, Marc-André Lureau wrote: -    CharBackend *be; +    CharBackend tmpbe, *be = Why introduce tmpbe? to avoid some code churn? I would rather update the code to use be. or There's a branch with "be = reuse_chr->be" r~

Re: [PATCH v3 18/17] tests/unit/test-char: Replace g_alloca() by buffer on the stack

2021-05-07 Thread Marc-André Lureau
Hi On Fri, May 7, 2021 at 9:22 PM Philippe Mathieu-Daudé wrote: > The ALLOCA(3) man-page mentions its "use is discouraged". > > Directly reserve the CharBackend on the stack. > > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/unit/test-char.c | 3 +-- > 1 file changed, 1 insertion(+), 2

[PATCH v2 00/11] PS/2 controller related fixes

2021-05-07 Thread Volker Rümelin
This patch series fixes two different PS/2 mouse stream corruptions and adds a feature that allows some old misbehaving DOS programs to have a working keyboard. With the last few patches, the PS/2 con- troller behaves more like a real controller. v2: Introduce the function kbd_pending() in a

[PATCH v2 06/11] pckbd: PS/2 keyboard throttle

2021-05-07 Thread Volker Rümelin
Limit the keyboard data rate to the serial link speed. Some old DOS software relies on being able to read an incoming scan-code more than once. After reading keyboard data from the i8042 controller, the guest software has 1ms to read the same data again. Use -global i8042.kbd-throttle=on to

[PATCH v2 05/11] pckbd: don't update OBF flags if KBD_STAT_OBF is set

2021-05-07 Thread Volker Rümelin
Don't update the OBF flags in the status register and the cor- responding IRQ lines if KBD_STAT_OBF is set. Otherwise this may change the PS/2 event type. If the guest ISR was already scheduled, the changed event type will be rather surprising for the guest. This fixes a mouse event stream

  1   2   3   >