History log of /openbmc/qemu/semihosting/ (Results 26 – 50 of 89)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
9b1268f525-Jul-2022 Peter Maydell <peter.maydell@linaro.org>

semihosting: Fix handling of buffer in TARGET_SYS_TMPNAM

The TARGET_SYS_TMPNAM implementation has two bugs spotted by
Coverity:
* confusion about whether 'len' has the length of the string
inclu

semihosting: Fix handling of buffer in TARGET_SYS_TMPNAM

The TARGET_SYS_TMPNAM implementation has two bugs spotted by
Coverity:
* confusion about whether 'len' has the length of the string
including or excluding the terminating NUL means we
lock_user() len bytes of memory but memcpy() len + 1 bytes
* In the error-exit cases we forget to free() the buffer
that asprintf() returned to us

Resolves: Coverity CID 1490285, 1490289
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220719121110.225657-5-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220725140520.515340-10-alex.bennee@linaro.org>

show more ...

fed49cdf25-Jul-2022 Peter Maydell <peter.maydell@linaro.org>

semihosting: Check for errors on SET_ARG()

The SET_ARG() macro returns an error indication; we check this in the
TARGET_SYS_GET_CMDLINE case but not when we use it in implementing
TARGET_SYS_ELAPSED

semihosting: Check for errors on SET_ARG()

The SET_ARG() macro returns an error indication; we check this in the
TARGET_SYS_GET_CMDLINE case but not when we use it in implementing
TARGET_SYS_ELAPSED. Check for and handle the errors via the do_fault
codepath, and update the comment documenting the SET_ARG() and
GET_ARG() macros to note how they handle memory access errors.

Resolves: Coverity CID 1490287
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220719121110.225657-4-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220725140520.515340-9-alex.bennee@linaro.org>

show more ...

45704e8925-Jul-2022 Peter Maydell <peter.maydell@linaro.org>

semihosting: Don't copy buffer after console_write()

The console_write() semihosting function outputs guest data from a
buffer; it doesn't update that buffer. It therefore doesn't need to
pass a le

semihosting: Don't copy buffer after console_write()

The console_write() semihosting function outputs guest data from a
buffer; it doesn't update that buffer. It therefore doesn't need to
pass a length value to unlock_user(), but can pass 0, meaning "do not
copy any data back to the guest memory".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220719121110.225657-3-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220725140520.515340-8-alex.bennee@linaro.org>

show more ...

aed04e6325-Jul-2022 Peter Maydell <peter.maydell@linaro.org>

semihosting: Don't return negative values on qemu_semihosting_console_write() failure

The documentation comment for qemu_semihosting_console_write() says
* Returns: number of bytes written -- this

semihosting: Don't return negative values on qemu_semihosting_console_write() failure

The documentation comment for qemu_semihosting_console_write() says
* Returns: number of bytes written -- this should only ever be short
* on some sort of i/o error.

and the callsites rely on this. However, the implementation code
path which sends console output to a chardev doesn't honour this,
and will return negative values on error. Bring it into line with
the other implementation codepaths and the documentation, so that
it returns 0 on error.

Spotted by Coverity, because console_write() passes the return value
to unlock_user(), which doesn't accept a negative length.

Resolves: Coverity CID 1490288
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220719121110.225657-2-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220725140520.515340-7-alex.bennee@linaro.org>

show more ...


/openbmc/qemu/.cirrus.yml
/openbmc/qemu/.gitlab-ci.d/buildtest.yml
/openbmc/qemu/.gitlab-ci.d/cirrus/build.yml
/openbmc/qemu/.gitlab-ci.d/cirrus/freebsd-12.vars
/openbmc/qemu/.gitlab-ci.d/cirrus/freebsd-13.vars
/openbmc/qemu/.gitlab-ci.d/cirrus/macos-11.vars
/openbmc/qemu/.gitlab-ci.d/container-cross.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/centos-stream-8-x86_64.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-20.04-aarch32.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-20.04-aarch64.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml
/openbmc/qemu/.gitlab-ci.d/stages.yml
/openbmc/qemu/.gitlab-ci.d/windows.yml
/openbmc/qemu/.travis.yml
/openbmc/qemu/MAINTAINERS
/openbmc/qemu/Makefile
/openbmc/qemu/VERSION
/openbmc/qemu/accel/kvm/kvm-all.c
/openbmc/qemu/accel/stubs/kvm-stub.c
/openbmc/qemu/accel/tcg/translate-all.c
/openbmc/qemu/block.c
/openbmc/qemu/block/blklogwrites.c
/openbmc/qemu/block/block-backend.c
/openbmc/qemu/block/bochs.c
/openbmc/qemu/block/cloop.c
/openbmc/qemu/block/commit.c
/openbmc/qemu/block/coroutines.h
/openbmc/qemu/block/crypto.c
/openbmc/qemu/block/dmg.c
/openbmc/qemu/block/export/fuse.c
/openbmc/qemu/block/io.c
/openbmc/qemu/block/meson.build
/openbmc/qemu/block/parallels-ext.c
/openbmc/qemu/block/parallels.c
/openbmc/qemu/block/qcow.c
/openbmc/qemu/block/qcow2-bitmap.c
/openbmc/qemu/block/qcow2-cache.c
/openbmc/qemu/block/qcow2-cluster.c
/openbmc/qemu/block/qcow2-refcount.c
/openbmc/qemu/block/qcow2-snapshot.c
/openbmc/qemu/block/qcow2.c
/openbmc/qemu/block/qed.c
/openbmc/qemu/block/vdi.c
/openbmc/qemu/block/vhdx-log.c
/openbmc/qemu/block/vhdx.c
/openbmc/qemu/block/vmdk.c
/openbmc/qemu/block/vpc.c
/openbmc/qemu/block/vvfat.c
/openbmc/qemu/configs/targets/loongarch64-softmmu.mak
/openbmc/qemu/configure
/openbmc/qemu/cpus-common.c
/openbmc/qemu/crypto/block-luks.c
/openbmc/qemu/crypto/block.c
/openbmc/qemu/docs/about/build-platforms.rst
/openbmc/qemu/docs/devel/submitting-a-patch.rst
/openbmc/qemu/docs/system/arm/aspeed.rst
/openbmc/qemu/docs/system/devices/nvme.rst
/openbmc/qemu/docs/system/devices/usb.rst
/openbmc/qemu/docs/tools/qemu-nbd.rst
/openbmc/qemu/fpu/softfloat-specialize.c.inc
/openbmc/qemu/hmp-commands-info.hx
/openbmc/qemu/hmp-commands.hx
/openbmc/qemu/hw/acpi/nvdimm.c
/openbmc/qemu/hw/acpi/trace-events
/openbmc/qemu/hw/adc/npcm7xx_adc.c
/openbmc/qemu/hw/arm/allwinner-h3.c
/openbmc/qemu/hw/arm/aspeed.c
/openbmc/qemu/hw/arm/aspeed_ast10x0.c
/openbmc/qemu/hw/arm/aspeed_ast2600.c
/openbmc/qemu/hw/arm/aspeed_soc.c
/openbmc/qemu/hw/arm/bcm2835_peripherals.c
/openbmc/qemu/hw/arm/fby35.c
/openbmc/qemu/hw/arm/meson.build
/openbmc/qemu/hw/block/block.c
/openbmc/qemu/hw/block/fdc.c
/openbmc/qemu/hw/block/hd-geometry.c
/openbmc/qemu/hw/block/m25p80.c
/openbmc/qemu/hw/block/nand.c
/openbmc/qemu/hw/block/onenand.c
/openbmc/qemu/hw/block/pflash_cfi01.c
/openbmc/qemu/hw/block/pflash_cfi02.c
/openbmc/qemu/hw/display/bcm2835_fb.c
/openbmc/qemu/hw/gpio/aspeed_gpio.c
/openbmc/qemu/hw/hppa/machine.c
/openbmc/qemu/hw/i2c/pmbus_device.c
/openbmc/qemu/hw/i386/acpi-build.c
/openbmc/qemu/hw/i386/microvm.c
/openbmc/qemu/hw/i386/pc.c
/openbmc/qemu/hw/i386/pc_piix.c
/openbmc/qemu/hw/i386/pc_q35.c
/openbmc/qemu/hw/i386/sgx.c
/openbmc/qemu/hw/i386/x86.c
/openbmc/qemu/hw/ide/atapi.c
/openbmc/qemu/hw/input/lasips2.c
/openbmc/qemu/hw/input/pckbd.c
/openbmc/qemu/hw/input/pl050.c
/openbmc/qemu/hw/input/ps2.c
/openbmc/qemu/hw/input/trace-events
/openbmc/qemu/hw/intc/armv7m_nvic.c
/openbmc/qemu/hw/intc/loongarch_pch_pic.c
/openbmc/qemu/hw/intc/sifive_plic.c
/openbmc/qemu/hw/intc/xics.c
/openbmc/qemu/hw/intc/xive.c
/openbmc/qemu/hw/loongarch/Kconfig
/openbmc/qemu/hw/loongarch/acpi-build.c
/openbmc/qemu/hw/loongarch/fw_cfg.c
/openbmc/qemu/hw/loongarch/fw_cfg.h
/openbmc/qemu/hw/loongarch/loongson3.c
/openbmc/qemu/hw/loongarch/meson.build
/openbmc/qemu/hw/m68k/q800.c
/openbmc/qemu/hw/mips/boston.c
/openbmc/qemu/hw/mips/jazz.c
/openbmc/qemu/hw/misc/aspeed_sbc.c
/openbmc/qemu/hw/misc/mac_via.c
/openbmc/qemu/hw/misc/sifive_u_otp.c
/openbmc/qemu/hw/net/e1000e_core.c
/openbmc/qemu/hw/net/virtio-net.c
/openbmc/qemu/hw/nios2/boot.c
/openbmc/qemu/hw/nvme/ctrl.c
/openbmc/qemu/hw/nvme/ns.c
/openbmc/qemu/hw/nvme/nvme.h
/openbmc/qemu/hw/nvme/trace-events
/openbmc/qemu/hw/nvram/eeprom_at24c.c
/openbmc/qemu/hw/nvram/spapr_nvram.c
/openbmc/qemu/hw/nvram/xlnx-bbram.c
/openbmc/qemu/hw/nvram/xlnx-efuse.c
/openbmc/qemu/hw/pci-host/i440fx.c
/openbmc/qemu/hw/ppc/e500.c
/openbmc/qemu/hw/ppc/mac_newworld.c
/openbmc/qemu/hw/ppc/mac_oldworld.c
/openbmc/qemu/hw/ppc/pegasos2.c
/openbmc/qemu/hw/ppc/pnv_pnor.c
/openbmc/qemu/hw/ppc/ppc.c
/openbmc/qemu/hw/ppc/ppc405_uc.c
/openbmc/qemu/hw/ppc/ppc440_bamboo.c
/openbmc/qemu/hw/ppc/ppc440_uc.c
/openbmc/qemu/hw/ppc/prep.c
/openbmc/qemu/hw/ppc/prep_systemio.c
/openbmc/qemu/hw/ppc/sam460ex.c
/openbmc/qemu/hw/ppc/spapr.c
/openbmc/qemu/hw/ppc/spapr_hcall.c
/openbmc/qemu/hw/ppc/spapr_nvdimm.c
/openbmc/qemu/hw/ppc/virtex_ml507.c
/openbmc/qemu/hw/rx/rx-gdbsim.c
/openbmc/qemu/hw/scsi/lsi53c895a.c
/openbmc/qemu/hw/scsi/scsi-disk.c
/openbmc/qemu/hw/scsi/trace-events
/openbmc/qemu/hw/sd/sd.c
/openbmc/qemu/hw/sensor/isl_pmbus_vr.c
/openbmc/qemu/hw/usb/hcd-xhci.c
/openbmc/qemu/hw/virtio/vhost-shadow-virtqueue.c
/openbmc/qemu/hw/virtio/vhost-shadow-virtqueue.h
/openbmc/qemu/hw/virtio/vhost-vdpa.c
/openbmc/qemu/hw/virtio/virtio-iommu.c
/openbmc/qemu/include/block/block-io.h
/openbmc/qemu/include/block/block_int-io.h
/openbmc/qemu/include/block/nvme.h
/openbmc/qemu/include/crypto/block.h
/openbmc/qemu/include/exec/cpu-common.h
/openbmc/qemu/include/exec/memory.h
/openbmc/qemu/include/hw/arm/aspeed_soc.h
/openbmc/qemu/include/hw/arm/bcm2835_peripherals.h
/openbmc/qemu/include/hw/boards.h
/openbmc/qemu/include/hw/core/cpu.h
/openbmc/qemu/include/hw/cxl/cxl_component.h
/openbmc/qemu/include/hw/i2c/pmbus_device.h
/openbmc/qemu/include/hw/i386/pc.h
/openbmc/qemu/include/hw/i386/x86.h
/openbmc/qemu/include/hw/input/i8042.h
/openbmc/qemu/include/hw/input/lasips2.h
/openbmc/qemu/include/hw/input/pl050.h
/openbmc/qemu/include/hw/input/ps2.h
/openbmc/qemu/include/hw/loongarch/virt.h
/openbmc/qemu/include/hw/mem/nvdimm.h
/openbmc/qemu/include/hw/misc/aspeed_sbc.h
/openbmc/qemu/include/hw/pci-host/i440fx.h
/openbmc/qemu/include/hw/pci-host/ls7a.h
/openbmc/qemu/include/hw/scsi/scsi.h
/openbmc/qemu/include/hw/sensor/isl_pmbus_vr.h
/openbmc/qemu/include/hw/virtio/vhost-vdpa.h
/openbmc/qemu/include/hw/virtio/virtio-net.h
/openbmc/qemu/include/monitor/hmp.h
/openbmc/qemu/include/qemu/cutils.h
/openbmc/qemu/include/scsi/constants.h
/openbmc/qemu/include/standard-headers/asm-x86/bootparam.h
/openbmc/qemu/include/sysemu/block-backend-io.h
/openbmc/qemu/include/sysemu/dirtylimit.h
/openbmc/qemu/include/sysemu/dirtyrate.h
/openbmc/qemu/include/sysemu/kvm.h
/openbmc/qemu/io/channel-socket.c
/openbmc/qemu/linux-headers/linux/kvm.h
/openbmc/qemu/linux-user/hppa/cpu_loop.c
/openbmc/qemu/linux-user/syscall.c
/openbmc/qemu/meson.build
/openbmc/qemu/meson_options.txt
/openbmc/qemu/migration/block.c
/openbmc/qemu/migration/channel.c
/openbmc/qemu/migration/dirtyrate.c
/openbmc/qemu/migration/dirtyrate.h
/openbmc/qemu/migration/migration.c
/openbmc/qemu/migration/migration.h
/openbmc/qemu/migration/multifd-zlib.c
/openbmc/qemu/migration/multifd.c
/openbmc/qemu/migration/multifd.h
/openbmc/qemu/migration/postcopy-ram.c
/openbmc/qemu/migration/postcopy-ram.h
/openbmc/qemu/migration/qemu-file.c
/openbmc/qemu/migration/qemu-file.h
/openbmc/qemu/migration/ram.c
/openbmc/qemu/migration/ram.h
/openbmc/qemu/migration/savevm.c
/openbmc/qemu/migration/socket.c
/openbmc/qemu/migration/socket.h
/openbmc/qemu/migration/tls.c
/openbmc/qemu/migration/tls.h
/openbmc/qemu/migration/trace-events
/openbmc/qemu/monitor/hmp-cmds.c
/openbmc/qemu/nbd/server.c
/openbmc/qemu/net/colo-compare.c
/openbmc/qemu/net/colo.c
/openbmc/qemu/net/filter-rewriter.c
/openbmc/qemu/net/meson.build
/openbmc/qemu/net/trace-events
/openbmc/qemu/net/vhost-vdpa-stub.c
/openbmc/qemu/net/vhost-vdpa.c
/openbmc/qemu/pc-bios/keymaps/meson.build
/openbmc/qemu/pc-bios/meson.build
/openbmc/qemu/pc-bios/s390-ccw/Makefile
/openbmc/qemu/python/qemu/qmp/legacy.py
/openbmc/qemu/qapi/migration.json
/openbmc/qemu/qapi/net.json
/openbmc/qemu/qapi/stats.json
/openbmc/qemu/qapi/ui.json
/openbmc/qemu/qemu-img.c
/openbmc/qemu/qemu-io-cmds.c
/openbmc/qemu/qemu-options.hx
/openbmc/qemu/qga/commands-posix.c
/openbmc/qemu/qga/commands-win32.c
/openbmc/qemu/qga/qapi-schema.json
/openbmc/qemu/scripts/coverity-scan/COMPONENTS.md
/openbmc/qemu/scripts/meson-buildoptions.py
/openbmc/qemu/scripts/meson-buildoptions.sh
/openbmc/qemu/scripts/oss-fuzz/build.sh
/openbmc/qemu/scripts/qapi/common.py
/openbmc/qemu/scripts/symlink-install-tree.py
/openbmc/qemu/scripts/vmstate-static-checker.py
console.c
/openbmc/qemu/softmmu/datadir.c
/openbmc/qemu/softmmu/dirtylimit.c
/openbmc/qemu/softmmu/meson.build
/openbmc/qemu/softmmu/runstate.c
/openbmc/qemu/softmmu/trace-events
/openbmc/qemu/softmmu/vl.c
/openbmc/qemu/storage-daemon/qemu-storage-daemon.c
/openbmc/qemu/target/arm/cpu.c
/openbmc/qemu/target/arm/cpu.h
/openbmc/qemu/target/arm/debug_helper.c
/openbmc/qemu/target/arm/helper.c
/openbmc/qemu/target/arm/internals.h
/openbmc/qemu/target/arm/ptw.c
/openbmc/qemu/target/arm/tlb_helper.c
/openbmc/qemu/target/arm/translate-a64.c
/openbmc/qemu/target/arm/translate-sve.c
/openbmc/qemu/target/hexagon/gen_tcg.h
/openbmc/qemu/target/hexagon/genptr.c
/openbmc/qemu/target/hexagon/helper.h
/openbmc/qemu/target/hexagon/macros.h
/openbmc/qemu/target/hexagon/op_helper.c
/openbmc/qemu/target/i386/hvf/hvf.c
/openbmc/qemu/target/i386/hvf/vmcs.h
/openbmc/qemu/target/i386/hvf/x86_cpuid.c
/openbmc/qemu/target/loongarch/cpu.c
/openbmc/qemu/target/loongarch/cpu.h
/openbmc/qemu/target/loongarch/fpu_helper.c
/openbmc/qemu/target/loongarch/op_helper.c
/openbmc/qemu/target/loongarch/tlb_helper.c
/openbmc/qemu/target/mips/tcg/sysemu/mips-semi.c
/openbmc/qemu/target/ppc/cpu.h
/openbmc/qemu/target/ppc/cpu_init.c
/openbmc/qemu/target/ppc/helper.h
/openbmc/qemu/target/ppc/insn32.decode
/openbmc/qemu/target/ppc/internal.h
/openbmc/qemu/target/ppc/kvm.c
/openbmc/qemu/target/ppc/mmu-book3s-v3.c
/openbmc/qemu/target/ppc/mmu-book3s-v3.h
/openbmc/qemu/target/ppc/mmu-hash64.c
/openbmc/qemu/target/ppc/mmu-radix64.c
/openbmc/qemu/target/ppc/mmu_helper.c
/openbmc/qemu/target/ppc/monitor.c
/openbmc/qemu/target/ppc/power8-pmu-regs.c.inc
/openbmc/qemu/target/ppc/timebase_helper.c
/openbmc/qemu/target/ppc/translate.c
/openbmc/qemu/target/ppc/translate/fixedpoint-impl.c.inc
/openbmc/qemu/target/ppc/translate/fp-impl.c.inc
/openbmc/qemu/target/ppc/translate/storage-ctrl-impl.c.inc
/openbmc/qemu/target/riscv/cpu.c
/openbmc/qemu/target/s390x/tcg/vec_fpu_helper.c
/openbmc/qemu/tests/avocado/avocado_qemu/__init__.py
/openbmc/qemu/tests/avocado/machine_aspeed.py
/openbmc/qemu/tests/docker/Makefile.include
/openbmc/qemu/tests/docker/dockerfiles/alpine.docker
/openbmc/qemu/tests/docker/dockerfiles/centos8.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-amd64.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-arm64-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-armel-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-armhf-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-loongarch-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-mips64el-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-mipsel-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-ppc64el-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-s390x-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/fedora.docker
/openbmc/qemu/tests/docker/dockerfiles/opensuse-leap.docker
/openbmc/qemu/tests/docker/dockerfiles/ubuntu2004.docker
/openbmc/qemu/tests/lcitool/libvirt-ci
/openbmc/qemu/tests/lcitool/projects/qemu.yml
/openbmc/qemu/tests/lcitool/refresh
/openbmc/qemu/tests/qemu-iotests/108
/openbmc/qemu/tests/qemu-iotests/131
/openbmc/qemu/tests/qemu-iotests/131.out
/openbmc/qemu/tests/qemu-iotests/223.out
/openbmc/qemu/tests/qemu-iotests/307.out
/openbmc/qemu/tests/qemu-iotests/mypy.ini
/openbmc/qemu/tests/qtest/aspeed_gpio-test.c
/openbmc/qemu/tests/qtest/aspeed_smc-test.c
/openbmc/qemu/tests/qtest/bcm2835-dma-test.c
/openbmc/qemu/tests/qtest/fuzz-lsi53c895a-test.c
/openbmc/qemu/tests/qtest/fuzz/fuzz.c
/openbmc/qemu/tests/qtest/machine-none-test.c
/openbmc/qemu/tests/qtest/meson.build
/openbmc/qemu/tests/qtest/migration-helpers.c
/openbmc/qemu/tests/qtest/migration-helpers.h
/openbmc/qemu/tests/qtest/migration-test.c
/openbmc/qemu/tests/qtest/npcm7xx_adc-test.c
/openbmc/qemu/tests/qtest/qmp-cmd-test.c
/openbmc/qemu/tests/tcg/hexagon/Makefile.target
/openbmc/qemu/tests/tcg/hexagon/mem_noshuf.c
/openbmc/qemu/tests/tcg/hexagon/mem_noshuf_exception.c
/openbmc/qemu/tests/tcg/loongarch64/Makefile.target
/openbmc/qemu/tests/tcg/loongarch64/float_convd.ref
/openbmc/qemu/tests/tcg/loongarch64/float_convs.ref
/openbmc/qemu/tests/tcg/loongarch64/float_madds.ref
/openbmc/qemu/tests/tcg/loongarch64/test_bit.c
/openbmc/qemu/tests/tcg/loongarch64/test_div.c
/openbmc/qemu/tests/tcg/loongarch64/test_fclass.c
/openbmc/qemu/tests/tcg/loongarch64/test_fpcom.c
/openbmc/qemu/tests/tcg/loongarch64/test_pcadd.c
/openbmc/qemu/tests/tcg/s390x/Makefile.target
/openbmc/qemu/tests/tcg/s390x/vfminmax.c
/openbmc/qemu/tests/unit/ptimer-test.c
/openbmc/qemu/tests/unit/test-block-iothread.c
/openbmc/qemu/tests/unit/test-crypto-block.c
/openbmc/qemu/tests/unit/test-iov.c
/openbmc/qemu/tests/vm/Makefile.include
/openbmc/qemu/tests/vm/basevm.py
/openbmc/qemu/tests/vm/centos
/openbmc/qemu/tests/vm/centos.aarch64
/openbmc/qemu/tests/vm/ubuntu.aarch64
/openbmc/qemu/ui/cocoa.m
/openbmc/qemu/ui/dbus.c
/openbmc/qemu/ui/gtk.c
/openbmc/qemu/util/cutils.c
/openbmc/qemu/util/meson.build
/openbmc/qemu/util/module.c
/openbmc/qemu/util/oslib-posix.c
938fcd7428-Jun-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Remove qemu_semihosting_log_out

The function is no longer used.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Me

semihosting: Remove qemu_semihosting_log_out

The function is no longer used.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220628111701.677216-7-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

show more ...


/openbmc/qemu/.gitlab-ci.d/cirrus/freebsd-12.vars
/openbmc/qemu/.gitlab-ci.d/cirrus/freebsd-13.vars
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml
/openbmc/qemu/.gitlab-ci.d/edk2.yml
/openbmc/qemu/.gitlab-ci.d/opensbi.yml
/openbmc/qemu/MAINTAINERS
/openbmc/qemu/Makefile
/openbmc/qemu/accel/kvm/kvm-all.c
/openbmc/qemu/accel/tcg/cputlb.c
/openbmc/qemu/audio/meson.build
/openbmc/qemu/block/block-copy.c
/openbmc/qemu/block/copy-before-write.c
/openbmc/qemu/block/io_uring.c
/openbmc/qemu/block/mirror.c
/openbmc/qemu/block/nbd.c
/openbmc/qemu/block/trace-events
/openbmc/qemu/bsd-user/bsd-file.h
/openbmc/qemu/bsd-user/freebsd/os-syscall.c
/openbmc/qemu/common-user/meson.build
/openbmc/qemu/configs/targets/loongarch64-linux-user.mak
/openbmc/qemu/configure
/openbmc/qemu/contrib/vhost-user-blk/meson.build
/openbmc/qemu/contrib/vhost-user-blk/vhost-user-blk.c
/openbmc/qemu/disas.c
/openbmc/qemu/disas/meson.build
/openbmc/qemu/docs/about/deprecated.rst
/openbmc/qemu/docs/interop/vhost-user.rst
/openbmc/qemu/docs/specs/fw_cfg.rst
/openbmc/qemu/docs/specs/index.rst
/openbmc/qemu/docs/system/arm/emulation.rst
/openbmc/qemu/docs/system/arm/virt.rst
/openbmc/qemu/docs/system/devices/canokey.rst
/openbmc/qemu/ebpf/ebpf_rss.c
/openbmc/qemu/hw/9pfs/9p-xattr-user.c
/openbmc/qemu/hw/acpi/nvdimm.c
/openbmc/qemu/hw/arm/Kconfig
/openbmc/qemu/hw/arm/aspeed.c
/openbmc/qemu/hw/arm/aspeed_ast10x0.c
/openbmc/qemu/hw/arm/aspeed_ast2600.c
/openbmc/qemu/hw/arm/aspeed_soc.c
/openbmc/qemu/hw/arm/pxa2xx.c
/openbmc/qemu/hw/arm/virt.c
/openbmc/qemu/hw/block/m25p80.c
/openbmc/qemu/hw/display/sii9022.c
/openbmc/qemu/hw/display/ssd0303.c
/openbmc/qemu/hw/i2c/aspeed_i2c.c
/openbmc/qemu/hw/i2c/core.c
/openbmc/qemu/hw/i2c/pmbus_device.c
/openbmc/qemu/hw/i2c/smbus_slave.c
/openbmc/qemu/hw/i2c/trace-events
/openbmc/qemu/hw/i386/pc_piix.c
/openbmc/qemu/hw/i386/xen/xen-hvm.c
/openbmc/qemu/hw/ide/atapi.c
/openbmc/qemu/hw/intc/loongarch_ipi.c
/openbmc/qemu/hw/intc/loongarch_pch_msi.c
/openbmc/qemu/hw/intc/openpic.c
/openbmc/qemu/hw/intc/pnv_xive.c
/openbmc/qemu/hw/intc/pnv_xive2.c
/openbmc/qemu/hw/isa/piix3.c
/openbmc/qemu/hw/loongarch/loongson3.c
/openbmc/qemu/hw/m68k/bootinfo.h
/openbmc/qemu/hw/m68k/virt.c
/openbmc/qemu/hw/misc/aspeed_hace.c
/openbmc/qemu/hw/misc/aspeed_peci.c
/openbmc/qemu/hw/misc/aspeed_scu.c
/openbmc/qemu/hw/misc/meson.build
/openbmc/qemu/hw/misc/trace-events
/openbmc/qemu/hw/net/e1000.c
/openbmc/qemu/hw/net/imx_fec.c
/openbmc/qemu/hw/nvme/ctrl.c
/openbmc/qemu/hw/nvram/eeprom_at24c.c
/openbmc/qemu/hw/pci-host/i440fx.c
/openbmc/qemu/hw/pci-host/pnv_phb3.c
/openbmc/qemu/hw/pci-host/pnv_phb4.c
/openbmc/qemu/hw/pci-host/pnv_phb4_pec.c
/openbmc/qemu/hw/pci/msi.c
/openbmc/qemu/hw/pci/pcie_aer.c
/openbmc/qemu/hw/pci/shpc.c
/openbmc/qemu/hw/ppc/pnv.c
/openbmc/qemu/hw/ppc/spapr.c
/openbmc/qemu/hw/ppc/spapr_caps.c
/openbmc/qemu/hw/ppc/spapr_iommu.c
/openbmc/qemu/hw/ppc/spapr_pci.c
/openbmc/qemu/hw/ppc/spapr_rtas_ddw.c
/openbmc/qemu/hw/riscv/boot.c
/openbmc/qemu/hw/rtc/ls7a_rtc.c
/openbmc/qemu/hw/scsi/lsi53c895a.c
/openbmc/qemu/hw/scsi/spapr_vscsi.c
/openbmc/qemu/hw/sensor/Kconfig
/openbmc/qemu/hw/sensor/lsm303dlhc_mag.c
/openbmc/qemu/hw/sensor/max31785.c
/openbmc/qemu/hw/sensor/meson.build
/openbmc/qemu/hw/ssi/aspeed_smc.c
/openbmc/qemu/hw/usb/canokey.c
/openbmc/qemu/hw/virtio/vhost-backend.c
/openbmc/qemu/hw/virtio/vhost-user.c
/openbmc/qemu/hw/virtio/vhost.c
/openbmc/qemu/hw/virtio/virtio-iommu.c
/openbmc/qemu/hw/watchdog/meson.build
/openbmc/qemu/hw/watchdog/spapr_watchdog.c
/openbmc/qemu/hw/watchdog/trace-events
/openbmc/qemu/hw/xen/xen_pt_config_init.c
/openbmc/qemu/include/block/block-copy.h
/openbmc/qemu/include/exec/poison.h
/openbmc/qemu/include/hw/arm/aspeed_soc.h
/openbmc/qemu/include/hw/arm/virt.h
/openbmc/qemu/include/hw/i2c/aspeed_i2c.h
/openbmc/qemu/include/hw/i2c/i2c.h
/openbmc/qemu/include/hw/intc/loongarch_ipi.h
/openbmc/qemu/include/hw/intc/loongarch_pch_msi.h
/openbmc/qemu/include/hw/misc/aspeed_peci.h
/openbmc/qemu/include/hw/pci-host/i440fx.h
/openbmc/qemu/include/hw/pci-host/pnv_phb3_regs.h
/openbmc/qemu/include/hw/ppc/pnv.h
/openbmc/qemu/include/hw/ppc/spapr.h
/openbmc/qemu/include/hw/virtio/vhost-backend.h
/openbmc/qemu/include/hw/virtio/vhost.h
/openbmc/qemu/include/hw/xen/xen.h
/openbmc/qemu/include/hw/xen/xen_common.h
/openbmc/qemu/include/qemu/coroutine.h
/openbmc/qemu/include/qemu/host-utils.h
/openbmc/qemu/include/qemu/iova-tree.h
/openbmc/qemu/include/qom/object.h
/openbmc/qemu/include/semihosting/console.h
/openbmc/qemu/include/standard-headers/asm-m68k/bootinfo-virt.h
/openbmc/qemu/include/ui/console.h
/openbmc/qemu/linux-user/aarch64/cpu_loop.c
/openbmc/qemu/linux-user/aarch64/signal.c
/openbmc/qemu/linux-user/aarch64/target_cpu.h
/openbmc/qemu/linux-user/aarch64/target_prctl.h
/openbmc/qemu/linux-user/elfload.c
/openbmc/qemu/linux-user/loongarch64/cpu_loop.c
/openbmc/qemu/linux-user/loongarch64/signal.c
/openbmc/qemu/linux-user/loongarch64/sockbits.h
/openbmc/qemu/linux-user/loongarch64/syscall_nr.h
/openbmc/qemu/linux-user/loongarch64/target_cpu.h
/openbmc/qemu/linux-user/loongarch64/target_elf.h
/openbmc/qemu/linux-user/loongarch64/target_errno_defs.h
/openbmc/qemu/linux-user/loongarch64/target_fcntl.h
/openbmc/qemu/linux-user/loongarch64/target_prctl.h
/openbmc/qemu/linux-user/loongarch64/target_resource.h
/openbmc/qemu/linux-user/loongarch64/target_signal.h
/openbmc/qemu/linux-user/loongarch64/target_structs.h
/openbmc/qemu/linux-user/loongarch64/target_syscall.h
/openbmc/qemu/linux-user/loongarch64/termbits.h
/openbmc/qemu/linux-user/m68k/cpu_loop.c
/openbmc/qemu/linux-user/syscall.c
/openbmc/qemu/linux-user/syscall_defs.h
/openbmc/qemu/meson.build
/openbmc/qemu/meson_options.txt
/openbmc/qemu/nbd/client-connection.c
/openbmc/qemu/nbd/trace-events
/openbmc/qemu/pc-bios/optionrom/Makefile
/openbmc/qemu/pc-bios/s390-ccw.img
/openbmc/qemu/pc-bios/s390-ccw/Makefile
/openbmc/qemu/pc-bios/s390-ccw/bootmap.c
/openbmc/qemu/pc-bios/s390-ccw/main.c
/openbmc/qemu/pc-bios/s390-ccw/netboot.mak
/openbmc/qemu/pc-bios/s390-ccw/s390-ccw.h
/openbmc/qemu/pc-bios/s390-ccw/virtio-blkdev.c
/openbmc/qemu/pc-bios/s390-ccw/virtio-scsi.c
/openbmc/qemu/pc-bios/s390-ccw/virtio-scsi.h
/openbmc/qemu/pc-bios/s390-ccw/virtio.c
/openbmc/qemu/pc-bios/s390-ccw/virtio.h
/openbmc/qemu/pc-bios/s390-netboot.img
/openbmc/qemu/pc-bios/vof/Makefile
/openbmc/qemu/po/LINGUAS
/openbmc/qemu/po/uk.po
/openbmc/qemu/qapi/block-core.json
/openbmc/qemu/qapi/net.json
/openbmc/qemu/qga/main.c
/openbmc/qemu/scripts/clean-header-guards.pl
/openbmc/qemu/scripts/clean-includes
/openbmc/qemu/scripts/coverity-scan/COMPONENTS.md
/openbmc/qemu/scripts/gensyscalls.sh
/openbmc/qemu/scripts/meson-buildoptions.sh
/openbmc/qemu/scripts/oss-fuzz/build.sh
/openbmc/qemu/scripts/qemu-binfmt-conf.sh
console.c
/openbmc/qemu/softmmu/vl.c
/openbmc/qemu/stubs/xen-hw-stub.c
/openbmc/qemu/subprojects/libvhost-user/libvhost-user.c
/openbmc/qemu/target/arm/cpregs.h
/openbmc/qemu/target/arm/cpu.c
/openbmc/qemu/target/arm/cpu.h
/openbmc/qemu/target/arm/cpu64.c
/openbmc/qemu/target/arm/cpu_tcg.c
/openbmc/qemu/target/arm/debug_helper.c
/openbmc/qemu/target/arm/helper-sme.h
/openbmc/qemu/target/arm/helper-sve.h
/openbmc/qemu/target/arm/helper.c
/openbmc/qemu/target/arm/helper.h
/openbmc/qemu/target/arm/internals.h
/openbmc/qemu/target/arm/meson.build
/openbmc/qemu/target/arm/ptw.c
/openbmc/qemu/target/arm/sme-fa64.decode
/openbmc/qemu/target/arm/sme.decode
/openbmc/qemu/target/arm/sme_helper.c
/openbmc/qemu/target/arm/sve.decode
/openbmc/qemu/target/arm/sve_helper.c
/openbmc/qemu/target/arm/translate-a64.c
/openbmc/qemu/target/arm/translate-a64.h
/openbmc/qemu/target/arm/translate-sme.c
/openbmc/qemu/target/arm/translate-sve.c
/openbmc/qemu/target/arm/translate-vfp.c
/openbmc/qemu/target/arm/translate.c
/openbmc/qemu/target/arm/translate.h
/openbmc/qemu/target/arm/vec_helper.c
/openbmc/qemu/target/loongarch/README
/openbmc/qemu/target/loongarch/cpu.c
/openbmc/qemu/target/loongarch/cpu.h
/openbmc/qemu/target/loongarch/csr_helper.c
/openbmc/qemu/target/loongarch/gdbstub.c
/openbmc/qemu/target/loongarch/helper.h
/openbmc/qemu/target/loongarch/insn_trans/trans_privileged.c.inc
/openbmc/qemu/target/loongarch/internals.h
/openbmc/qemu/target/loongarch/op_helper.c
/openbmc/qemu/target/m68k/m68k-semi.c
/openbmc/qemu/target/m68k/meson.build
/openbmc/qemu/target/mips/cpu-defs.c.inc
/openbmc/qemu/target/mips/cpu.h
/openbmc/qemu/target/mips/mips-defs.h
/openbmc/qemu/target/mips/tcg/exception.c
/openbmc/qemu/target/mips/tcg/meson.build
/openbmc/qemu/target/mips/tcg/micromips_translate.c.inc
/openbmc/qemu/target/mips/tcg/mips16e_translate.c.inc
/openbmc/qemu/target/mips/tcg/nanomips_translate.c.inc
/openbmc/qemu/target/mips/tcg/octeon.decode
/openbmc/qemu/target/mips/tcg/octeon_translate.c
/openbmc/qemu/target/mips/tcg/sysemu/mips-semi.c
/openbmc/qemu/target/mips/tcg/sysemu/tlb_helper.c
/openbmc/qemu/target/mips/tcg/sysemu_helper.h.inc
/openbmc/qemu/target/mips/tcg/tcg-internal.h
/openbmc/qemu/target/mips/tcg/translate.c
/openbmc/qemu/target/mips/tcg/translate.h
/openbmc/qemu/target/nios2/meson.build
/openbmc/qemu/target/nios2/nios2-semi.c
/openbmc/qemu/target/ppc/cpu-models.c
/openbmc/qemu/target/ppc/cpu-models.h
/openbmc/qemu/target/ppc/cpu.h
/openbmc/qemu/target/ppc/cpu_init.c
/openbmc/qemu/target/ppc/dfp_helper.c
/openbmc/qemu/target/ppc/helper.h
/openbmc/qemu/target/ppc/insn32.decode
/openbmc/qemu/target/ppc/int_helper.c
/openbmc/qemu/target/ppc/internal.h
/openbmc/qemu/target/ppc/translate/fixedpoint-impl.c.inc
/openbmc/qemu/target/ppc/translate/fp-impl.c.inc
/openbmc/qemu/target/ppc/translate/fp-ops.c.inc
/openbmc/qemu/target/ppc/translate/vmx-impl.c.inc
/openbmc/qemu/target/ppc/translate/vmx-ops.c.inc
/openbmc/qemu/target/riscv/cpu.c
/openbmc/qemu/target/riscv/cpu.h
/openbmc/qemu/target/riscv/cpu_bits.h
/openbmc/qemu/target/riscv/cpu_helper.c
/openbmc/qemu/target/riscv/csr.c
/openbmc/qemu/target/riscv/insn_trans/trans_privileged.c.inc
/openbmc/qemu/target/riscv/insn_trans/trans_rvh.c.inc
/openbmc/qemu/target/riscv/insn_trans/trans_rvi.c.inc
/openbmc/qemu/target/riscv/machine.c
/openbmc/qemu/target/riscv/meson.build
/openbmc/qemu/target/riscv/pmp.c
/openbmc/qemu/target/riscv/pmu.c
/openbmc/qemu/target/riscv/pmu.h
/openbmc/qemu/target/riscv/translate.c
/openbmc/qemu/target/s390x/tcg/misc_helper.c
/openbmc/qemu/target/s390x/tcg/translate.c
/openbmc/qemu/tcg/region.c
/openbmc/qemu/tcg/tci/tcg-target.c.inc
/openbmc/qemu/tcg/tci/tcg-target.h
/openbmc/qemu/tests/fp/meson.build
/openbmc/qemu/tests/qemu-iotests/pylintrc
/openbmc/qemu/tests/qemu-iotests/tests/copy-before-write
/openbmc/qemu/tests/qemu-iotests/tests/copy-before-write.out
/openbmc/qemu/tests/qtest/aspeed_smc-test.c
/openbmc/qemu/tests/qtest/migration-helpers.c
/openbmc/qemu/tests/qtest/migration-test.c
/openbmc/qemu/tests/tcg/Makefile.target
/openbmc/qemu/tests/tcg/aarch64/system/pauth-3.c
/openbmc/qemu/tests/tcg/aarch64/system/semiconsole.c
/openbmc/qemu/tests/tcg/aarch64/system/semiheap.c
/openbmc/qemu/tests/tcg/multiarch/system/memory.c
/openbmc/qemu/tests/tcg/ppc64/Makefile.target
/openbmc/qemu/tests/tcg/ppc64le/Makefile.target
/openbmc/qemu/tests/tcg/ppc64le/mffsce.c
/openbmc/qemu/tests/tcg/riscv64/Makefile.softmmu-target
/openbmc/qemu/tests/tcg/riscv64/issue1060.S
/openbmc/qemu/tests/tcg/riscv64/semihost.ld
/openbmc/qemu/tests/unit/test-cutils.c
/openbmc/qemu/tests/vm/fedora
/openbmc/qemu/tests/vm/freebsd
/openbmc/qemu/tests/vm/netbsd
/openbmc/qemu/tests/vm/openbsd
/openbmc/qemu/tools/virtiofsd/passthrough_ll.c
/openbmc/qemu/ui/cocoa.m
/openbmc/qemu/ui/console.c
/openbmc/qemu/ui/input.c
/openbmc/qemu/util/iova-tree.c
/openbmc/qemu/util/meson.build
/openbmc/qemu/util/qemu-co-timeout.c
1b9177f702-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Create semihost_sys_poll_one

