Trivial patches patches
The following changes since commit 808ebd66e467f77c0d1f8c6346235f81e9c99cf2:
Merge remote-tracking branch 'remotes/riscv/tags/riscv-for-master-3.1-sf0' into staging (2018-10-25 17:41:03 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-patches-pull-request
for you to fetch changes up to 4b03da6e87c34793137a231b558231fd406c05e8:
ppc: move at24c to its own CONFIG_ symbol (2018-10-26 17:17:32 +0200)
----------------------------------------------------------------
QEMU trivial patches collected between June and October 2018 (Thank you to Thomas Huth)
----------------------------------------------------------------
Cleber Rosa (6):
tests/tcg/README: fix location for lm32 tests
qemu-iotests: fix filename containing checks docs/devel/testing.rst: add missing newlines after code block scripts/decodetree.py: remove unused imports scripts/qemu.py: remove trailing quotes on docstring
qemu-iotests: make 218 executable
Emilio G. Cota (1):
linux-user: fix comment s/atomic_write/atomic_set/
Li Qiang (2):
memory.h: fix typos in comments
cpu.h: fix a typo in comment
Paolo Bonzini (1):
ppc: move at24c to its own CONFIG_ symbol
Philippe Mathieu-Daudé (6):
qobject: Catch another straggler for use of qdict_put_str()
xen: Use the PCI_DEVICE macro
tests/bios-tables-test: Remove an useless cast hw/pci-host: Remove useless parenthesis around DIV_ROUND_UP macro hw/intc/gicv3: Remove useless parenthesis around DIV_ROUND_UP macro
milkymist-minimac2: Use qemu_log_mask(GUEST_ERROR) instead of
error_report
Stefan Weil (2):
tests: Fix typos in comments and help message (found by codespell)
configure: Support pkg-config for zlib
Thomas Huth (1):
configs/alpha: Remove unused CONFIG_PARALLEL_ISA switch
yuchenlin (1):
vga_int: remove unused function protype
configure | 40 +++++++++++++++------------ default-configs/alpha-softmmu.mak | 1 - default-configs/ppc-softmmu.mak | 1 + docs/devel/testing.rst | 2 ++ hw/display/vga_int.h | 1 - hw/net/milkymist-minimac2.c | 14 ++++++---- hw/nvram/Makefile.objs | 2 +- hw/pci-host/piix.c | 2 +- hw/pci-host/q35.c | 2 +- hw/xen/xen_pt_config_init.c | 8 +++--- include/exec/memory.h | 6 ++-- include/hw/intc/arm_gicv3_common.h | 2 +- include/qom/cpu.h | 2 +- linux-user/qemu.h | 2 +- qobject/block-qdict.c | 2 +- scripts/decodetree.py | 2 -- scripts/qemu.py | 2 +- tests/bios-tables-test.c | 4 +-- tests/docker/Makefile.include | 2 +- tests/docker/docker.py | 4 +-- tests/guest-debug/test-gdbstub.py | 2 +- tests/qemu-iotests/218 | 0 tests/qemu-iotests/common.qemu | 2 +- tests/qemu-iotests/common.rc | 4 +-- tests/tcg/Makefile.include | 2 +- tests/tcg/Makefile.probe | 2 +- tests/tcg/README | 2 +- tests/tcg/mips/mips64-dsp/subq_s_pw.c | 2 +- 28 files changed, 63 insertions(+), 54 deletions(-) mode change 100644 => 100755 tests/qemu-iotests/218
Signature · 1 line
2.17.2
[PULL 01/20] configs/alpha: Remove unused CONFIG_PARALLEL_ISA switch
From: Thomas Huth <[email protected]>
We don't use CONFIG_PARALLEL_ISA in any of our Makefiles, so this is just a dead config option which can be removed.
Message-Id: <[email protected]>
--- default-configs/alpha-softmmu.mak | 1 - 1 file changed, 1 deletion(-)
default-configs/alpha-softmmu.mak +0 -1
@@ -8,7 +8,6 @@ CONFIG_I82374=y CONFIG_I8254=y CONFIG_I8257=y CONFIG_PARALLEL=y -CONFIG_PARALLEL_ISA=y CONFIG_FDC=y CONFIG_PCKBD=y CONFIG_VGA_CIRRUS=y
Signature · 1 line
2.17.2
[PULL 02/20] vga_int: remove unused function protype
In reply to Laurent VivierFrom: yuchenlin <[email protected]>
Message-Id: <[email protected]>
--- hw/display/vga_int.h | 1 - 1 file changed, 1 deletion(-)
hw/display/vga_int.h +0 -1
@@ -166,7 +166,6 @@ MemoryRegion *vga_init_io(VGACommonState *s, Object *obj, const MemoryRegionPortio **vbe_ports);void vga_common_reset (VGACommonState *s); -void vga_sync_dirty_bitmap (VGACommonState *s);void vga_dirty_log_start (VGACommonState *s);void vga_dirty_log_stop (VGACommonState *s);
Signature · 1 line
2.17.2
[PULL 03/20] memory.h: fix typos in comments
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
Message-Id: <[email protected]>
--- include/exec/memory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/exec/memory.h +3 -3
@@ -935,7 +935,7 @@ uint64_t memory_region_size(MemoryRegion *mr);/** * memory_region_is_ram: check whether a memory region is random access * -* Returns %true is a memory region is random access. +* Returns %true if a memory region is random access. * * @mr: the memory region being queried */
@@ -947,7 +947,7 @@ static inline bool memory_region_is_ram(MemoryRegion *mr)/** * memory_region_is_ram_device: check whether a memory region is a ram device * -* Returns %true is a memory region is a device backed ram region +* Returns %true if a memory region is a device backed ram region * * @mr: the memory region being queried */
@@ -1161,7 +1161,7 @@ uint8_t memory_region_get_dirty_log_mask(MemoryRegion *mr);/** * memory_region_is_rom: check whether a memory region is ROM * -* Returns %true is a memory region is read-only memory. +* Returns %true if a memory region is read-only memory. * * @mr: the memory region being queried */
Signature · 1 line
2.17.2
[PULL 05/20] qemu-iotests: fix filename containing checks
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
Commit cce293a2945 moved some functions from common.config to common.rc, but the error messages still reference the old file location.
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/qemu-iotests/common.rc +2 -2
@@ -170,7 +170,7 @@ if [ ! -e "$TEST_DIR" ]; then fi if [ ! -d "$TEST_DIR" ]; then - echo "common.config: Error: \$TEST_DIR ($TEST_DIR) is not a directory" + echo "common.rc: Error: \$TEST_DIR ($TEST_DIR) is not a directory" exit 1 fi
@@ -179,7 +179,7 @@ if [ -z "$REMOTE_TEST_DIR" ]; then fi if [ ! -d "$SAMPLE_IMG_DIR" ]; then - echo "common.config: Error: \$SAMPLE_IMG_DIR ($SAMPLE_IMG_DIR) is not a directory" + echo "common.rc: Error: \$SAMPLE_IMG_DIR ($SAMPLE_IMG_DIR) is not a directory" exit 1 fi
Signature · 1 line
2.17.2
[PULL 04/20] tests/tcg/README: fix location for lm32 tests
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
Point to the right and obvious location for lm32 tests.
Message-Id: <[email protected]>
--- tests/tcg/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/README +1 -1
@@ -10,6 +10,6 @@ with "make test-cris". LM32 ==== -The testsuite for LM32 is in tests/tcg/cris. You can run it +The testsuite for LM32 is in tests/tcg/lm32. You can run it with "make test-lm32".
Signature · 1 line
2.17.2
[PULL 07/20] scripts/decodetree.py: remove unused imports
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
Message-Id: <[email protected]>
--- scripts/decodetree.py | 2 -- 1 file changed, 2 deletions(-)
scripts/decodetree.py +0 -2
@@ -149,12 +149,10 @@ # trans_addl_i(ctx, &arg_opi, insn) # -import io import os import re import sys import getopt -import pdb insnwidth = 32 insnmask = 0xffffffff
Signature · 1 line
2.17.2
[PULL 08/20] scripts/qemu.py: remove trailing quotes on docstring
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
Message-Id: <[email protected]>
--- scripts/qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/qemu.py +1 -1
@@ -87,7 +87,7 @@ class QEMUMachine(object): @param name: prefix for socket and log file names (default: qemu-PID) @param test_dir: where to create socket and log file @param monitor_address: address for QMP monitor - @param socket_scm_helper: helper program, required for send_fd_scm()" + @param socket_scm_helper: helper program, required for send_fd_scm() @note: Qemu process is not started until launch() is used. ''' if args is None:
Signature · 1 line
2.17.2
[PULL 09/20] qemu-iotests: make 218 executable
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
Commit 990dc39c made all tests executable at the time, but 218 came in later, and missing those permissions.
Message-Id: <[email protected]>
--- tests/qemu-iotests/218 | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tests/qemu-iotests/218
tests/qemu-iotests/218 +0 -0
Signature · 1 line
2.17.2
[PULL 10/20] linux-user: fix comment s/atomic_write/atomic_set/
In reply to Laurent VivierFrom: "Emilio G. Cota" <[email protected]>
Message-Id: <[email protected]>
--- linux-user/qemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/qemu.h +1 -1
@@ -143,7 +143,7 @@ typedef struct TaskState {/* Nonzero if process_pending_signals() needs to do something (either * handle a pending signal or unblock signals). * This flag is written from a signal handler so should be accessed via -* the atomic_read() and atomic_write() functions. (It is not accessed +* the atomic_read() and atomic_set() functions. (It is not accessed * from multiple threads.) */ int signal_pending;
Signature · 1 line
2.17.2
[PULL 06/20] docs/devel/testing.rst: add missing newlines after code block
In reply to Laurent VivierFrom: Cleber Rosa <[email protected]>
The line immediate following a ".. code::" block is considered to contains arguments to the "code directive". The lack of a new line gives me during at parse time:
testing.rst:63: (ERROR/3) Error in "code" directive:
maximum 1 argument(s) allowed, 3 supplied.
.. code::
make check-unit V=1
testing.rst:120: (ERROR/3) Error in "code" directive:
maximum 1 argument(s) allowed, 3 supplied.
.. code::
make check-qtest V=1
Let's add the missing newlines, both for consistency and to avoid the parsing errors.
Message-Id: <[email protected]>
--- docs/devel/testing.rst | 2 ++ 1 file changed, 2 insertions(+)
docs/devel/testing.rst +2 -0
@@ -59,6 +59,7 @@ variable (which affects memory reclamation and catches invalid pointers better) and gtester options. If necessary, you can run .. code:: + make check-unit V=1 and copy the actual command line which executes the unit test, then run
@@ -116,6 +117,7 @@ and using gdb on the test is still simple to do: find out the actual command from the output of .. code:: + make check-qtest V=1 which you can run manually.
Signature · 1 line
2.17.2
[PULL 11/20] cpu.h: fix a typo in comment
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
Found by reading the code.
Message-Id: <[email protected]>
--- include/qom/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/qom/cpu.h +1 -1
@@ -852,7 +852,7 @@ extern CPUInterruptHandler cpu_interrupt_handler;/** * cpu_interrupt: * @cpu: The CPU to set an interrupt on. -* @mask: The interupts to set. +* @mask: The interrupts to set. * * Invokes the interrupt handler. */
Signature · 1 line
2.17.2
[PULL 12/20] tests: Fix typos in comments and help message (found by codespell)
In reply to Laurent VivierFrom: Stefan Weil <[email protected]>
Fix also a grammar issue.
Message-Id: <[email protected]>
--- tests/bios-tables-test.c | 2 +- tests/docker/Makefile.include | 2 +- tests/docker/docker.py | 4 ++-- tests/guest-debug/test-gdbstub.py | 2 +- tests/qemu-iotests/common.qemu | 2 +- tests/tcg/Makefile.include | 2 +- tests/tcg/Makefile.probe | 2 +- tests/tcg/mips/mips64-dsp/subq_s_pw.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-)
tests/bios-tables-test.c +1 -1
@@ -390,7 +390,7 @@ try_again:if (g_file_test (aml_file,G_FILE_TEST_EXISTS )) { exp_sdt.aml_file = aml_file; }else if (*ext !='\0' ) { -/* try fallback to generic (extention less) expected file */ +/* try fallback to generic (extension less) expected file */ ext ="" ;g_free (aml_file); goto try_again;
tests/docker/Makefile.include +1 -1
@@ -41,7 +41,7 @@ docker-qemu-src: $(DOCKER_SRC_COPY) docker-image: ${DOCKER_TARGETS} # General rule for building docker images. If we are a sub-make -# invoked with SKIP_DOCKER_BUILD we still check the image is upto date +# invoked with SKIP_DOCKER_BUILD we still check the image is up to date # though ifdef SKIP_DOCKER_BUILD docker-image-%: $(DOCKER_FILES_DIR)/%.docker
tests/docker/docker.py +2 -2
@@ -97,7 +97,7 @@ def _get_so_libs(executable): return libs def _copy_binary_with_libs(src, dest_dir): - """Copy a binary executable and all its dependant libraries. + """Copy a binary executable and all its dependent libraries. This does rely on the host file-system being fairly multi-arch aware so the file don't clash with the guests layout."""
@@ -284,7 +284,7 @@ class SubCommand(object): name = None # Subcommand name def shared_args(self, parser): parser.add_argument("--quiet", action="store_true", - help="Run quietly unless an error occured") + help="Run quietly unless an error occurred") def args(self, parser): """Setup argument parser"""
tests/guest-debug/test-gdbstub.py +1 -1
@@ -122,7 +122,7 @@ class CatchBreakpoint(gdb.Breakpoint): def run_test(): - "Run throught the tests one by one" + "Run through the tests one by one" print ("Checking we can step the first few instructions") step_ok = 0
tests/qemu-iotests/common.qemu +1 -1
@@ -257,7 +257,7 @@ function _launch_qemu() } -# Silenty kills the QEMU process +# Silently kills the QEMU process # # If $wait is set to anything other than the empty string, the process will not # be killed but only waited for, and any output will be forwarded to stdout. If
tests/tcg/Makefile.include +1 -1
@@ -2,7 +2,7 @@ # # TCG tests (per-target rules) # -# This Makefile fragement is included from the per-target +# This Makefile fragment is included from the per-target # Makefile.target so will be invoked for each linux-user program we # build. We have two options for compiling, either using a configured # guest compiler or calling one of our docker images to do it for us.
tests/tcg/Makefile.probe +1 -1
@@ -2,7 +2,7 @@ # # TCG Compiler Probe # -# This Makefile fragement is included multiple times in the main make +# This Makefile fragment is included multiple times in the main make # script to probe for available compilers. This is used to build up a # selection of required docker targets before we invoke a sub-make for # each target.
tests/tcg/mips/mips64-dsp/subq_s_pw.c +1 -1
@@ -24,7 +24,7 @@ int main(void) rt =0x123456789ABCDEF1 ; rs =0x123456789ABCDEF2 ; result =0x0000000000000001 ; -/* This time we do not set dspctrl, but it setted in pre-action. */ +/* This time we do not set dspctrl, but set it in pre-action. */ dspresult =0x1 ; __asm
Signature · 1 line
2.17.2
[PULL 14/20] qobject: Catch another straggler for use of qdict_put_str()
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/qobject.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir . --in-placeMessage-Id: <[email protected]>
--- qobject/block-qdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qobject/block-qdict.c +1 -1
@@ -577,7 +577,7 @@ static QObject *qdict_crumple_for_keyval_qiv(QDict *src, Error **errp)if (!tmp) { tmp =qdict_clone_shallow (src); } -qdict_put (tmp, ent->key,qstring_from_str (s)); +qdict_put_str (tmp, ent->key, s);g_free (buf); }
Signature · 1 line
2.17.2
[PULL 13/20] configure: Support pkg-config for zlib
In reply to Laurent VivierFrom: Stefan Weil <[email protected]>
This is needed for builds with the mingw64-* packages from Cygwin, but also works for Linux.
Move the zlib test also more to the end because users should get information on the really important missing packages (which also require zlib) first.
Message-Id: <[email protected]>
--- configure | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-)
configure +23 -17
@@ -2151,23 +2151,6 @@ EOF fi fi -######################################### -# zlib check - -if test "$zlib" != "no" ; then - cat > $TMPC << EOF -#include <zlib.h> -int main(void) { zlibVersion(); return 0; } -EOF - if compile_prog "" "-lz" ; then - : - else - error_exit "zlib check failed" \ - "Make sure to have the zlib libs and headers installed." - fi -fi -LIBS="$LIBS -lz" - ########################################## # lzo check
@@ -3479,6 +3462,29 @@ if ! compile_prog "$glib_cflags -Werror" "$glib_libs" ; then fi fi +######################################### +# zlib check + +if test "$zlib" != "no" ; then + if $pkg_config --exists zlib; then + zlib_cflags=$($pkg_config --cflags zlib) + zlib_libs=$($pkg_config --libs zlib) + QEMU_CFLAGS="$zlib_cflags $QEMU_CFLAGS" + LIBS="$zlib_libs $LIBS" + else + cat > $TMPC << EOF +#include <zlib.h> +int main(void) { zlibVersion(); return 0; } +EOF + if compile_prog "" "-lz" ; then + LIBS="$LIBS -lz" + else + error_exit "zlib check failed" \ + "Make sure to have the zlib libs and headers installed." + fi + fi +fi + ########################################## # SHA command probe for modules if test "$modules" = yes; then
Signature · 1 line
2.17.2
[PULL 15/20] xen: Use the PCI_DEVICE macro
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
TYPE_XEN_PT_DEVICE is a subclass of TYPE_PCI_DEVICE, the clean way to access the PCIDevice pointer is using the PCI_DEVICE() macro.
Message-Id: <[email protected]>
--- hw/xen/xen_pt_config_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/xen/xen_pt_config_init.c +4 -4
@@ -358,7 +358,7 @@ static uint64_t xen_pt_get_bar_size(PCIIORegion *r)static XenPTBarFlag xen_pt_bar_reg_parse (XenPCIPassthroughState *s,int index) { -PCIDevice *d = &s->dev; +PCIDevice *d =PCI_DEVICE (s);XenPTRegion *region =NULL ;PCIIORegion *r;
@@ -469,7 +469,7 @@ static int xen_pt_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, {XenPTRegInfo *reg = cfg_entry->reg;XenPTRegion *base =NULL ; -PCIDevice *d = &s->dev; +PCIDevice *d =PCI_DEVICE (s);const PCIIORegion *r;uint32_t writable_mask =0 ;uint32_t bar_emu_mask =0 ;
@@ -543,7 +543,7 @@ static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s, {XenPTRegInfo *reg = cfg_entry->reg;XenPTRegion *base =NULL ; -PCIDevice *d = (PCIDevice *)&s->dev; +PCIDevice *d =PCI_DEVICE (s);uint32_t writable_mask =0 ;uint32_t throughable_mask =get_throughable_mask (s, reg, valid_mask);pcibus_t r_size =0 ;
@@ -1587,7 +1587,7 @@ static int xen_pt_pcie_size_init(XenPCIPassthroughState *s,const XenPTRegGroupInfo *grp_reg, uint32_t base_offset, uint8_t *size) { - PCIDevice *d = &s->dev; + PCIDevice *d = PCI_DEVICE(s);uint8_t version =get_capability_version (s, base_offset);uint8_t type =get_device_type (s, base_offset);uint8_t pcie_size =0 ;
Signature · 1 line
2.17.2
[PULL 18/20] hw/intc/gicv3: Remove useless parenthesis around DIV_ROUND_UP macro
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/round.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir . --in-placeMessage-Id: <[email protected]>
--- include/hw/intc/arm_gicv3_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/intc/arm_gicv3_common.h +1 -1
@@ -62,7 +62,7 @@* avoids bugs where we forget to subtract GIC_INTERNAL from an * interrupt number. */ -#define GICV3_BMP_SIZE (DIV_ROUND_UP(GICV3_MAXIRQ, 32)) +#define GICV3_BMP_SIZE DIV_ROUND_UP(GICV3_MAXIRQ, 32)#define GIC_DECLARE_BITMAP (name) \ uint32_t name[GICV3_BMP_SIZE]
Signature · 1 line
2.17.2
[PULL 19/20] milkymist-minimac2: Use qemu_log_mask(GUEST_ERROR) instead of error_report
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
qemu_log_mask(GUEST_ERROR) is more appropriate:
$ qemu -d help Log items (comma separated): guest_errors log when the guest OS does something invalid (eg accessing a non-existent register)
Message-Id: <[email protected]>
--- hw/net/milkymist-minimac2.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
hw/net/milkymist-minimac2.c +9 -5
@@ -30,6 +30,7 @@#include "hw/sysbus.h" #include "trace.h" #include "net/net.h" +#include "qemu/log.h" #include "qemu/error-report.h" #include <zlib.h>
@@ -214,7 +215,8 @@ static size_t assemble_frame(uint8_t *buf, size_t size,uint32_t crc;if (size < payload_size +12 ) { -error_report ("milkymist_minimac2: received too big ethernet frame" ); +qemu_log_mask (LOG_GUEST_ERROR ,"milkymist_minimac2: frame too big " +"(%zd bytes)\n" , payload_size);return 0 ; }
@@ -347,8 +349,9 @@ minimac2_read(void *opaque, hwaddr addr, unsigned size)break ;default : -error_report ("milkymist_minimac2: read access to unknown register 0x" - TARGET_FMT_plx, addr <<2 ); +qemu_log_mask (LOG_GUEST_ERROR , +"milkymist_minimac2_rd%d: 0x%" HWADDR_PRIx"\n" , + size, addr <<2 );break ; }
@@ -413,8 +416,9 @@ minimac2_write(void *opaque, hwaddr addr, uint64_t value,break ;default : -error_report ("milkymist_minimac2: write access to unknown register 0x" - TARGET_FMT_plx, addr <<2 ); +qemu_log_mask (LOG_GUEST_ERROR , +"milkymist_minimac2_wr%d: 0x%" HWADDR_PRIx" = 0x%lx\n" , + size, addr <<2 , value);break ; } }
Signature · 1 line
2.17.2
[PULL 20/20] ppc: move at24c to its own CONFIG_ symbol
In reply to Laurent VivierFrom: Paolo Bonzini <[email protected]>
AT24c EEPROM is currently gated by CONFIG_I2C, and as such it is being included in all emulators that use I2C, even if they do not really need it. Separate it and, since it was added for the e500 machines, add it to qemu-system-ppc and qemu-system-ppc64.
Message-Id: <[email protected]>
--- default-configs/ppc-softmmu.mak | 1 + hw/nvram/Makefile.objs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
default-configs/ppc-softmmu.mak +1 -0
@@ -28,6 +28,7 @@ CONFIG_SM501=y CONFIG_DDC=y CONFIG_IDE_SII3112=y CONFIG_I2C=y +CONFIG_AT24C=y CONFIG_BITBANG_I2C=y CONFIG_M41T80=y CONFIG_VGA_CIRRUS=y
hw/nvram/Makefile.objs +1 -1
@@ -1,6 +1,6 @@ common-obj-$(CONFIG_DS1225Y) += ds1225y.o common-obj-y += eeprom93xx.o -common-obj-$(CONFIG_I2C) += eeprom_at24c.o +common-obj-$(CONFIG_AT24C) += eeprom_at24c.o common-obj-y += fw_cfg.o common-obj-y += chrp_nvram.o common-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
Signature · 1 line
2.17.2
[PULL 16/20] tests/bios-tables-test: Remove an useless cast
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/typecast.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir . --in-placeMessage-Id: <[email protected]>
--- tests/bios-tables-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/bios-tables-test.c +1 -1
@@ -319,7 +319,7 @@ static bool load_asl(GArray *sdts, AcpiSdtTable *sdt) ret =g_spawn_command_line_sync (command_line->str, &out, &out_err,NULL , &error);g_assert_no_error (error);if (ret) { - ret =g_file_get_contents (sdt->asl_file, (gchar **)&sdt->asl, + ret =g_file_get_contents (sdt->asl_file, &sdt->asl, &sdt->asl_len, &error);g_assert (ret);g_assert_no_error (error);
Signature · 1 line
2.17.2
[PULL 17/20] hw/pci-host: Remove useless parenthesis around DIV_ROUND_UP macro
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/round.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir . --in-placeMessage-Id: <[email protected]>
--- hw/pci-host/piix.c | 2 +- hw/pci-host/q35.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/pci-host/piix.c +1 -1
@@ -144,7 +144,7 @@ static void i440fx_update_memory_mappings(PCII440FXState *d)memory_region_transaction_begin ();for (i =0 ; i <13 ; i++) {pam_update (&d->pam_regions[i], i, - pd->config[I440FX_PAM + (DIV_ROUND_UP (i,2 ))]); + pd->config[I440FX_PAM +DIV_ROUND_UP (i,2 )]); }memory_region_set_enabled (&d->smram_region, !(pd->config[I440FX_SMRAM ] &SMRAM_D_OPEN ));
hw/pci-host/q35.c +1 -1
@@ -356,7 +356,7 @@ static void mch_update_pam(MCHPCIState *mch)memory_region_transaction_begin ();for (i =0 ; i <13 ; i++) {pam_update (&mch->pam_regions[i], i, - pd->config[MCH_HOST_BRIDGE_PAM0 + (DIV_ROUND_UP (i,2 ))]); + pd->config[MCH_HOST_BRIDGE_PAM0 +DIV_ROUND_UP (i,2 )]); }memory_region_transaction_commit (); }
Signature · 1 line
2.17.2
Quoted 10 lines · Laurent Vivier
The following changes since commit
808ebd66e467f77c0d1f8c6346235f81e9c99cf2:Merge remote-tracking branch 'remotes/riscv/tags/riscv-for-master-3.1-sf0' into staging (2018-10-25 17:41:03 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-patches-pull-requestfor you to fetch changes up to
4b03da6e87c34793137a231b558231fd406c05e8:
Quoted 7 lines
ppc: move at24c to its own
CONFIG_symbol (2018-10-26 17:17:32 +0200)----------------------------------------------------------------
QEMU trivial patches collected between June and October 2018 (Thank you to Thomas Huth)----------------------------------------------------------------
Hi; I get a compile error due to a format string issue:
In file included from /home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c:33:0:/home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c: In function 'minimac2_write':/home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c:420:23:
error: format '%lx' expects
argument of type 'long unsigned int', but argument 4 has type
'uint64_t {aka long long unsign
ed int}' [-Werror=format=]
"milkymist_minimac2_wr%d: 0x%" HWADDR_PRIx " = 0x%lx\n",
^
/home/petmay01/qemu-for-merges/include/qemu/log.h:85:22: note: in
definition of macro 'qemu_lo
g_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^cc1: all warnings being treated as errors
(affects windows crossbuilds, OSX and 32-bit hosts).
thanks
-- PMM
Quoted 10 lines · Laurent Vivier
The following changes since commit
808ebd66e467f77c0d1f8c6346235f81e9c99cf2:Merge remote-tracking branch 'remotes/riscv/tags/riscv-for-master-3.1-sf0' into staging (2018-10-25 17:41:03 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-patches-pull-requestfor you to fetch changes up to
4b03da6e87c34793137a231b558231fd406c05e8:
Quoted 7 lines
ppc: move at24c to its own
CONFIG_symbol (2018-10-26 17:17:32 +0200)----------------------------------------------------------------
QEMU trivial patches collected between June and October 2018 (Thank you to Thomas Huth)----------------------------------------------------------------
Hi; I get a compile error due to a format string issue:
In file included from /home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c:33:0:/home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c: In function 'minimac2_write':/home/petmay01/qemu-for-merges/hw/net/milkymist-minimac2.c:420:23:
error: format '%lx' expects
argument of type 'long unsigned int', but argument 4 has type
'uint64_t {aka long long unsign
ed int}' [-Werror=format=]
"milkymist_minimac2_wr%d: 0x%" HWADDR_PRIx " = 0x%lx\n",
^
/home/petmay01/qemu-for-merges/include/qemu/log.h:85:22: note: in
definition of macro 'qemu_lo
g_mask'
qemu_log(FMT, ## __VA_ARGS__); \
^cc1: all warnings being treated as errors
(affects windows crossbuilds, OSX and 32-bit hosts).
thanks
-- PMM
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel