Trivial branch for 5.2 patches
Subsystems (2)
The following changes since commit 2387df497b4b4bcf754eb7398edca82889e2ef54:
Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-branch-for-5.2-pull-request
for you to fetch changes up to ef3a1d9fc36140f8933fbced70ee21fd9740b33c:
meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013
----------------------------------------------------------------
Christian Borntraeger (1):
vmdk: fix maybe uninitialized warnings
Elena Afanasova (1):
block/blkdebug: fix memory leak
Greg Kurz (1):
hw/acpi/piix4: Rename piix4_pm_add_propeties() to
piix4_pm_add_properties()
Julia Suvorova (1):
hw/pci: Fix typo in PCI hot-plug error message
Laurent Vivier (2):
hw/char/serial: remove duplicate .class_init in serial_mm_info
goldfish_rtc: change MemoryRegionOps endianness to
DEVICE_NATIVE_ENDIAN
Marc-Andr=C3=A9 Lureau (1):
mingw: fix error __USE_MINGW_ANSI_STDIO redefined
Markus Armbruster (2):
qemu-img-cmds.hx: Update comment that mentions Texinfo target/i386/cpu: Update comment that mentions Texinfo
Philippe Mathieu-Daud=C3=A9 (3):
hw/block/nvme: Simplify timestamp sum
softmmu/memory: Log invalid memory accesses target/sparc/int32_helper: Remove duplicated 'Tag Overflow' entry
Sergei Trofimovich (1):
meson.build: drop duplicate 'sparc64' entry
Thomas Huth (2):
hw/rtc/twl92230: Silence warnings about missing fallthrough statements tests/test-char: Use a proper fallthrough comment
block/blkdebug.c | 1 + block/vmdk.c | 8 +++--- hw/acpi/piix4.c | 4 +-- hw/block/nvme.c | 7 +----- hw/char/serial.c | 1 - hw/pci/pci.c | 2 +- hw/ppc/spapr_pci.c | 2 +- hw/rtc/goldfish_rtc.c | 2 +- hw/rtc/twl92230.c | 50 ++++++++++++++++++------------------- meson.build | 2 +- migration/dirtyrate.c | 3 ++- qemu-img-cmds.hx | 2 +- softmmu/memory.c | 16 ++++++++++++ target/i386/cpu.c | 3 ++- target/sparc/int32_helper.c | 1 - tests/test-bitmap.c | 1 - tests/test-char.c | 2 +- 17 files changed, 58 insertions(+), 49 deletions(-)
--=20
2.26.2
[PULL 02/15] target/i386/cpu: Update comment that mentions Texinfo
From: Markus Armbruster <[email protected]>
Missed in commit 41fba1618b "docs/system: convert the documentation of deprecated features to rST."
Message-Id: <[email protected]>
--- target/i386/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target/i386/cpu.c +2 -1
@@ -4127,7 +4127,8 @@ static PropValue tcg_default_props[] = {* We resolve CPU model aliases using -v1 when using "-machine * none", but this is just for compatibility while libvirt isn't * adapted to resolve CPU model versions before creating VMs. -* See "Runnability guarantee of CPU models" at * qemu-deprecated.texi. +* See "Runnability guarantee of CPU models" at +* docs/system/deprecated.rst. */ X86CPUVersion default_cpu_version =1 ;
Signature · 1 line
2.26.2
[PULL 01/15] qemu-img-cmds.hx: Update comment that mentions Texinfo
In reply to Laurent VivierFrom: Markus Armbruster <[email protected]>
Missed in 3c95fdef94 "Update comments in .hx files that mention Texinfo".
Message-Id: <[email protected]>
--- qemu-img-cmds.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-img-cmds.hx +1 -1
@@ -1,5 +1,5 @@ HXCOMM Keep the list of subcommands sorted by name. -HXCOMM Use DEFHEADING() to define headings in both help text and texi +HXCOMM Use DEFHEADING() to define headings in both help text and rST HXCOMM Text between SRST and ERST are copied to rST version and HXCOMM discarded from C version HXCOMM DEF(command, callback, arg_string) is used to construct
Signature · 1 line
2.26.2
[PULL 03/15] hw/rtc/twl92230: Silence warnings about missing fallthrough statements
In reply to Laurent VivierFrom: Thomas Huth <[email protected]>
When compiling with -Werror=implicit-fallthrough, gcc complains about missing fallthrough annotations in this file. Looking at the code, the fallthrough is indeed wanted here, but instead of adding the annotations, it can be done more efficiently by simply calculating the offset with a subtraction instead of increasing a local variable one by one.
Message-Id: <[email protected]>
--- hw/rtc/twl92230.c | 50 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 26 deletions(-)
hw/rtc/twl92230.c +24 -26
@@ -271,37 +271,36 @@ static void menelaus_gpio_set(void *opaque, int line, int level)static uint8_t menelaus_read (void *opaque,uint8_t addr) {MenelausState *s = (MenelausState *) opaque; -int reg =0 ;switch (addr) {case MENELAUS_REV :return 0x22 ; -case MENELAUS_VCORE_CTRL5 : reg ++; -case MENELAUS_VCORE_CTRL4 : reg ++; -case MENELAUS_VCORE_CTRL3 : reg ++; -case MENELAUS_VCORE_CTRL2 : reg ++; +case MENELAUS_VCORE_CTRL5 : +case MENELAUS_VCORE_CTRL4 : +case MENELAUS_VCORE_CTRL3 : +case MENELAUS_VCORE_CTRL2 :case MENELAUS_VCORE_CTRL1 : -return s->vcore[reg]; +return s->vcore[addr -MENELAUS_VCORE_CTRL1 ]; -case MENELAUS_DCDC_CTRL3 : reg ++; -case MENELAUS_DCDC_CTRL2 : reg ++; +case MENELAUS_DCDC_CTRL3 : +case MENELAUS_DCDC_CTRL2 :case MENELAUS_DCDC_CTRL1 : -return s->dcdc[reg]; - -case MENELAUS_LDO_CTRL8 : reg ++; -case MENELAUS_LDO_CTRL7 : reg ++; -case MENELAUS_LDO_CTRL6 : reg ++; -case MENELAUS_LDO_CTRL5 : reg ++; -case MENELAUS_LDO_CTRL4 : reg ++; -case MENELAUS_LDO_CTRL3 : reg ++; -case MENELAUS_LDO_CTRL2 : reg ++; +return s->dcdc[addr -MENELAUS_VCORE_CTRL1 ]; + +case MENELAUS_LDO_CTRL8 : +case MENELAUS_LDO_CTRL7 : +case MENELAUS_LDO_CTRL6 : +case MENELAUS_LDO_CTRL5 : +case MENELAUS_LDO_CTRL4 : +case MENELAUS_LDO_CTRL3 : +case MENELAUS_LDO_CTRL2 :case MENELAUS_LDO_CTRL1 : -return s->ldo[reg]; +return s->ldo[addr -MENELAUS_LDO_CTRL1 ]; -case MENELAUS_SLEEP_CTRL2 : reg ++; +case MENELAUS_SLEEP_CTRL2 :case MENELAUS_SLEEP_CTRL1 : -return s->sleep[reg]; +return s->sleep[addr -MENELAUS_SLEEP_CTRL1 ];case MENELAUS_DEVICE_OFF :return 0 ;
@@ -395,10 +394,10 @@ static uint8_t menelaus_read(void *opaque, uint8_t addr)case MENELAUS_S2_PULL_DIR :return s->pull[3 ]; -case MENELAUS_MCT_CTRL3 : reg ++; -case MENELAUS_MCT_CTRL2 : reg ++; +case MENELAUS_MCT_CTRL3 : +case MENELAUS_MCT_CTRL2 :case MENELAUS_MCT_CTRL1 : -return s->mmc_ctrl[reg]; +return s->mmc_ctrl[addr -MENELAUS_MCT_CTRL1 ];case MENELAUS_MCT_PIN_ST :/* TODO: return the real Card Detect */ return 0 ;
@@ -418,7 +417,6 @@ static void menelaus_write(void *opaque, uint8_t addr, uint8_t value) {MenelausState *s = (MenelausState *) opaque;int line; -int reg =0 ;struct tm tm;switch (addr) {
@@ -496,9 +494,9 @@ static void menelaus_write(void *opaque, uint8_t addr, uint8_t value) s->ldo[7 ] = value &3 ;break ; -case MENELAUS_SLEEP_CTRL2 : reg ++; +case MENELAUS_SLEEP_CTRL2 :case MENELAUS_SLEEP_CTRL1 : - s->sleep[reg] = value; + s->sleep[addr -MENELAUS_SLEEP_CTRL1 ] = value;break ;case MENELAUS_DEVICE_OFF :
Signature · 1 line
2.26.2
[PULL 05/15] tests/test-char: Use a proper fallthrough comment
In reply to Laurent VivierFrom: Thomas Huth <[email protected]>
For being able to compile with -Werror=implicit-fallthrough we need to use comments that the compiler recognizes. Use "fallthrough" instead of "no break" here.
Message-Id: <[email protected]>
--- tests/test-char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test-char.c +1 -1
@@ -70,7 +70,7 @@ static void fe_event(void *opaque, QEMUChrEvent event) h->openclose_mismatch = true; } h->is_open = new_open_state; -/* no break */ +/* fallthrough */ default : quit = true;break ;
Signature · 1 line
2.26.2
[PULL 09/15] hw/pci: Fix typo in PCI hot-plug error message
In reply to Laurent VivierFrom: Julia Suvorova <[email protected]>
'occupied' is spelled like 'ocuppied' in the message.
Message-Id: <[email protected]>
--- hw/pci/pci.c | 2 +- hw/ppc/spapr_pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/pci/pci.c +1 -1
@@ -1036,7 +1036,7 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev,return NULL ; }else if (dev->hotplugged &&pci_get_function_0 (pci_dev)) { - error_setg(errp, "PCI: slot %d function 0 already ocuppied by %s," + error_setg(errp, "PCI: slot %d function 0 already occupied by %s," " new func %s cannot be exposed to guest.", PCI_SLOT(pci_get_function_0(pci_dev)->devfn), pci_get_function_0(pci_dev)->name,
hw/ppc/spapr_pci.c +1 -1
@@ -1571,7 +1571,7 @@ static void spapr_pci_plug(HotplugHandler *plug_handler,*/ if (plugged_dev->hotplugged && bus->devices[PCI_DEVFN (slotnr,0 )] &&PCI_FUNC (pdev->devfn) !=0 ) { -error_setg (errp,"PCI: slot %d function 0 already ocuppied by %s," +error_setg (errp,"PCI: slot %d function 0 already occupied by %s," " additional functions can no longer be exposed to guest." , slotnr, bus->devices[PCI_DEVFN (slotnr,0 )]->name);return ;
Signature · 1 line
2.26.2
[PULL 10/15] block/blkdebug: fix memory leak
In reply to Laurent VivierFrom: Elena Afanasova <[email protected]>
Spotted by PVS-Studio
Message-Id: <[email protected]>
--- block/blkdebug.c | 1 + 1 file changed, 1 insertion(+)
block/blkdebug.c +1 -0
@@ -215,6 +215,7 @@ static int add_rule(void *opaque, QemuOpts *opts, Error **errp) BLKDEBUG_IO_TYPE__MAX, &local_error);if (local_error) {error_propagate (errp, local_error); +g_free (rule);return -1 ; }if (iotype !=BLKDEBUG_IO_TYPE__MAX ) {
Signature · 1 line
2.26.2
[PULL 08/15] softmmu/memory: Log invalid memory accesses
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Log invalid memory accesses with as GUEST_ERROR.
This is particularly useful since commit 5d971f9e67 which reverted ("memory: accept mismatching sizes in memory_region_access_valid").
Message-Id: <[email protected]>
--- softmmu/memory.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
softmmu/memory.c +16 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qemu/log.h" #include "qapi/error.h" #include "cpu.h" #include "exec/memory.h"
@@ -1353,10 +1354,18 @@ bool memory_region_access_valid(MemoryRegion *mr, {if (mr->ops->valid.accepts && !mr->ops->valid.accepts (mr->opaque, addr, size, is_write, attrs)) { +qemu_log_mask (LOG_GUEST_ERROR ,"Invalid access at addr " +"0x%" HWADDR_PRIX ", size %u, " +"region '%s', reason: rejected\n" , + addr, size,memory_region_name (mr));return false; }if (!mr->ops->valid.unaligned && (addr & (size -1 ))) { +qemu_log_mask (LOG_GUEST_ERROR ,"Invalid access at addr " +"0x%" HWADDR_PRIX ", size %u, " +"region '%s', reason: unaligned\n" , + addr, size,memory_region_name (mr));return false; }
@@ -1367,6 +1376,13 @@ bool memory_region_access_valid(MemoryRegion *mr,if (size > mr->ops->valid.max_access_size || size < mr->ops->valid.min_access_size) { +qemu_log_mask (LOG_GUEST_ERROR ,"Invalid access at addr " +"0x%" HWADDR_PRIX ", size %u, " +"region '%s', reason: invalid size " +"(min:%u max:%u)\n" , + addr, size,memory_region_name (mr), + mr->ops->valid.min_access_size, + mr->ops->valid.max_access_size);return false; }return true;
Signature · 1 line
2.26.2
[PULL 13/15] target/sparc/int32_helper: Remove duplicated 'Tag Overflow' entry
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Commit 0b09be2b2f ("Nicer debug output for exceptions") added twice the same "Tag Overflow" entry, remove the extra one.
Message-Id: <[email protected]>
--- target/sparc/int32_helper.c | 1 - 1 file changed, 1 deletion(-)
target/sparc/int32_helper.c +0 -1
@@ -50,7 +50,6 @@ static const char * const excp_names[0x80] = { [TT_EXTINT | 0xd] = "External Interrupt 13", [TT_EXTINT | 0xe] = "External Interrupt 14", [TT_EXTINT | 0xf] = "External Interrupt 15", - [TT_TOVF] = "Tag Overflow", [TT_CODE_ACCESS] = "Instruction Access Error", [TT_DATA_ACCESS] = "Data Access Error", [TT_DIV_ZERO] = "Division By Zero",
Signature · 1 line
2.26.2
[PULL 07/15] hw/acpi/piix4: Rename piix4_pm_add_propeties() to piix4_pm_add_properties()
In reply to Laurent VivierFrom: Greg Kurz <[email protected]>
Message-Id: <[email protected]>
--- hw/acpi/piix4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/acpi/piix4.c +2 -2
@@ -437,7 +437,7 @@ static void piix4_pm_machine_ready(Notifier *n, void *opaque) (memory_region_present (io_as,0x2f8 ) ?0x90 :0 ); } -static void piix4_pm_add_propeties (PIIX4PMState *s) +static void piix4_pm_add_properties (PIIX4PMState *s) {static const uint8_t acpi_enable_cmd =ACPI_ENABLE ;static const uint8_t acpi_disable_cmd =ACPI_DISABLE ;
@@ -509,7 +509,7 @@ static void piix4_pm_realize(PCIDevice *dev, Error **errp) pci_get_bus(dev), s);qbus_set_hotplug_handler (BUS (pci_get_bus (dev)),OBJECT (s)); -piix4_pm_add_propeties (s); +piix4_pm_add_properties (s); } I2CBus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
Signature · 1 line
2.26.2
[PULL 12/15] goldfish_rtc: change MemoryRegionOps endianness to DEVICE_NATIVE_ENDIAN
In reply to Laurent VivierFrom: Laurent Vivier <[email protected]>
The doc [1] doesn't define the endianness, but the kernel driver uses readl() to access the registers, so we can guess it depends on the architecture endianness.
As riscv architecture endianness is little it might not change anything for it.
Moreover, android implementation uses DEVICE_NATIVE_ENDIAN [2]
[1] https://android.googlesource.com/platform/external/qemu/+/master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT
[2] https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/hw/timer/goldfish_timer.c#177
Message-Id: <[email protected]>
--- hw/rtc/goldfish_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/rtc/goldfish_rtc.c +1 -1
@@ -217,7 +217,7 @@ static int goldfish_rtc_post_load(void *opaque, int version_id)static const MemoryRegionOps goldfish_rtc_ops = { .read = goldfish_rtc_read, .write = goldfish_rtc_write, - .endianness =DEVICE_LITTLE_ENDIAN , + .endianness =DEVICE_NATIVE_ENDIAN , .valid = { .min_access_size =4 , .max_access_size =4
Signature · 1 line
2.26.2
[PULL 04/15] hw/block/nvme: Simplify timestamp sum
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
As the 'timestamp' variable is declared as a 48-bit bitfield, we do not need to wrap the sum result.
Message-Id: <[email protected]>
--- hw/block/nvme.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
hw/block/nvme.c +1 -6
@@ -1280,12 +1280,7 @@ static inline uint64_t nvme_get_timestamp(const NvmeCtrl *n)union nvme_timestamp ts; ts.all =0 ; - -/* -* If the sum of the Timestamp value set by the host and the elapsed -* time exceeds 2^48, the value returned should be reduced modulo 2^48. -*/ - ts.timestamp = (n->host_timestamp + elapsed_time) &0xffffffffffff ; + ts.timestamp = n->host_timestamp + elapsed_time;/* If the host timestamp is non-zero, set the timestamp origin */ ts.origin = n->host_timestamp ?0x01 :0x00 ;
Signature · 1 line
2.26.2
[PULL 14/15] mingw: fix error __USE_MINGW_ANSI_STDIO redefined
In reply to Laurent VivierFrom: Marc-André Lureau <[email protected]>
Always put osdep.h first, and remove redundant stdlib.h include.
Message-Id: <[email protected]>
--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)
migration/dirtyrate.c +2 -1
@@ -10,8 +10,9 @@* See the COPYING file in the top-level directory. */ -#include <zlib.h> #include "qemu/osdep.h" + +#include <zlib.h> #include "qapi/error.h" #include "cpu.h" #include "qemu/config-file.h"
tests/test-bitmap.c +0 -1
@@ -8,7 +8,6 @@* Author: Peter Xu <[email protected]> */ -#include <stdlib.h> #include "qemu/osdep.h" #include "qemu/bitmap.h"
Signature · 1 line
2.26.2
[PULL 11/15] hw/char/serial: remove duplicate .class_init in serial_mm_info
In reply to Laurent VivierFrom: Laurent Vivier <[email protected]>
.class_init is already set to serial_mm_class_init.
Remove the duplicate entry.
Message-Id: <[email protected]>
--- hw/char/serial.c | 1 - 1 file changed, 1 deletion(-)
hw/char/serial.c +0 -1
@@ -1120,7 +1120,6 @@ static const TypeInfo serial_mm_info = { .class_init = serial_mm_class_init, .instance_init = serial_mm_instance_init, .instance_size = sizeof(SerialMM), - .class_init = serial_mm_class_init, };static void serial_register_types (void )
Signature · 1 line
2.26.2
[PULL 06/15] vmdk: fix maybe uninitialized warnings
In reply to Laurent VivierFrom: Christian Borntraeger <[email protected]>
Fedora 32 gcc 10 seems to give false positives:
Compiling C object libblock.fa.p/block_vmdk.c.o../block/vmdk.c: In function ‘vmdk_parse_extents’:../block/vmdk.c:587:5: error: ‘extent’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
587 | g_free(extent->l1_table);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../block/vmdk.c:754:17: note: ‘extent’ was declared here
754 | VmdkExtent *extent;
| ^~~~~~
../block/vmdk.c:620:11: error: ‘extent’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
620 | ret = vmdk_init_tables(bs, extent, errp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../block/vmdk.c:598:17: note: ‘extent’ was declared here
598 | VmdkExtent *extent;
| ^~~~~~
../block/vmdk.c:1178:39: error: ‘extent’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
1178 | extent->flat_start_offset = flat_offset << 9;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../block/vmdk.c: In function ‘vmdk_open_vmdk4’:
../block/vmdk.c:581:22: error: ‘extent’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
581 | extent->l2_cache =
| ~~~~~~~~~~~~~~~~~^
582 | g_malloc(extent->entry_size * extent->l2_size * L2_CACHE_SIZE);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../block/vmdk.c:872:17: note: ‘extent’ was declared here
872 | VmdkExtent *extent;
| ^~~~~~
../block/vmdk.c: In function ‘vmdk_open’:
../block/vmdk.c:620:11: error: ‘extent’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
620 | ret = vmdk_init_tables(bs, extent, errp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../block/vmdk.c:598:17: note: ‘extent’ was declared here
598 | VmdkExtent *extent;
| ^~~~~~cc1: all warnings being treated as errors
make: *** [Makefile.ninja:884: libblock.fa.p/block_vmdk.c.o] Error 1
fix them by assigning a default value.
Message-Id: <[email protected]>
--- block/vmdk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
block/vmdk.c +4 -4
@@ -595,7 +595,7 @@ static int vmdk_open_vmfs_sparse(BlockDriverState *bs,int ret;uint32_t magic;VMDK3Header header; -VmdkExtent *extent; +VmdkExtent *extent =NULL ; ret =bdrv_pread (file,sizeof (magic), &header,sizeof (header));if (ret <0 ) {
@@ -751,7 +751,7 @@ static int vmdk_open_se_sparse(BlockDriverState *bs,int ret;VMDKSESparseConstHeader const_header;VMDKSESparseVolatileHeader volatile_header; -VmdkExtent *extent; +VmdkExtent *extent =NULL ; ret =bdrv_apply_auto_read_only (bs,"No write support for seSparse images available" , errp);
@@ -869,7 +869,7 @@ static int vmdk_open_vmdk4(BlockDriverState *bs,uint32_t magic;uint32_t l1_size, l1_entry_sectors;VMDK4Header header; -VmdkExtent *extent; +VmdkExtent *extent =NULL ;BDRVVmdkState *s = bs->opaque;int64_t l1_backup_offset =0 ;bool compressed;
@@ -1088,7 +1088,7 @@ static int vmdk_parse_extents(const char *desc, BlockDriverState *bs,BdrvChild *extent_file;BdrvChildRole extent_role;BDRVVmdkState *s = bs->opaque; -VmdkExtent *extent; +VmdkExtent *extent =NULL ;char extent_opt_prefix[32 ];Error *local_err =NULL ;
Signature · 1 line
2.26.2
[PULL 15/15] meson.build: drop duplicate 'sparc64' entry
In reply to Laurent VivierFrom: Sergei Trofimovich <[email protected]>
Message-Id: <[email protected]>
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -41,7 +41,7 @@ have_block = have_system or have_tools python = import('python').find_installation() supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin', 'sunos', 'linux'] -supported_cpus = ['ppc', 'ppc64', 's390x', 'sparc64', 'riscv32', 'riscv64', 'x86', 'x86_64', +supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv32', 'riscv64', 'x86', 'x86_64', 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64'] cpu = host_machine.cpu_family()
Signature · 1 line
2.26.2
Quoted 10 lines · Laurent Vivier
The following changes since commit
2387df497b4b4bcf754eb7398edca82889e2ef54:Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-5.2-pull-request
Quoted 8 lines
for you to fetch changes up to
ef3a1d9fc36140f8933fbced70ee21fd9740b33c:meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013----------------------------------------------------------------
Compile failure on ppc64be:
../../hw/rtc/twl92230.c: In function ‘menelaus_rx’:../../hw/rtc/twl92230.c:289:23: error: array subscript is above array bounds [-Werror=array-bounds]
return s->dcdc[addr - MENELAUS_VCORE_CTRL1];
^cc1: all warnings being treated as errors
thanks
-- PMM
Le 13/10/2020 à 13:06, Peter Maydell a écrit :
Quoted 20 lines · Laurent Vivier
Quoted 10 lines
The following changes since commit
2387df497b4b4bcf754eb7398edca82889e2ef54:Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-5.2-pull-requestQuoted 8 lines
for you to fetch changes up to
ef3a1d9fc36140f8933fbced70ee21fd9740b33c:meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013----------------------------------------------------------------
Quoted 8 lines
Compile failure on ppc64be:
../../hw/rtc/twl92230.c: In function ‘menelaus_rx’:../../hw/rtc/twl92230.c:289:23: error: array subscript is above array bounds [-Werror=array-bounds]return s->dcdc[addr - MENELAUS_VCORE_CTRL1]; ^cc1: all warnings being treated as errors
Thank you.
I'm removing the following patch patch from the pull request:
hw/rtc/twl92230: Silence warnings about missing fallthrough statements
Thanks,
Laurent
Quoted 18 lines · Peter Maydell
Quoted 17 lines · Laurent Vivier
The following changes since commit
2387df497b4b4bcf754eb7398edca82889e2ef54:Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-5.2-pull-requestfor you to fetch changes up to
ef3a1d9fc36140f8933fbced70ee21fd9740b33c:meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013
Quoted 8 lines
Quoted 1 line
----------------------------------------------------------------
Compile failure on ppc64be:
../../hw/rtc/twl92230.c: In function ‘menelaus_rx’:../../hw/rtc/twl92230.c:289:23: error: array subscript is above array bounds [-Werror=array-bounds]return s->dcdc[addr - MENELAUS_VCORE_CTRL1];
Uh, oh, mea culpa, copy-n-paste error... that should have been MENELAUS_DCDC_CTRL1 instead.
Laurent, could you fix it up, or shall I send a v2 of the patch?
Thomas
Le 13/10/2020 à 13:34, Thomas Huth a écrit :
Quoted 23 lines · Peter Maydell
Quoted 22 lines · Laurent Vivier
Quoted 10 lines
The following changes since commit
2387df497b4b4bcf754eb7398edca82889e2ef54:Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-5.2-pull-requestQuoted 8 lines
for you to fetch changes up to
ef3a1d9fc36140f8933fbced70ee21fd9740b33c:meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013----------------------------------------------------------------
Compile failure on ppc64be:
Quoted 8 lines
Quoted 4 lines
../../hw/rtc/twl92230.c: In function ‘menelaus_rx’:../../hw/rtc/twl92230.c:289:23: error: array subscript is above array bounds [-Werror=array-bounds]return s->dcdc[addr - MENELAUS_VCORE_CTRL1];Uh, oh, mea culpa, copy-n-paste error... that should have been
MENELAUS_DCDC_CTRL1instead.
Laurent, could you fix it up, or shall I send a v2 of the patch?
I prefere a v2, I don't like to play with patches in a pull request.
Thanks,
Laurent
Quoted 29 lines · Laurent Vivier
Le 13/10/2020 à 13:34, Thomas Huth a écrit :
Quoted 28 lines · Peter Maydell
Quoted 26 lines · Laurent Vivier
Quoted 10 lines
The following changes since commit
2387df497b4b4bcf754eb7398edca82889e2ef54:Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-10-10' int=
o staging (2020-10-12 11:29:42 +0100)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-5.2-pull-requestQuoted 8 lines
for you to fetch changes up to
ef3a1d9fc36140f8933fbced70ee21fd9740b33c:meson.build: drop duplicate 'sparc64' entry (2020-10-12 23:11:32 +0200)
----------------------------------------------------------------
Trivial Patches Pull request 20201013----------------------------------------------------------------
Compile failure on ppc64be:
../../hw/rtc/twl92230.c: In function ‘menelaus_rx’:../../hw/rtc/twl92230.c:289:23: error: array subscript is above array bounds [-Werror=array-bounds]return s->dcdc[addr - MENELAUS_VCORE_CTRL1];
Quoted 5 lines
Quoted 3 lines
Uh, oh, mea culpa, copy-n-paste error... that should have been
MENELAUS_DCDC_CTRL1instead.
Laurent, could you fix it up, or shall I send a v2 of the patch?I prefere a v2, I don't like to play with patches in a pull request.
Sure, I'll send a v2 when I've got some spare time (i.e. for a future pull request, not for this one).
Thomas