This will be used for implementing the xtensa select_one
system call. Choose "poll" over "select" so that we can
reuse Glib's g_poll constants and to avoid

semihosting: Create semihost_sys_poll_one

This will be used for implementing the xtensa select_one
system call. Choose "poll" over "select" so that we can
reuse Glib's g_poll constants and to avoid struct timeval.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

2d010c2701-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Remove qemu_semihosting_console_outs

This function has been replaced by *_write.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-of

semihosting: Remove qemu_semihosting_console_outs

This function has been replaced by *_write.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

7281550c01-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Use console_out_gf for SYS_WRITE0

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

004d2abe01-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Remove qemu_semihosting_console_outc

This function has been replaced by *_write.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.

semihosting: Remove qemu_semihosting_console_outc

This function has been replaced by *_write.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

5d77289d01-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Use console_out_gf for SYS_WRITEC

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

1577eec001-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Use console_in_gf for SYS_READC

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

e4a4aaa501-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Create qemu_semihosting_guestfd_init

For arm-compat, initialize console_{in,out}_gf;
otherwise, initialize stdio file descriptors.

This will go some way to cleaning up arm-compat, and

semihosting: Create qemu_semihosting_guestfd_init

For arm-compat, initialize console_{in,out}_gf;
otherwise, initialize stdio file descriptors.

This will go some way to cleaning up arm-compat, and
will allow other semihosting to use normal stdio.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

008e147501-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Add GuestFDConsole

Add a GuestFDType for connecting to the semihosting console.
Hook up to read, write, isatty, and fstat syscalls.

Note that the arm-specific syscall flen cannot be ap

semihosting: Add GuestFDConsole

Add a GuestFDType for connecting to the semihosting console.
Hook up to read, write, isatty, and fstat syscalls.

Note that the arm-specific syscall flen cannot be applied
to the console, because the console is not a descriptor
exposed to the guest.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

cd66f20f01-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Create qemu_semihosting_console_write

Will replace qemu_semihosting_console_{outs,outc},
but we need more plumbing first.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Ric

semihosting: Create qemu_semihosting_console_write

Will replace qemu_semihosting_console_{outs,outc},
but we need more plumbing first.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

fb08790b01-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Cleanup chardev init

Rename qemu_semihosting_connect_chardevs to
qemu_semihosting_chardev_init; pass the result
directly to qemu_semihosting_console_init.

Store the chardev in Semihost

semihosting: Cleanup chardev init

Rename qemu_semihosting_connect_chardevs to
qemu_semihosting_chardev_init; pass the result
directly to qemu_semihosting_console_init.

Store the chardev in SemihostingConsole instead
of SemihostingConfig, which lets us drop
semihosting_get_chardev.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

e7fb6f3201-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Expand qemu_semihosting_console_inc to read

Allow more than one character to be read at one time.
Will be used by m68k and nios2 semihosting for stdio.

Reviewed-by: Luc Michel <lmichel

semihosting: Expand qemu_semihosting_console_inc to read

Allow more than one character to be read at one time.
Will be used by m68k and nios2 semihosting for stdio.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

3367d45201-May-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Pass CPUState to qemu_semihosting_console_inc

We don't need CPUArchState, and we do want the CPUState of the
thread performing the operation -- use this instead of current_cpu.

Reviewe

semihosting: Pass CPUState to qemu_semihosting_console_inc

We don't need CPUArchState, and we do want the CPUState of the
thread performing the operation -- use this instead of current_cpu.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

64c8c6a929-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

gdbstub: Adjust gdb_syscall_complete_cb declaration

Change 'ret' to uint64_t. This resolves a FIXME in the
m68k and nios2 semihosting that we've lost data.
Change 'err' to int. There is nothing ta

gdbstub: Adjust gdb_syscall_complete_cb declaration

Change 'ret' to uint64_t. This resolves a FIXME in the
m68k and nios2 semihosting that we've lost data.
Change 'err' to int. There is nothing target-specific
about the width of the errno value.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

1875dab029-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Create semihost_sys_gettimeofday

This syscall will be used by m68k and nios2 semihosting.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderso

semihosting: Create semihost_sys_gettimeofday

This syscall will be used by m68k and nios2 semihosting.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

dffeb77529-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Create semihost_sys_{stat,fstat}

These syscalls will be used by m68k and nios2 semihosting.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.hender

semihosting: Create semihost_sys_{stat,fstat}

These syscalls will be used by m68k and nios2 semihosting.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

90d8e0b029-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Split out semihost_sys_system

Split out the non-ARM specific portions of SYS_SYSTEM to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson

semihosting: Split out semihost_sys_system

Split out the non-ARM specific portions of SYS_SYSTEM to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

25a95da029-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Split out semihost_sys_rename

Split out the non-ARM specific portions of SYS_RENAME to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson

semihosting: Split out semihost_sys_rename

Split out the non-ARM specific portions of SYS_RENAME to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

d49e79b829-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Split out semihost_sys_remove

Split out the non-ARM specific portions of SYS_REMOVE to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson

semihosting: Split out semihost_sys_remove

Split out the non-ARM specific portions of SYS_REMOVE to a
reusable function.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

a6300ed629-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Split out semihost_sys_flen

The ARM-specific SYS_FLEN isn't really something that can be
reused by other semihosting apis, but there are parts that can
reused for the implementation of

semihosting: Split out semihost_sys_flen

The ARM-specific SYS_FLEN isn't really something that can be
reused by other semihosting apis, but there are parts that can
reused for the implementation of semihost_sys_fstat.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

a221247428-Apr-2022 Richard Henderson <richard.henderson@linaro.org>

semihosting: Split out semihost_sys_isatty

Split out the non-ARM specific portions of SYS_ISTTY to a
reusable function. This handles all GuestFD.

Add a common_semi_istty_cb helper to translate the

semihosting: Split out semihost_sys_isatty

Split out the non-ARM specific portions of SYS_ISTTY to a
reusable function. This handles all GuestFD.

Add a common_semi_istty_cb helper to translate the Posix
error return, 0+ENOTTY, to the Arm semihosting not-a-file
success result.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

show more ...

1234