History log of /openbmc/qemu/target/riscv/ (Results 676 – 700 of 1666)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
26934f9a31-Jan-2023 Sergey Matyukevich <sergey.matyukevich@syntacore.com>

target/riscv: set tval for triggered watchpoints

According to privileged spec, if [sm]tval is written with a nonzero
value when a breakpoint exception occurs, then [sm]tval will contain
the faulting

target/riscv: set tval for triggered watchpoints

According to privileged spec, if [sm]tval is written with a nonzero
value when a breakpoint exception occurs, then [sm]tval will contain
the faulting virtual address. Set tval to hit address when breakpoint
exception is triggered by hardware watchpoint.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230131170955.752743-1-geomatsi@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

f008a2d220-Jan-2023 Anup Patel <apatel@ventanamicro.com>

target/riscv: Ensure opcode is saved for all relevant instructions

We should call decode_save_opc() for all relevant instructions which
can potentially generate a virtual instruction fault or a gues

target/riscv: Ensure opcode is saved for all relevant instructions

We should call decode_save_opc() for all relevant instructions which
can potentially generate a virtual instruction fault or a guest page
fault because generating transformed instruction upon guest page fault
expects opcode to be available. Without this, hypervisor will see
transformed instruction as zero in htinst CSR for guest MMIO emulation
which makes MMIO emulation in hypervisor slow and also breaks nested
virtualization.

Fixes: a9814e3e08d2 ("target/riscv: Minimize the calls to decode_save_opc")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-5-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

ae0edf2120-Jan-2023 Anup Patel <apatel@ventanamicro.com>

target/riscv: No need to re-start QEMU timer when timecmp == UINT64_MAX

The time CSR will wrap-around immediately after reaching UINT64_MAX
so we don't need to re-start QEMU timer when timecmp == UI

target/riscv: No need to re-start QEMU timer when timecmp == UINT64_MAX

The time CSR will wrap-around immediately after reaching UINT64_MAX
so we don't need to re-start QEMU timer when timecmp == UINT64_MAX
in riscv_timer_write_timecmp().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-4-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

14cb78bf20-Jan-2023 Anup Patel <apatel@ventanamicro.com>

target/riscv: Don't clear mask in riscv_cpu_update_mip() for VSTIP

Instead of clearing mask in riscv_cpu_update_mip() for VSTIP, we
should call riscv_cpu_update_mip() with mask == 0 from timer_helpe

target/riscv: Don't clear mask in riscv_cpu_update_mip() for VSTIP

Instead of clearing mask in riscv_cpu_update_mip() for VSTIP, we
should call riscv_cpu_update_mip() with mask == 0 from timer_helper.c
for VSTIP.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp suppor")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-3-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

2cfb3b6c20-Jan-2023 Anup Patel <apatel@ventanamicro.com>

target/riscv: Update VS timer whenever htimedelta changes

The htimedelta[h] CSR has impact on the VS timer comparison so we
should call riscv_timer_write_timecmp() whenever htimedelta changes.

Fixe

target/riscv: Update VS timer whenever htimedelta changes

The htimedelta[h] CSR has impact on the VS timer comparison so we
should call riscv_timer_write_timecmp() whenever htimedelta changes.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp suppor")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-2-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...


/openbmc/qemu/.gitlab-ci.d/base.yml
/openbmc/qemu/.gitlab-ci.d/buildtest.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-12.vars
/openbmc/qemu/.gitlab-ci.d/crossbuilds.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml
/openbmc/qemu/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml
/openbmc/qemu/.gitlab-ci.d/windows.yml
/openbmc/qemu/.travis.yml
/openbmc/qemu/MAINTAINERS
/openbmc/qemu/accel/kvm/kvm-all.c
/openbmc/qemu/accel/tcg/atomic_common.c.inc
/openbmc/qemu/accel/tcg/cpu-exec.c
/openbmc/qemu/accel/tcg/cputlb.c
/openbmc/qemu/accel/tcg/debuginfo.h
/openbmc/qemu/accel/tcg/plugin-gen.c
/openbmc/qemu/accel/tcg/plugin-helpers.h
/openbmc/qemu/accel/tcg/tb-jmp-cache.h
/openbmc/qemu/accel/tcg/tcg-runtime.h
/openbmc/qemu/accel/tcg/translator.c
/openbmc/qemu/accel/tcg/user-exec.c
/openbmc/qemu/audio/audio-hmp-cmds.c
/openbmc/qemu/audio/audio.c
/openbmc/qemu/audio/audio_legacy.c
/openbmc/qemu/audio/audio_template.h
/openbmc/qemu/audio/meson.build
/openbmc/qemu/block.c
/openbmc/qemu/block/amend.c
/openbmc/qemu/block/backup.c
/openbmc/qemu/block/blkdebug.c
/openbmc/qemu/block/blkio.c
/openbmc/qemu/block/blklogwrites.c
/openbmc/qemu/block/blkreplay.c
/openbmc/qemu/block/blkverify.c
/openbmc/qemu/block/block-backend.c
/openbmc/qemu/block/block-copy.c
/openbmc/qemu/block/bochs.c
/openbmc/qemu/block/cloop.c
/openbmc/qemu/block/commit.c
/openbmc/qemu/block/copy-before-write.c
/openbmc/qemu/block/copy-on-read.c
/openbmc/qemu/block/crypto.c
/openbmc/qemu/block/curl.c
/openbmc/qemu/block/dirty-bitmap.c
/openbmc/qemu/block/dmg.c
/openbmc/qemu/block/export/fuse.c
/openbmc/qemu/block/file-posix.c
/openbmc/qemu/block/file-win32.c
/openbmc/qemu/block/filter-compress.c
/openbmc/qemu/block/gluster.c
/openbmc/qemu/block/io.c
/openbmc/qemu/block/iscsi.c
/openbmc/qemu/block/meson.build
/openbmc/qemu/block/mirror.c
/openbmc/qemu/block/monitor/bitmap-qmp-cmds.c
/openbmc/qemu/block/monitor/block-hmp-cmds.c
/openbmc/qemu/block/nbd.c
/openbmc/qemu/block/nfs.c
/openbmc/qemu/block/null.c
/openbmc/qemu/block/nvme.c
/openbmc/qemu/block/parallels-ext.c
/openbmc/qemu/block/preallocate.c
/openbmc/qemu/block/progress_meter.c
/openbmc/qemu/block/qapi-sysemu.c
/openbmc/qemu/block/qapi.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-threads.c
/openbmc/qemu/block/qcow2.c
/openbmc/qemu/block/qed-check.c
/openbmc/qemu/block/qed-table.c
/openbmc/qemu/block/qed.c
/openbmc/qemu/block/quorum.c
/openbmc/qemu/block/raw-format.c
/openbmc/qemu/block/rbd.c
/openbmc/qemu/block/replication.c
/openbmc/qemu/block/ssh.c
/openbmc/qemu/block/throttle.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/block/win32-aio.c
/openbmc/qemu/block/write-threshold.c
/openbmc/qemu/blockdev.c
/openbmc/qemu/blockjob.c
/openbmc/qemu/chardev/char-hmp-cmds.c
/openbmc/qemu/chardev/char.c
/openbmc/qemu/chardev/meson.build
/openbmc/qemu/chardev/spice.c
/openbmc/qemu/common-user/host/ppc/safe-syscall.inc.S
/openbmc/qemu/configs/targets/nios2-softmmu.mak
/openbmc/qemu/configure
/openbmc/qemu/cpu.c
/openbmc/qemu/crypto/block-luks-priv.h
/openbmc/qemu/crypto/block-luks.c
/openbmc/qemu/disas.c
/openbmc/qemu/disas/riscv.c
/openbmc/qemu/docs/about/deprecated.rst
/openbmc/qemu/docs/about/emulation.rst
/openbmc/qemu/docs/about/index.rst
/openbmc/qemu/docs/about/removed-features.rst
/openbmc/qemu/docs/conf.py
/openbmc/qemu/docs/devel/tcg-plugins.rst
/openbmc/qemu/docs/interop/live-block-operations.rst
/openbmc/qemu/docs/interop/qemu-qmp-ref.rst
/openbmc/qemu/docs/pcie.txt
/openbmc/qemu/docs/system/arm/emulation.rst
/openbmc/qemu/docs/system/index.rst
/openbmc/qemu/docs/system/introduction.rst
/openbmc/qemu/docs/system/multi-process.rst
/openbmc/qemu/docs/system/s390x/pcidevices.rst
/openbmc/qemu/docs/system/target-s390x.rst
/openbmc/qemu/docs/tools/index.rst
/openbmc/qemu/docs/user/index.rst
/openbmc/qemu/hmp-commands.hx
/openbmc/qemu/hw/9pfs/codir.c
/openbmc/qemu/hw/9pfs/cofile.c
/openbmc/qemu/hw/9pfs/cofs.c
/openbmc/qemu/hw/9pfs/coth.h
/openbmc/qemu/hw/9pfs/coxattr.c
/openbmc/qemu/hw/acpi/Kconfig
/openbmc/qemu/hw/acpi/acpi-qmp-cmds.c
/openbmc/qemu/hw/acpi/acpi-x86-stub.c
/openbmc/qemu/hw/acpi/acpi_interface.c
/openbmc/qemu/hw/acpi/cpu.c
/openbmc/qemu/hw/acpi/meson.build
/openbmc/qemu/hw/acpi/pci-bridge-stub.c
/openbmc/qemu/hw/acpi/pci-bridge.c
/openbmc/qemu/hw/acpi/pcihp.c
/openbmc/qemu/hw/acpi/piix4.c
/openbmc/qemu/hw/arm/Kconfig
/openbmc/qemu/hw/arm/musicpal.c
/openbmc/qemu/hw/arm/realview.c
/openbmc/qemu/hw/arm/sbsa-ref.c
/openbmc/qemu/hw/arm/smmu-common.c
/openbmc/qemu/hw/arm/versatilepb.c
/openbmc/qemu/hw/arm/vexpress.c
/openbmc/qemu/hw/arm/virt.c
/openbmc/qemu/hw/block/block.c
/openbmc/qemu/hw/block/dataplane/virtio-blk.c
/openbmc/qemu/hw/block/virtio-blk.c
/openbmc/qemu/hw/char/pl011.c
/openbmc/qemu/hw/core/machine-hmp-cmds.c
/openbmc/qemu/hw/core/machine-qmp-cmds.c
/openbmc/qemu/hw/core/machine.c
/openbmc/qemu/hw/display/qxl.c
/openbmc/qemu/hw/display/qxl.h
/openbmc/qemu/hw/display/sm501.c
/openbmc/qemu/hw/display/trace-events
/openbmc/qemu/hw/i2c/Kconfig
/openbmc/qemu/hw/i2c/arm_sbcon_i2c.c
/openbmc/qemu/hw/i2c/bitbang_i2c.c
/openbmc/qemu/hw/i2c/meson.build
/openbmc/qemu/hw/i2c/smbus_ich9.c
/openbmc/qemu/hw/i2c/trace-events
/openbmc/qemu/hw/i386/Kconfig
/openbmc/qemu/hw/i386/acpi-build.c
/openbmc/qemu/hw/i386/acpi-common.c
/openbmc/qemu/hw/i386/acpi-microvm.c
/openbmc/qemu/hw/i386/microvm.c
/openbmc/qemu/hw/i386/pc_q35.c
/openbmc/qemu/hw/i386/x86.c
/openbmc/qemu/hw/intc/arm_gicv3_cpuif.c
/openbmc/qemu/hw/intc/pnv_xive.c
/openbmc/qemu/hw/intc/pnv_xive2.c
/openbmc/qemu/hw/isa/isa-bus.c
/openbmc/qemu/hw/isa/lpc_ich9.c
/openbmc/qemu/hw/isa/piix3.c
/openbmc/qemu/hw/misc/sifive_u_otp.c
/openbmc/qemu/hw/net/meson.build
/openbmc/qemu/hw/net/rocker/rocker-hmp-cmds.c
/openbmc/qemu/hw/nvram/fw_cfg.c
/openbmc/qemu/hw/pci-bridge/gen_pcie_root_port.c
/openbmc/qemu/hw/pci-bridge/pci_bridge_dev.c
/openbmc/qemu/hw/pci-host/grackle.c
/openbmc/qemu/hw/pci-host/mv64361.c
/openbmc/qemu/hw/pci-host/pnv_phb.h
/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-host/raven.c
/openbmc/qemu/hw/pci-host/uninorth.c
/openbmc/qemu/hw/pci/pci.c
/openbmc/qemu/hw/pci/pci_bridge.c
/openbmc/qemu/hw/pci/pcie.c
/openbmc/qemu/hw/pci/pcie_port.c
/openbmc/qemu/hw/pci/shpc.c
/openbmc/qemu/hw/ppc/e500.c
/openbmc/qemu/hw/ppc/e500plat.c
/openbmc/qemu/hw/ppc/pegasos2.c
/openbmc/qemu/hw/ppc/pnv.c
/openbmc/qemu/hw/ppc/pnv_core.c
/openbmc/qemu/hw/ppc/pnv_homer.c
/openbmc/qemu/hw/ppc/pnv_lpc.c
/openbmc/qemu/hw/ppc/pnv_psi.c
/openbmc/qemu/hw/ppc/pnv_xscom.c
/openbmc/qemu/hw/riscv/boot.c
/openbmc/qemu/hw/riscv/opentitan.c
/openbmc/qemu/hw/riscv/virt.c
/openbmc/qemu/hw/scsi/scsi-disk.c
/openbmc/qemu/hw/sparc64/niagara.c
/openbmc/qemu/hw/virtio/meson.build
/openbmc/qemu/hw/virtio/vhost-user.c
/openbmc/qemu/hw/virtio/virtio-hmp-cmds.c
/openbmc/qemu/hw/virtio/virtio-iommu.c
/openbmc/qemu/hw/virtio/virtio-pmem.c
/openbmc/qemu/include/block/aio.h
/openbmc/qemu/include/block/aio_task.h
/openbmc/qemu/include/block/block-common.h
/openbmc/qemu/include/block/block-copy.h
/openbmc/qemu/include/block/block-global-state.h
/openbmc/qemu/include/block/block-hmp-cmds.h
/openbmc/qemu/include/block/block-io.h
/openbmc/qemu/include/block/block.h
/openbmc/qemu/include/block/block_backup.h
/openbmc/qemu/include/block/block_int-common.h
/openbmc/qemu/include/block/block_int-global-state.h
/openbmc/qemu/include/block/block_int-io.h
/openbmc/qemu/include/block/block_int.h
/openbmc/qemu/include/block/blockjob.h
/openbmc/qemu/include/block/blockjob_int.h
/openbmc/qemu/include/block/dirty-bitmap.h
/openbmc/qemu/include/block/graph-lock.h
/openbmc/qemu/include/block/nbd.h
/openbmc/qemu/include/block/qapi.h
/openbmc/qemu/include/block/raw-aio.h
/openbmc/qemu/include/block/thread-pool.h
/openbmc/qemu/include/block/throttle-groups.h
/openbmc/qemu/include/exec/cpu_ldst.h
/openbmc/qemu/include/exec/helper-head.h
/openbmc/qemu/include/exec/helper-proto.h
/openbmc/qemu/include/exec/memory.h
/openbmc/qemu/include/hw/acpi/acpi_aml_interface.h
/openbmc/qemu/include/hw/acpi/acpi_dev_interface.h
/openbmc/qemu/include/hw/acpi/pci.h
/openbmc/qemu/include/hw/arm/virt.h
/openbmc/qemu/include/hw/block/swim.h
/openbmc/qemu/include/hw/char/pl011.h
/openbmc/qemu/include/hw/i2c/arm_sbcon_i2c.h
/openbmc/qemu/include/hw/i2c/bitbang_i2c.h
/openbmc/qemu/include/hw/i386/intel_iommu.h
/openbmc/qemu/include/hw/i386/microvm.h
/openbmc/qemu/include/hw/i386/pc.h
/openbmc/qemu/include/hw/isa/isa.h
/openbmc/qemu/include/hw/nvram/fw_cfg.h
/openbmc/qemu/include/hw/pci-host/pnv_phb3.h
/openbmc/qemu/include/hw/pci-host/pnv_phb4.h
/openbmc/qemu/include/hw/pci/pci.h
/openbmc/qemu/include/hw/pci/pcie_port.h
/openbmc/qemu/include/hw/ppc/pnv.h
/openbmc/qemu/include/hw/ppc/pnv_chip.h
/openbmc/qemu/include/hw/ppc/pnv_core.h
/openbmc/qemu/include/hw/ppc/pnv_homer.h
/openbmc/qemu/include/hw/ppc/pnv_lpc.h
/openbmc/qemu/include/hw/ppc/pnv_occ.h
/openbmc/qemu/include/hw/ppc/pnv_pnor.h
/openbmc/qemu/include/hw/ppc/pnv_sbe.h
/openbmc/qemu/include/hw/ppc/pnv_xive.h
/openbmc/qemu/include/hw/ppc/pnv_xscom.h
/openbmc/qemu/include/hw/ppc/xive2.h
/openbmc/qemu/include/hw/ppc/xive2_regs.h
/openbmc/qemu/include/hw/riscv/opentitan.h
/openbmc/qemu/include/hw/virtio/virtio-blk.h
/openbmc/qemu/include/io/channel.h
/openbmc/qemu/include/monitor/hmp-target.h
/openbmc/qemu/include/monitor/hmp.h
/openbmc/qemu/include/monitor/monitor.h
/openbmc/qemu/include/monitor/qmp-helpers.h
/openbmc/qemu/include/net/net.h
/openbmc/qemu/include/qemu/atomic128.h
/openbmc/qemu/include/qemu/bswap.h
/openbmc/qemu/include/qemu/coroutine-core.h
/openbmc/qemu/include/qemu/coroutine.h
/openbmc/qemu/include/qemu/int128.h
/openbmc/qemu/include/qemu/lockable.h
/openbmc/qemu/include/qemu/osdep.h
/openbmc/qemu/include/qemu/plugin.h
/openbmc/qemu/include/qemu/progress_meter.h
/openbmc/qemu/include/qemu/readline.h
/openbmc/qemu/include/qemu/thread.h
/openbmc/qemu/include/qemu/typedefs.h
/openbmc/qemu/include/scsi/pr-manager.h
/openbmc/qemu/include/sysemu/block-backend-io.h
/openbmc/qemu/include/sysemu/stats.h
/openbmc/qemu/include/tcg/tcg-op.h
/openbmc/qemu/include/tcg/tcg.h
/openbmc/qemu/include/ui/console.h
/openbmc/qemu/include/ui/qemu-spice.h
/openbmc/qemu/include/ui/spice-display.h
/openbmc/qemu/linux-user/aarch64/cpu_loop.c
/openbmc/qemu/linux-user/aarch64/signal.c
/openbmc/qemu/linux-user/aarch64/target_flat.h
/openbmc/qemu/linux-user/arm/target_flat.h
/openbmc/qemu/linux-user/generic/target_flat.h
/openbmc/qemu/linux-user/include/host/ppc/host-signal.h
/openbmc/qemu/linux-user/m68k/target_flat.h
/openbmc/qemu/linux-user/microblaze/target_flat.h
/openbmc/qemu/linux-user/mmap.c
/openbmc/qemu/linux-user/sh4/target_flat.h
/openbmc/qemu/linux-user/strace.c
/openbmc/qemu/linux-user/strace.list
/openbmc/qemu/linux-user/syscall.c
/openbmc/qemu/meson.build
/openbmc/qemu/migration/block-dirty-bitmap.c
/openbmc/qemu/migration/block.c
/openbmc/qemu/migration/meson.build
/openbmc/qemu/migration/migration-hmp-cmds.c
/openbmc/qemu/migration/migration.c
/openbmc/qemu/migration/savevm.c
/openbmc/qemu/monitor/fds.c
/openbmc/qemu/monitor/hmp-cmds-target.c
/openbmc/qemu/monitor/hmp-cmds.c
/openbmc/qemu/monitor/hmp-target.c
/openbmc/qemu/monitor/hmp.c
/openbmc/qemu/monitor/meson.build
/openbmc/qemu/monitor/monitor-internal.h
/openbmc/qemu/monitor/monitor.c
/openbmc/qemu/monitor/qmp-cmds-control.c
/openbmc/qemu/monitor/qmp-cmds.c
/openbmc/qemu/nbd/client-connection.c
/openbmc/qemu/nbd/nbd-internal.h
/openbmc/qemu/nbd/server.c
/openbmc/qemu/net/meson.build
/openbmc/qemu/net/net-hmp-cmds.c
/openbmc/qemu/net/net.c
/openbmc/qemu/plugins/core.c
/openbmc/qemu/python/qemu/machine/console_socket.py
/openbmc/qemu/python/qemu/machine/machine.py
/openbmc/qemu/python/qemu/machine/qtest.py
/openbmc/qemu/python/qemu/qmp/legacy.py
/openbmc/qemu/python/qemu/qmp/protocol.py
/openbmc/qemu/python/qemu/qmp/qmp_client.py
/openbmc/qemu/python/qemu/qmp/qmp_tui.py
/openbmc/qemu/qapi/audio.json
/openbmc/qemu/qapi/block-core.json
/openbmc/qemu/qemu-img.c
/openbmc/qemu/qemu-io-cmds.c
/openbmc/qemu/qemu-options.hx
/openbmc/qemu/qom/qom-hmp-cmds.c
/openbmc/qemu/scripts/block-coroutine-wrapper.py
/openbmc/qemu/scripts/ci/setup/build-environment.yml
/openbmc/qemu/scripts/ci/setup/gitlab-runner.yml
/openbmc/qemu/scripts/ci/setup/vars.yml.template
/openbmc/qemu/scripts/oss-fuzz/lsan_suppressions.txt
/openbmc/qemu/scripts/shaderinclude.py
/openbmc/qemu/semihosting/syscalls.c
/openbmc/qemu/softmmu/cpus.c
/openbmc/qemu/softmmu/meson.build
/openbmc/qemu/softmmu/physmem.c
/openbmc/qemu/softmmu/qdev-monitor.c
/openbmc/qemu/softmmu/runstate-hmp-cmds.c
/openbmc/qemu/softmmu/tpm-hmp-cmds.c
/openbmc/qemu/stats/meson.build
/openbmc/qemu/stats/stats-hmp-cmds.c
/openbmc/qemu/stats/stats-qmp-cmds.c
/openbmc/qemu/storage-daemon/qemu-storage-daemon.c
/openbmc/qemu/target/arm/cpregs.h
/openbmc/qemu/target/arm/cpu.h
/openbmc/qemu/target/arm/cpu64.c
/openbmc/qemu/target/arm/debug_helper.c
/openbmc/qemu/target/arm/helper-a64.c
/openbmc/qemu/target/arm/helper-a64.h
/openbmc/qemu/target/arm/helper-sme.h
/openbmc/qemu/target/arm/helper.c
/openbmc/qemu/target/arm/helper.h
/openbmc/qemu/target/arm/hvf/hvf.c
/openbmc/qemu/target/arm/hvf/trace-events
/openbmc/qemu/target/arm/internals.h
/openbmc/qemu/target/arm/m_helper.c
/openbmc/qemu/target/arm/mte_helper.c
/openbmc/qemu/target/arm/op_helper.c
/openbmc/qemu/target/arm/ptw.c
/openbmc/qemu/target/arm/sme_helper.c
/openbmc/qemu/target/arm/syndrome.h
/openbmc/qemu/target/arm/translate-a64.c
/openbmc/qemu/target/arm/translate.c
/openbmc/qemu/target/arm/translate.h
/openbmc/qemu/target/i386/hax/hax-all.c
/openbmc/qemu/target/i386/helper.h
/openbmc/qemu/target/i386/kvm/kvm.c
/openbmc/qemu/target/i386/tcg/mem_helper.c
/openbmc/qemu/target/i386/tcg/translate.c
/openbmc/qemu/target/loongarch/disas.c
/openbmc/qemu/target/loongarch/insn_trans/trans_branch.c.inc
/openbmc/qemu/target/loongarch/insns.decode
/openbmc/qemu/target/loongarch/meson.build
/openbmc/qemu/target/m68k/translate.c
/openbmc/qemu/target/ppc/helper.h
/openbmc/qemu/target/ppc/mem_helper.c
/openbmc/qemu/target/ppc/translate.c
csr.c
/openbmc/qemu/target/s390x/helper.h
/openbmc/qemu/target/s390x/tcg/fpu_helper.c
/openbmc/qemu/target/s390x/tcg/insn-data.h.inc
/openbmc/qemu/target/s390x/tcg/int_helper.c
/openbmc/qemu/target/s390x/tcg/mem_helper.c
/openbmc/qemu/target/s390x/tcg/translate.c
/openbmc/qemu/tcg/aarch64/tcg-target.c.inc
/openbmc/qemu/tcg/aarch64/tcg-target.h
/openbmc/qemu/tcg/arm/tcg-target-con-set.h
/openbmc/qemu/tcg/arm/tcg-target-con-str.h
/openbmc/qemu/tcg/arm/tcg-target.c.inc
/openbmc/qemu/tcg/arm/tcg-target.h
/openbmc/qemu/tcg/i386/tcg-target.c.inc
/openbmc/qemu/tcg/i386/tcg-target.h
/openbmc/qemu/tcg/loongarch64/tcg-insn-defs.c.inc
/openbmc/qemu/tcg/loongarch64/tcg-target-con-set.h
/openbmc/qemu/tcg/loongarch64/tcg-target-con-str.h
/openbmc/qemu/tcg/loongarch64/tcg-target.c.inc
/openbmc/qemu/tcg/loongarch64/tcg-target.h
/openbmc/qemu/tcg/mips/tcg-target.c.inc
/openbmc/qemu/tcg/mips/tcg-target.h
/openbmc/qemu/tcg/ppc/tcg-target.c.inc
/openbmc/qemu/tcg/riscv/tcg-target.c.inc
/openbmc/qemu/tcg/riscv/tcg-target.h
/openbmc/qemu/tcg/s390x/tcg-target.c.inc
/openbmc/qemu/tcg/s390x/tcg-target.h
/openbmc/qemu/tcg/sparc64/tcg-target.c.inc
/openbmc/qemu/tcg/sparc64/tcg-target.h
/openbmc/qemu/tcg/tcg-internal.h
/openbmc/qemu/tcg/tcg-op.c
/openbmc/qemu/tcg/tcg.c
/openbmc/qemu/tcg/tci.c
/openbmc/qemu/tcg/tci/tcg-target.c.inc
/openbmc/qemu/tcg/tci/tcg-target.h
/openbmc/qemu/tests/avocado/avocado_qemu/__init__.py
/openbmc/qemu/tests/data/acpi/pc/DSDT
/openbmc/qemu/tests/data/acpi/pc/DSDT.acpierst
/openbmc/qemu/tests/data/acpi/pc/DSDT.acpihmat
/openbmc/qemu/tests/data/acpi/pc/DSDT.bridge
/openbmc/qemu/tests/data/acpi/pc/DSDT.cphp
/openbmc/qemu/tests/data/acpi/pc/DSDT.dimmpxm
/openbmc/qemu/tests/data/acpi/pc/DSDT.hpbridge
/openbmc/qemu/tests/data/acpi/pc/DSDT.hpbrroot
/openbmc/qemu/tests/data/acpi/pc/DSDT.ipmikcs
/openbmc/qemu/tests/data/acpi/pc/DSDT.memhp
/openbmc/qemu/tests/data/acpi/pc/DSDT.nohpet
/openbmc/qemu/tests/data/acpi/pc/DSDT.numamem
/openbmc/qemu/tests/data/acpi/pc/DSDT.roothp
/openbmc/qemu/tests/data/acpi/q35/DSDT
/openbmc/qemu/tests/data/acpi/q35/DSDT.acpierst
/openbmc/qemu/tests/data/acpi/q35/DSDT.acpihmat
/openbmc/qemu/tests/data/acpi/q35/DSDT.acpihmat-noinitiator
/openbmc/qemu/tests/data/acpi/q35/DSDT.applesmc
/openbmc/qemu/tests/data/acpi/q35/DSDT.bridge
/openbmc/qemu/tests/data/acpi/q35/DSDT.core-count2
/openbmc/qemu/tests/data/acpi/q35/DSDT.cphp
/openbmc/qemu/tests/data/acpi/q35/DSDT.cxl
/openbmc/qemu/tests/data/acpi/q35/DSDT.dimmpxm
/openbmc/qemu/tests/data/acpi/q35/DSDT.ipmibt
/openbmc/qemu/tests/data/acpi/q35/DSDT.ipmismbus
/openbmc/qemu/tests/data/acpi/q35/DSDT.ivrs
/openbmc/qemu/tests/data/acpi/q35/DSDT.memhp
/openbmc/qemu/tests/data/acpi/q35/DSDT.mmio64
/openbmc/qemu/tests/data/acpi/q35/DSDT.multi-bridge
/openbmc/qemu/tests/data/acpi/q35/DSDT.nohpet
/openbmc/qemu/tests/data/acpi/q35/DSDT.numamem
/openbmc/qemu/tests/data/acpi/q35/DSDT.pvpanic-isa
/openbmc/qemu/tests/data/acpi/q35/DSDT.tis.tpm12
/openbmc/qemu/tests/data/acpi/q35/DSDT.tis.tpm2
/openbmc/qemu/tests/data/acpi/q35/DSDT.viot
/openbmc/qemu/tests/data/acpi/q35/DSDT.xapic
/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-cross.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-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-riscv64-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-s390x-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-toolchain.docker
/openbmc/qemu/tests/docker/dockerfiles/debian-tricore-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/fedora-i386-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/fedora-win32-cross.docker
/openbmc/qemu/tests/docker/dockerfiles/fedora-win64-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/migration/guestperf/engine.py
/openbmc/qemu/tests/migration/meson.build
/openbmc/qemu/tests/qapi-schema/meson.build
/openbmc/qemu/tests/qemu-iotests/065
/openbmc/qemu/tests/qemu-iotests/106
/openbmc/qemu/tests/qemu-iotests/214
/openbmc/qemu/tests/qemu-iotests/262
/openbmc/qemu/tests/qemu-iotests/302.out
/openbmc/qemu/tests/qemu-iotests/308
/openbmc/qemu/tests/qemu-iotests/312
/openbmc/qemu/tests/qemu-iotests/common.filter
/openbmc/qemu/tests/qemu-iotests/common.rc
/openbmc/qemu/tests/qemu-iotests/iotests.py
/openbmc/qemu/tests/qemu-iotests/tests/qemu-img-close-errors
/openbmc/qemu/tests/qemu-iotests/tests/qemu-img-close-errors.out
/openbmc/qemu/tests/qtest/bios-tables-test.c
/openbmc/qemu/tests/qtest/boot-sector.c
/openbmc/qemu/tests/qtest/boot-serial-test.c
/openbmc/qemu/tests/qtest/display-vga-test.c
/openbmc/qemu/tests/qtest/libqtest.c
/openbmc/qemu/tests/qtest/meson.build
/openbmc/qemu/tests/qtest/netdev-socket.c
/openbmc/qemu/tests/qtest/qom-test.c
/openbmc/qemu/tests/qtest/vnc-display-test.c
/openbmc/qemu/tests/tcg/Makefile.target
/openbmc/qemu/tests/tcg/aarch64/Makefile.softmmu-target
/openbmc/qemu/tests/tcg/aarch64/system/boot.S
/openbmc/qemu/tests/tcg/multiarch/Makefile.target
/openbmc/qemu/tests/tcg/s390x/Makefile.target
/openbmc/qemu/tests/tcg/s390x/cdsg.c
/openbmc/qemu/tests/tcg/s390x/clst.c
/openbmc/qemu/tests/tcg/s390x/div.c
/openbmc/qemu/tests/tcg/s390x/long-double.c
/openbmc/qemu/tests/unit/test-aio.c
/openbmc/qemu/tests/unit/test-bdrv-drain.c
/openbmc/qemu/tests/unit/test-block-iothread.c
/openbmc/qemu/tests/unit/test-coroutine.c
/openbmc/qemu/tests/unit/test-io-channel-command.c
/openbmc/qemu/tests/unit/test-vmstate.c
/openbmc/qemu/tests/vm/centos.aarch64
/openbmc/qemu/trace/meson.build
/openbmc/qemu/trace/trace-hmp-cmds.c
/openbmc/qemu/ui/console.c
/openbmc/qemu/ui/input.c
/openbmc/qemu/ui/meson.build
/openbmc/qemu/ui/spice-display.c
/openbmc/qemu/ui/ui-hmp-cmds.c
/openbmc/qemu/ui/ui-qmp-cmds.c
/openbmc/qemu/ui/vdagent.c
/openbmc/qemu/util/aio-posix.c
/openbmc/qemu/util/async.c
/openbmc/qemu/util/int128.c
/openbmc/qemu/util/qemu-coroutine-lock.c
/openbmc/qemu/util/qemu-coroutine-sleep.c
/openbmc/qemu/util/qemu-coroutine.c
/openbmc/qemu/util/qht.c
/openbmc/qemu/util/readline.c
f251c01a15-Jan-2023 Richard Henderson <richard.henderson@linaro.org>

target/riscv: Remove helper_set_rod_rounding_mode

The only setting of RISCV_FRM_ROD is from the vector unit,
and now handled by helper_set_rounding_mode_chkfrm.
This helper is now unused.

Signed-of

target/riscv: Remove helper_set_rod_rounding_mode

The only setting of RISCV_FRM_ROD is from the vector unit,
and now handled by helper_set_rounding_mode_chkfrm.
This helper is now unused.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230115160657.3169274-3-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

3ceeb19a15-Jan-2023 Richard Henderson <richard.henderson@linaro.org>

target/riscv: Introduce helper_set_rounding_mode_chkfrm

The new helper always validates the contents of FRM, even
if the new rounding mode is not DYN. This is required by
the vector unit.

Track wh

target/riscv: Introduce helper_set_rounding_mode_chkfrm

The new helper always validates the contents of FRM, even
if the new rounding mode is not DYN. This is required by
the vector unit.

Track whether we've validated FRM separately from whether
we've updated fp_status with a given rounding mode, so that
we can elide calls correctly.

This partially reverts d6c4d3f2a69 which attempted the to do
the same thing, but with two calls to gen_set_rm(), which is
both inefficient and tickles an assertion in decode_save_opc.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1441
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230115160657.3169274-2-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

e471a8c915-Dec-2022 Andrew Bresticker <abrestic@rivosinc.com>

target/riscv: Trap on writes to stimecmp from VS when hvictl.VTI=1

Per the AIA specification, writes to stimecmp from VS level should
trap when hvictl.VTI is set since the write may cause vsip.STIP

target/riscv: Trap on writes to stimecmp from VS when hvictl.VTI=1

Per the AIA specification, writes to stimecmp from VS level should
trap when hvictl.VTI is set since the write may cause vsip.STIP to
become unset.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp support")
Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221215224541.1423431-2-abrestic@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

06d85c2415-Dec-2022 Andrew Bresticker <abrestic@rivosinc.com>

target/riscv: Fix up masking of vsip/vsie accesses

The current logic attempts to shift the VS-level bits into their correct
position in mip while leaving the remaining bits in-tact. This is both
poi

target/riscv: Fix up masking of vsip/vsie accesses

The current logic attempts to shift the VS-level bits into their correct
position in mip while leaving the remaining bits in-tact. This is both
pointless and likely incorrect since one would expect that any new, future
VS-level interrupts will get their own position in mip rather than sharing
with their (H)S-level equivalent. Fix this, and make the logic more
readable, by just making off the VS-level bits and shifting them into
position.

This also fixes reads of vsip, which would only ever report vsip.VSSIP
since the non-writable bits got masked off as well.

Fixes: d028ac7512f1 ("arget/riscv: Implement AIA CSRs for 64 local interrupts on RV32")
Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221215224541.1423431-1-abrestic@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

877a3a3709-Jan-2023 Bin Meng <bmeng@tinylab.org>

target/riscv: Use TARGET_FMT_lx for env->mhartid

env->mhartid is currently casted to long before printed, which drops
the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.

Signed-off-

target/riscv: Use TARGET_FMT_lx for env->mhartid

env->mhartid is currently casted to long before printed, which drops
the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230109152655.340114-1-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

5ab1095213-Jan-2023 Daniel Henrique Barboza <dbarboza@ventanamicro.com>

target/riscv/cpu.c: do not skip misa logic in riscv_cpu_realize()

All RISCV CPUs are setting cpu->cfg during their cpu_init() functions,
meaning that there's no reason to skip all the misa validatio

target/riscv/cpu.c: do not skip misa logic in riscv_cpu_realize()

All RISCV CPUs are setting cpu->cfg during their cpu_init() functions,
meaning that there's no reason to skip all the misa validation and setup
if misa_ext was set beforehand - especially since we're setting an
updated value in set_misa() in the end.

Put this code chunk into a new riscv_cpu_validate_set_extensions()
helper and always execute it regardless of what the board set in
env->misa_ext.

This will put more responsibility in how each board is going to init
their attributes and extensions if they're not using the defaults.
It'll also allow realize() to do its job looking only at the extensions
enabled per se, not corner cases that some CPUs might have, and we won't
have to change multiple code paths to fix or change how extensions work.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Message-Id: <20230113175230.473975-3-dbarboza@ventanamicro.com>
[ Changes by AF:
- Rebase
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

c66ffcd513-Jan-2023 Daniel Henrique Barboza <dbarboza@ventanamicro.com>

target/riscv/cpu: set cpu->cfg in register_cpu_props()

There is an informal contract between the cpu_init() functions and
riscv_cpu_realize(): if cpu->env.misa_ext is zero, assume that the
default s

target/riscv/cpu: set cpu->cfg in register_cpu_props()

There is an informal contract between the cpu_init() functions and
riscv_cpu_realize(): if cpu->env.misa_ext is zero, assume that the
default settings were loaded via register_cpu_props() and do validations
to set env.misa_ext. If it's not zero, skip this whole process and
assume that the board somehow did everything.

At this moment, all SiFive CPUs are setting a non-zero misa_ext during
their cpu_init() and skipping a good chunk of riscv_cpu_realize(). This
causes problems when the code being skipped in riscv_cpu_realize()
contains fixes or assumptions that affects all CPUs, meaning that SiFive
CPUs are missing out.

To allow this code to not be skipped anymore, all the cpu->cfg.ext_*
attributes needs to be set during cpu_init() time. At this moment this
is being done in register_cpu_props(). The SiFive boards are setting
their own extensions during cpu_init() though, meaning that they don't
want all the defaults from register_cpu_props().

Let's move the contract between *_cpu_init() and riscv_cpu_realize() to
register_cpu_props(). Inside this function we'll check if
cpu->env.misa_ext was set and, if that's the case, set all relevant
cpu->cfg.ext_* attributes, and only that. Leave the 'misa_ext' = 0 case
as is today, i.e. loading all the defaults from riscv_cpu_extensions[].

register_cpu_props() can then be called by all the cpu_init() functions,
including the SiFive ones. This will make all CPUs behave more in line
with what riscv_cpu_realize() expects.

This will also make the cpu_init() functions even more alike, but at this
moment we would need some design changes in how we're initializing
extensions/attributes (e.g. some CPUs are setting cfg options after
register_cpu_props(), so we can't simply add the function to a common
post_init() hook) to make a common cpu_init() code across all CPUs.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230113175230.473975-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

44e7372b15-Dec-2022 Dongxue Zhang <elta.era@gmail.com>

target/riscv/cpu.c: Fix elen check

The elen check should be cpu->cfg.elen in range [8, 64].

Signed-off-by: Dongxue Zhang <elta.era@gmail.com>
Reviewed-by: LIU Zhiwei <zhiwe_liu@linux.alibaba.com>
R

target/riscv/cpu.c: Fix elen check

The elen check should be cpu->cfg.elen in range [8, 64].

Signed-off-by: Dongxue Zhang <elta.era@gmail.com>
Reviewed-by: LIU Zhiwei <zhiwe_liu@linux.alibaba.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <167236721596.15277.2653405273227256289-0@git.sr.ht>
[ Changes by AF:
- Tidy up commit message
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

1237c2d629-Dec-2022 Bin Meng <bmeng@tinylab.org>

hw/char: riscv_htif: Move registers from CPUArchState to HTIFState

At present for some unknown reason the HTIF registers (fromhost &
tohost) are defined in the RISC-V CPUArchState. It should really

hw/char: riscv_htif: Move registers from CPUArchState to HTIFState

At present for some unknown reason the HTIF registers (fromhost &
tohost) are defined in the RISC-V CPUArchState. It should really
be put in the HTIFState struct as it is only meaningful to HTIF.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221229091828.1945072-6-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...


/openbmc/qemu/MAINTAINERS
/openbmc/qemu/accel/tcg/cpu-exec.c
/openbmc/qemu/accel/tcg/translate-all.c
/openbmc/qemu/backends/tpm/tpm_emulator.c
/openbmc/qemu/hw/arm/meson.build
/openbmc/qemu/hw/char/riscv_htif.c
/openbmc/qemu/hw/cpu/meson.build
/openbmc/qemu/hw/cxl/cxl-cdat.c
/openbmc/qemu/hw/cxl/cxl-host.c
/openbmc/qemu/hw/display/meson.build
/openbmc/qemu/hw/i386/pc.c
/openbmc/qemu/hw/intc/meson.build
/openbmc/qemu/hw/pci-host/i440fx.c
/openbmc/qemu/hw/pci-host/q35.c
/openbmc/qemu/hw/rdma/vmw/pvrdma_cmd.c
/openbmc/qemu/hw/riscv/spike.c
/openbmc/qemu/hw/s390x/pv.c
/openbmc/qemu/hw/ssi/sifive_spi.c
/openbmc/qemu/hw/tpm/meson.build
/openbmc/qemu/hw/usb/ccid-card-emulated.c
/openbmc/qemu/hw/usb/meson.build
/openbmc/qemu/include/exec/exec-all.h
/openbmc/qemu/include/hw/char/riscv_htif.h
/openbmc/qemu/include/hw/i386/pc.h
/openbmc/qemu/include/tcg/tcg.h
cpu.h
machine.c
/openbmc/qemu/tcg/aarch64/tcg-target.c.inc
/openbmc/qemu/tcg/aarch64/tcg-target.h
/openbmc/qemu/tcg/arm/tcg-target.c.inc
/openbmc/qemu/tcg/arm/tcg-target.h
/openbmc/qemu/tcg/i386/tcg-target.c.inc
/openbmc/qemu/tcg/i386/tcg-target.h
/openbmc/qemu/tcg/loongarch64/tcg-target.c.inc
/openbmc/qemu/tcg/loongarch64/tcg-target.h
/openbmc/qemu/tcg/mips/tcg-target.c.inc
/openbmc/qemu/tcg/mips/tcg-target.h
/openbmc/qemu/tcg/ppc/tcg-target.c.inc
/openbmc/qemu/tcg/ppc/tcg-target.h
/openbmc/qemu/tcg/riscv/tcg-target.c.inc
/openbmc/qemu/tcg/riscv/tcg-target.h
/openbmc/qemu/tcg/s390x/tcg-target.c.inc
/openbmc/qemu/tcg/s390x/tcg-target.h
/openbmc/qemu/tcg/sparc64/tcg-target.c.inc
/openbmc/qemu/tcg/sparc64/tcg-target.h
/openbmc/qemu/tcg/tcg-op.c
/openbmc/qemu/tcg/tcg.c
/openbmc/qemu/tcg/tci/tcg-target.c.inc
/openbmc/qemu/tcg/tci/tcg-target.h
/openbmc/qemu/tests/qtest/dbus-display-test.c
/openbmc/qemu/tests/qtest/e1000e-test.c
/openbmc/qemu/tests/qtest/libqos/e1000e.c
/openbmc/qemu/tests/qtest/libqos/e1000e.h
/openbmc/qemu/tests/qtest/libqtest.c
/openbmc/qemu/tests/qtest/meson.build
/openbmc/qemu/tests/qtest/migration-test.c
/openbmc/qemu/tests/qtest/test-hmp.c
/openbmc/qemu/tests/qtest/tpm-emu.c
/openbmc/qemu/tests/unit/test-crypto-tlssession.c
/openbmc/qemu/tests/unit/test-io-channel-tls.c
/openbmc/qemu/tests/vm/haiku.x86_64
883f2c5910-Jan-2023 Philippe Mathieu-Daudé <philmd@linaro.org>

bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx

The 'hwaddr' type is defined in "exec/hwaddr.h" as:

hwaddr is the type of a physical address
(its size can be different from 'target_ulong').

A

bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx

The 'hwaddr' type is defined in "exec/hwaddr.h" as:

hwaddr is the type of a physical address
(its size can be different from 'target_ulong').

All definitions use the 'HWADDR_' prefix, except TARGET_FMT_plx:

$ fgrep define include/exec/hwaddr.h
#define HWADDR_H
#define HWADDR_BITS 64
#define HWADDR_MAX UINT64_MAX
#define TARGET_FMT_plx "%016" PRIx64
^^^^^^
#define HWADDR_PRId PRId64
#define HWADDR_PRIi PRIi64
#define HWADDR_PRIo PRIo64
#define HWADDR_PRIu PRIu64
#define HWADDR_PRIx PRIx64
#define HWADDR_PRIX PRIX64

Since hwaddr's size can be *different* from target_ulong, it is
very confusing to read one of its format using the 'TARGET_FMT_'
prefix, normally used for the target_long / target_ulong types:

$ fgrep TARGET_FMT_ include/exec/cpu-defs.h
#define TARGET_FMT_lx "%08x"
#define TARGET_FMT_ld "%d"
#define TARGET_FMT_lu "%u"
#define TARGET_FMT_lx "%016" PRIx64
#define TARGET_FMT_ld "%" PRId64
#define TARGET_FMT_lu "%" PRIu64

Apparently this format was missed during commit a8170e5e97
("Rename target_phys_addr_t to hwaddr"), so complete it by
doing a bulk-rename with:

$ sed -i -e s/TARGET_FMT_plx/HWADDR_FMT_plx/g $(git grep -l TARGET_FMT_plx)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230110212947.34557-1-philmd@linaro.org>
[thuth: Fix some warnings from checkpatch.pl along the way]
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


/openbmc/qemu/.gitlab-ci.d/cirrus.yml
/openbmc/qemu/.gitlab-ci.d/crossbuild-template.yml
/openbmc/qemu/.gitlab-ci.d/windows.yml
/openbmc/qemu/MAINTAINERS
/openbmc/qemu/Makefile
/openbmc/qemu/accel/accel-blocker.c
/openbmc/qemu/accel/kvm/kvm-all.c
/openbmc/qemu/accel/meson.build
/openbmc/qemu/accel/tcg/cpu-exec.c
/openbmc/qemu/accel/tcg/cputlb.c
/openbmc/qemu/accel/tcg/debuginfo.c
/openbmc/qemu/accel/tcg/debuginfo.h
/openbmc/qemu/accel/tcg/meson.build
/openbmc/qemu/accel/tcg/perf.c
/openbmc/qemu/accel/tcg/perf.h
/openbmc/qemu/accel/tcg/translate-all.c
/openbmc/qemu/block/file-posix.c
/openbmc/qemu/chardev/char-fd.c
/openbmc/qemu/chardev/char-parallel.c
/openbmc/qemu/chardev/char-pipe.c
/openbmc/qemu/chardev/char-pty.c
/openbmc/qemu/chardev/char.c
/openbmc/qemu/chardev/meson.build
/openbmc/qemu/configs/devices/arm-softmmu/default.mak
/openbmc/qemu/configs/devices/mips-softmmu/common.mak
/openbmc/qemu/configure
/openbmc/qemu/disas.c
/openbmc/qemu/disas/meson.build
/openbmc/qemu/docs/about/deprecated.rst
/openbmc/qemu/docs/about/removed-features.rst
/openbmc/qemu/docs/devel/style.rst
/openbmc/qemu/docs/devel/tcg.rst
/openbmc/qemu/docs/interop/index.rst
/openbmc/qemu/docs/interop/vnc-ledstate-pseudo-encoding.rst
/openbmc/qemu/docs/qdev-device-use.txt
/openbmc/qemu/docs/system/arm/cubieboard.rst
/openbmc/qemu/docs/system/arm/orangepi.rst
/openbmc/qemu/docs/system/arm/stm32.rst
/openbmc/qemu/hw/9pfs/9p-local.c
/openbmc/qemu/hw/acpi/Kconfig
/openbmc/qemu/hw/acpi/aml-build.c
/openbmc/qemu/hw/acpi/cpu_hotplug.c
/openbmc/qemu/hw/acpi/erst.c
/openbmc/qemu/hw/acpi/meson.build
/openbmc/qemu/hw/alpha/alpha_sys.h
/openbmc/qemu/hw/alpha/pci.c
/openbmc/qemu/hw/alpha/typhoon.c
/openbmc/qemu/hw/arm/Kconfig
/openbmc/qemu/hw/arm/allwinner-a10.c
/openbmc/qemu/hw/arm/allwinner-h3.c
/openbmc/qemu/hw/arm/bcm2836.c
/openbmc/qemu/hw/arm/collie.c
/openbmc/qemu/hw/arm/cubieboard.c
/openbmc/qemu/hw/arm/gumstix.c
/openbmc/qemu/hw/arm/mainstone.c
/openbmc/qemu/hw/arm/meson.build
/openbmc/qemu/hw/arm/musicpal.c
/openbmc/qemu/hw/arm/olimex-stm32-h405.c
/openbmc/qemu/hw/arm/omap1.c
/openbmc/qemu/hw/arm/omap2.c
/openbmc/qemu/hw/arm/omap_sx1.c
/openbmc/qemu/hw/arm/palm.c
/openbmc/qemu/hw/arm/pxa2xx.c
/openbmc/qemu/hw/arm/spitz.c
/openbmc/qemu/hw/arm/stellaris.c
/openbmc/qemu/hw/arm/stm32f405_soc.c
/openbmc/qemu/hw/arm/strongarm.c
/openbmc/qemu/hw/arm/tosa.c
/openbmc/qemu/hw/arm/versatilepb.c
/openbmc/qemu/hw/arm/vexpress.c
/openbmc/qemu/hw/arm/z2.c
/openbmc/qemu/hw/audio/ac97.c
/openbmc/qemu/hw/audio/es1370.c
/openbmc/qemu/hw/audio/via-ac97.c
/openbmc/qemu/hw/block/pflash_cfi01.c
/openbmc/qemu/hw/char/digic-uart.c
/openbmc/qemu/hw/char/etraxfs_ser.c
/openbmc/qemu/hw/char/omap_uart.c
/openbmc/qemu/hw/char/serial-pci-multi.c
/openbmc/qemu/hw/char/serial-pci.c
/openbmc/qemu/hw/core/cpu-common.c
/openbmc/qemu/hw/core/loader.c
/openbmc/qemu/hw/core/machine-smp.c
/openbmc/qemu/hw/core/machine.c
/openbmc/qemu/hw/core/qdev-properties-system.c
/openbmc/qemu/hw/core/sysbus.c
/openbmc/qemu/hw/display/ati_int.h
/openbmc/qemu/hw/display/bochs-display.c
/openbmc/qemu/hw/display/cirrus_vga.c
/openbmc/qemu/hw/display/g364fb.c
/openbmc/qemu/hw/display/meson.build
/openbmc/qemu/hw/display/omap_dss.c
/openbmc/qemu/hw/display/omap_lcdc.c
/openbmc/qemu/hw/display/qxl.h
/openbmc/qemu/hw/display/sm501.c
/openbmc/qemu/hw/display/vga-pci.c
/openbmc/qemu/hw/display/vga.c
/openbmc/qemu/hw/display/vhost-user-gpu.c
/openbmc/qemu/hw/display/vmware_vga.c
/openbmc/qemu/hw/dma/etraxfs_dma.c
/openbmc/qemu/hw/dma/omap_dma.c
/openbmc/qemu/hw/dma/pl330.c
/openbmc/qemu/hw/dma/xilinx_axidma.c
/openbmc/qemu/hw/dma/xlnx_csu_dma.c
/openbmc/qemu/hw/gpio/omap_gpio.c
/openbmc/qemu/hw/i2c/Kconfig
/openbmc/qemu/hw/i2c/allwinner-i2c.c
/openbmc/qemu/hw/i2c/meson.build
/openbmc/qemu/hw/i2c/mpc_i2c.c
/openbmc/qemu/hw/i2c/trace-events
/openbmc/qemu/hw/i386/Kconfig
/openbmc/qemu/hw/i386/acpi-build.c
/openbmc/qemu/hw/i386/amd_iommu.c
/openbmc/qemu/hw/i386/intel_iommu.c
/openbmc/qemu/hw/i386/kvm/i8259.c
/openbmc/qemu/hw/i386/kvm/ioapic.c
/openbmc/qemu/hw/i386/multiboot.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/xen/xen-hvm.c
/openbmc/qemu/hw/i386/xen/xen-mapcache.c
/openbmc/qemu/hw/i386/xen/xen_platform.c
/openbmc/qemu/hw/i386/xen/xen_pvdevice.c
/openbmc/qemu/hw/ide/ahci_internal.h
/openbmc/qemu/hw/ide/core.c
/openbmc/qemu/hw/ide/qdev.c
/openbmc/qemu/hw/intc/apic.c
/openbmc/qemu/hw/intc/apic_common.c
/openbmc/qemu/hw/intc/arm_gicv3_dist.c
/openbmc/qemu/hw/intc/arm_gicv3_its.c
/openbmc/qemu/hw/intc/arm_gicv3_redist.c
/openbmc/qemu/hw/intc/exynos4210_combiner.c
/openbmc/qemu/hw/intc/i8259.c
/openbmc/qemu/hw/intc/kvm_irqcount.c
/openbmc/qemu/hw/intc/loongarch_pch_msi.c
/openbmc/qemu/hw/intc/loongarch_pch_pic.c
/openbmc/qemu/hw/intc/meson.build
/openbmc/qemu/hw/intc/omap_intc.c
/openbmc/qemu/hw/intc/trace-events
/openbmc/qemu/hw/intc/xilinx_intc.c
/openbmc/qemu/hw/ipack/tpci200.c
/openbmc/qemu/hw/ipmi/pci_ipmi_bt.c
/openbmc/qemu/hw/ipmi/pci_ipmi_kcs.c
/openbmc/qemu/hw/isa/Kconfig
/openbmc/qemu/hw/isa/i82378.c
/openbmc/qemu/hw/isa/piix3.c
/openbmc/qemu/hw/isa/piix4.c
/openbmc/qemu/hw/loongarch/virt.c
/openbmc/qemu/hw/mips/Kconfig
/openbmc/qemu/hw/mips/bootloader.c
/openbmc/qemu/hw/mips/boston.c
/openbmc/qemu/hw/mips/fuloong2e.c
/openbmc/qemu/hw/mips/malta.c
/openbmc/qemu/hw/mips/meson.build
/openbmc/qemu/hw/mips/trace-events
/openbmc/qemu/hw/misc/Kconfig
/openbmc/qemu/hw/misc/allwinner-a10-ccm.c
/openbmc/qemu/hw/misc/allwinner-a10-dramc.c
/openbmc/qemu/hw/misc/auxbus.c
/openbmc/qemu/hw/misc/axp209.c
/openbmc/qemu/hw/misc/ivshmem.c
/openbmc/qemu/hw/misc/macio/mac_dbdma.c
/openbmc/qemu/hw/misc/meson.build
/openbmc/qemu/hw/misc/mst_fpga.c
/openbmc/qemu/hw/misc/omap_gpmc.c
/openbmc/qemu/hw/misc/omap_l4.c
/openbmc/qemu/hw/misc/omap_sdrc.c
/openbmc/qemu/hw/misc/omap_tap.c
/openbmc/qemu/hw/misc/pci-testdev.c
/openbmc/qemu/hw/misc/pvpanic-pci.c
/openbmc/qemu/hw/misc/sbsa_ec.c
/openbmc/qemu/hw/misc/trace-events
/openbmc/qemu/hw/net/allwinner-sun8i-emac.c
/openbmc/qemu/hw/net/allwinner_emac.c
/openbmc/qemu/hw/net/can/can_kvaser_pci.c
/openbmc/qemu/hw/net/can/can_mioe3680_pci.c
/openbmc/qemu/hw/net/can/can_pcm3680_pci.c
/openbmc/qemu/hw/net/can/ctucan_pci.c
/openbmc/qemu/hw/net/e1000.c
/openbmc/qemu/hw/net/e1000x_common.c
/openbmc/qemu/hw/net/eepro100.c
/openbmc/qemu/hw/net/fsl_etsec/etsec.c
/openbmc/qemu/hw/net/fsl_etsec/rings.c
/openbmc/qemu/hw/net/ne2000-pci.c
/openbmc/qemu/hw/net/net_tx_pkt.c
/openbmc/qemu/hw/net/pcnet-pci.c
/openbmc/qemu/hw/net/pcnet.c
/openbmc/qemu/hw/net/rocker/rocker.c
/openbmc/qemu/hw/net/rocker/rocker_desc.c
/openbmc/qemu/hw/net/rtl8139.c
/openbmc/qemu/hw/net/sungem.c
/openbmc/qemu/hw/net/sunhme.c
/openbmc/qemu/hw/net/tulip.c
/openbmc/qemu/hw/net/vhost_net-stub.c
/openbmc/qemu/hw/net/vhost_net.c
/openbmc/qemu/hw/net/virtio-net.c
/openbmc/qemu/hw/net/vmxnet3_defs.h
/openbmc/qemu/hw/net/xilinx_axienet.c
/openbmc/qemu/hw/net/xilinx_ethlite.c
/openbmc/qemu/hw/nvme/ctrl.c
/openbmc/qemu/hw/nvme/nvme.h
/openbmc/qemu/hw/nvme/trace-events
/openbmc/qemu/hw/pci-bridge/i82801b11.c
/openbmc/qemu/hw/pci-bridge/pci_expander_bridge.c
/openbmc/qemu/hw/pci-host/Kconfig
/openbmc/qemu/hw/pci-host/bonito.c
/openbmc/qemu/hw/pci-host/dino.c
/openbmc/qemu/hw/pci-host/grackle.c
/openbmc/qemu/hw/pci-host/gt64120.c
/openbmc/qemu/hw/pci-host/meson.build
/openbmc/qemu/hw/pci-host/mv64361.c
/openbmc/qemu/hw/pci-host/ppce500.c
/openbmc/qemu/hw/pci-host/raven.c
/openbmc/qemu/hw/pci-host/sh_pci.c
/openbmc/qemu/hw/pci-host/trace-events
/openbmc/qemu/hw/pci-host/uninorth.c
/openbmc/qemu/hw/pci-host/versatile.c
/openbmc/qemu/hw/pci/pci-hmp-cmds.c
/openbmc/qemu/hw/pci/pci.c
/openbmc/qemu/hw/pci/pci_host.c
/openbmc/qemu/hw/pci/pcie_host.c
/openbmc/qemu/hw/pci/pcie_sriov.c
/openbmc/qemu/hw/pci/slotid_cap.c
/openbmc/qemu/hw/ppc/Kconfig
/openbmc/qemu/hw/ppc/ppc440_pcix.c
/openbmc/qemu/hw/ppc/ppc4xx_pci.c
/openbmc/qemu/hw/ppc/ppc4xx_sdram.c
/openbmc/qemu/hw/ppc/spapr_pci_vfio.c
/openbmc/qemu/hw/rdma/rdma_utils.c
/openbmc/qemu/hw/rdma/rdma_utils.h
/openbmc/qemu/hw/rdma/vmw/pvrdma.h
/openbmc/qemu/hw/remote/machine.c
/openbmc/qemu/hw/remote/vfio-user-obj.c
/openbmc/qemu/hw/rtc/exynos4210_rtc.c
/openbmc/qemu/hw/rtc/mc146818rtc.c
/openbmc/qemu/hw/rtc/meson.build
/openbmc/qemu/hw/s390x/s390-pci-inst.c
/openbmc/qemu/hw/scsi/esp-pci.c
/openbmc/qemu/hw/scsi/lsi53c895a.c
/openbmc/qemu/hw/scsi/mptsas.h
/openbmc/qemu/hw/scsi/vhost-scsi-common.c
/openbmc/qemu/hw/scsi/virtio-scsi.c
/openbmc/qemu/hw/sd/omap_mmc.c
/openbmc/qemu/hw/sh4/sh7750.c
/openbmc/qemu/hw/smbios/smbios.c
/openbmc/qemu/hw/ssi/omap_spi.c
/openbmc/qemu/hw/ssi/xilinx_spi.c
/openbmc/qemu/hw/ssi/xilinx_spips.c
/openbmc/qemu/hw/timer/digic-timer.c
/openbmc/qemu/hw/timer/etraxfs_timer.c
/openbmc/qemu/hw/timer/exynos4210_mct.c
/openbmc/qemu/hw/timer/exynos4210_pwm.c
/openbmc/qemu/hw/timer/omap_gptimer.c
/openbmc/qemu/hw/timer/omap_synctimer.c
/openbmc/qemu/hw/timer/xilinx_timer.c
/openbmc/qemu/hw/usb/hcd-ehci.h
/openbmc/qemu/hw/usb/hcd-ohci-pci.c
/openbmc/qemu/hw/usb/hcd-uhci.c
/openbmc/qemu/hw/usb/hcd-uhci.h
/openbmc/qemu/hw/usb/hcd-xhci-pci.h
/openbmc/qemu/hw/vfio/pci.h
/openbmc/qemu/hw/virtio/trace-events
/openbmc/qemu/hw/virtio/vdpa-dev.c
/openbmc/qemu/hw/virtio/vhost-user-fs.c
/openbmc/qemu/hw/virtio/vhost-user-gpio.c
/openbmc/qemu/hw/virtio/vhost-vdpa.c
/openbmc/qemu/hw/virtio/vhost-vsock-common.c
/openbmc/qemu/hw/virtio/vhost.c
/openbmc/qemu/hw/virtio/virtio-crypto.c
/openbmc/qemu/hw/virtio/virtio-mmio.c
/openbmc/qemu/hw/virtio/virtio-pci.c
/openbmc/qemu/hw/virtio/virtio-qmp.c
/openbmc/qemu/hw/virtio/virtio-qmp.h
/openbmc/qemu/hw/virtio/virtio.c
/openbmc/qemu/hw/watchdog/wdt_i6300esb.c
/openbmc/qemu/hw/xen/xen-bus.c
/openbmc/qemu/hw/xen/xen_pt.c
/openbmc/qemu/hw/xen/xen_pt.h
/openbmc/qemu/hw/xen/xen_pvdev.c
/openbmc/qemu/include/exec/hwaddr.h
/openbmc/qemu/include/exec/memory-internal.h
/openbmc/qemu/include/exec/memory.h
/openbmc/qemu/include/exec/plugin-gen.h
/openbmc/qemu/include/exec/poison.h
/openbmc/qemu/include/hw/acpi/erst.h
/openbmc/qemu/include/hw/acpi/piix4.h
/openbmc/qemu/include/hw/adc/npcm7xx_adc.h
/openbmc/qemu/include/hw/arm/allwinner-a10.h
/openbmc/qemu/include/hw/arm/allwinner-h3.h
/openbmc/qemu/include/hw/arm/npcm7xx.h
/openbmc/qemu/include/hw/arm/omap.h
/openbmc/qemu/include/hw/arm/pxa.h
/openbmc/qemu/include/hw/arm/stm32f405_soc.h
/openbmc/qemu/include/hw/boards.h
/openbmc/qemu/include/hw/char/cmsdk-apb-uart.h
/openbmc/qemu/include/hw/char/goldfish_tty.h
/openbmc/qemu/include/hw/char/xilinx_uartlite.h
/openbmc/qemu/include/hw/core/cpu.h
/openbmc/qemu/include/hw/cris/etraxfs.h
/openbmc/qemu/include/hw/cxl/cxl.h
/openbmc/qemu/include/hw/cxl/cxl_cdat.h
/openbmc/qemu/include/hw/cxl/cxl_component.h
/openbmc/qemu/include/hw/cxl/cxl_device.h
/openbmc/qemu/include/hw/cxl/cxl_pci.h
/openbmc/qemu/include/hw/display/macfb.h
/openbmc/qemu/include/hw/dma/sifive_pdma.h
/openbmc/qemu/include/hw/i2c/allwinner-i2c.h
/openbmc/qemu/include/hw/i2c/npcm7xx_smbus.h
/openbmc/qemu/include/hw/i386/apic.h
/openbmc/qemu/include/hw/i386/apic_internal.h
/openbmc/qemu/include/hw/i386/ich9.h
/openbmc/qemu/include/hw/i386/ioapic_internal.h
/openbmc/qemu/include/hw/i386/sgx-epc.h
/openbmc/qemu/include/hw/i386/x86-iommu.h
/openbmc/qemu/include/hw/ide/internal.h
/openbmc/qemu/include/hw/ide/pci.h
/openbmc/qemu/include/hw/intc/goldfish_pic.h
/openbmc/qemu/include/hw/intc/i8259.h
/openbmc/qemu/include/hw/intc/kvm_irqcount.h
/openbmc/qemu/include/hw/intc/loongarch_pch_msi.h
/openbmc/qemu/include/hw/intc/loongarch_pch_pic.h
/openbmc/qemu/include/hw/intc/nios2_vic.h
/openbmc/qemu/include/hw/isa/vt82c686.h
/openbmc/qemu/include/hw/mips/bootloader.h
/openbmc/qemu/include/hw/misc/allwinner-a10-ccm.h
/openbmc/qemu/include/hw/misc/allwinner-a10-dramc.h
/openbmc/qemu/include/hw/misc/macio/macio.h
/openbmc/qemu/include/hw/misc/mchp_pfsoc_dmc.h
/openbmc/qemu/include/hw/misc/mchp_pfsoc_ioscb.h
/openbmc/qemu/include/hw/misc/mchp_pfsoc_sysreg.h
/openbmc/qemu/include/hw/misc/npcm7xx_clk.h
/openbmc/qemu/include/hw/misc/npcm7xx_gcr.h
/openbmc/qemu/include/hw/misc/npcm7xx_mft.h
/openbmc/qemu/include/hw/misc/npcm7xx_pwm.h
/openbmc/qemu/include/hw/misc/npcm7xx_rng.h
/openbmc/qemu/include/hw/misc/pvpanic.h
/openbmc/qemu/include/hw/misc/sifive_e_prci.h
/openbmc/qemu/include/hw/misc/sifive_u_otp.h
/openbmc/qemu/include/hw/misc/sifive_u_prci.h
/openbmc/qemu/include/hw/misc/virt_ctrl.h
/openbmc/qemu/include/hw/misc/xlnx-versal-pmc-iou-slcr.h
/openbmc/qemu/include/hw/net/lasi_82596.h
/openbmc/qemu/include/hw/net/npcm7xx_emc.h
/openbmc/qemu/include/hw/net/xlnx-zynqmp-can.h
/openbmc/qemu/include/hw/pci-host/bonito.h
/openbmc/qemu/include/hw/pci-host/designware.h
/openbmc/qemu/include/hw/pci-host/gpex.h
/openbmc/qemu/include/hw/pci-host/i440fx.h
/openbmc/qemu/include/hw/pci-host/ls7a.h
/openbmc/qemu/include/hw/pci-host/pnv_phb3.h
/openbmc/qemu/include/hw/pci-host/pnv_phb4.h
/openbmc/qemu/include/hw/pci-host/q35.h
/openbmc/qemu/include/hw/pci-host/sabre.h
/openbmc/qemu/include/hw/pci-host/xilinx-pcie.h
/openbmc/qemu/include/hw/pci/msi.h
/openbmc/qemu/include/hw/pci/pci.h
/openbmc/qemu/include/hw/pci/pci_bridge.h
/openbmc/qemu/include/hw/pci/pci_device.h
/openbmc/qemu/include/hw/pci/pcie.h
/openbmc/qemu/include/hw/pci/pcie_port.h
/openbmc/qemu/include/hw/pci/pcie_sriov.h
/openbmc/qemu/include/hw/pci/shpc.h
/openbmc/qemu/include/hw/ppc/pnv_psi.h
/openbmc/qemu/include/hw/remote/iohub.h
/openbmc/qemu/include/hw/remote/proxy.h
/openbmc/qemu/include/hw/riscv/boot_opensbi.h
/openbmc/qemu/include/hw/riscv/microchip_pfsoc.h
/openbmc/qemu/include/hw/riscv/numa.h
/openbmc/qemu/include/hw/riscv/sifive_u.h
/openbmc/qemu/include/hw/riscv/spike.h
/openbmc/qemu/include/hw/riscv/virt.h
/openbmc/qemu/include/hw/rtc/mc146818rtc.h
/openbmc/qemu/include/hw/sd/npcm7xx_sdhci.h
/openbmc/qemu/include/hw/sd/sdhci.h
/openbmc/qemu/include/hw/southbridge/piix.h
/openbmc/qemu/include/hw/ssi/sifive_spi.h
/openbmc/qemu/include/hw/timer/sse-timer.h
/openbmc/qemu/include/hw/usb/hcd-dwc3.h
/openbmc/qemu/include/hw/usb/hcd-musb.h
/openbmc/qemu/include/hw/usb/xlnx-usb-subsystem.h
/openbmc/qemu/include/hw/usb/xlnx-versal-usb2-ctrl-regs.h
/openbmc/qemu/include/hw/virtio/vhost-backend.h
/openbmc/qemu/include/hw/virtio/vhost-vdpa.h
/openbmc/qemu/include/hw/virtio/vhost.h
/openbmc/qemu/include/hw/virtio/virtio-mmio.h
/openbmc/qemu/include/hw/virtio/virtio-pci.h
/openbmc/qemu/include/hw/virtio/virtio-scsi.h
/openbmc/qemu/include/hw/virtio/virtio.h
/openbmc/qemu/include/hw/xen/xen-bus-helper.h
/openbmc/qemu/include/hw/xen/xen-bus.h
/openbmc/qemu/include/hw/xen/xen_common.h
/openbmc/qemu/include/net/vhost-user.h
/openbmc/qemu/include/net/vhost_net.h
/openbmc/qemu/include/qemu/accel.h
/openbmc/qemu/include/qemu/osdep.h
/openbmc/qemu/include/qemu/plugin-memory.h
/openbmc/qemu/include/qemu/typedefs.h
/openbmc/qemu/include/sysemu/accel-blocker.h
/openbmc/qemu/include/sysemu/dirtyrate.h
/openbmc/qemu/include/sysemu/dump.h
/openbmc/qemu/include/sysemu/kvm_int.h
/openbmc/qemu/include/user/syscall-trace.h
/openbmc/qemu/linux-user/elfload.c
/openbmc/qemu/linux-user/exit.c
/openbmc/qemu/linux-user/main.c
/openbmc/qemu/linux-user/meson.build
/openbmc/qemu/linux-user/signal.c
/openbmc/qemu/meson.build
/openbmc/qemu/monitor/misc.c
/openbmc/qemu/net/l2tpv3.c
/openbmc/qemu/net/socket.c
/openbmc/qemu/net/tap-bsd.c
/openbmc/qemu/net/tap-linux.c
/openbmc/qemu/net/tap-solaris.c
/openbmc/qemu/net/tap.c
/openbmc/qemu/net/vhost-user.c
/openbmc/qemu/net/vhost-vdpa.c
/openbmc/qemu/os-posix.c
/openbmc/qemu/qapi/misc-target.json
/openbmc/qemu/qemu-options.hx
/openbmc/qemu/qga/commands-posix.c
/openbmc/qemu/scripts/ci/org.centos/stream/8/x86_64/configure
/openbmc/qemu/scripts/git.orderfile
/openbmc/qemu/scripts/symlink-install-tree.py
/openbmc/qemu/semihosting/syscalls.c
/openbmc/qemu/softmmu/memory.c
/openbmc/qemu/softmmu/memory_mapping.c
/openbmc/qemu/softmmu/physmem.c
/openbmc/qemu/softmmu/rtc.c
/openbmc/qemu/softmmu/vl.c
/openbmc/qemu/subprojects/libvduse/libvduse.c
/openbmc/qemu/subprojects/libvduse/meson.build
/openbmc/qemu/subprojects/libvhost-user/libvhost-user.c
/openbmc/qemu/subprojects/libvhost-user/meson.build
/openbmc/qemu/target/arm/helper.c
/openbmc/qemu/target/arm/sve_helper.c
/openbmc/qemu/target/i386/cpu-sysemu.c
/openbmc/qemu/target/i386/cpu.c
/openbmc/qemu/target/i386/monitor.c
/openbmc/qemu/target/i386/ops_sse.h
/openbmc/qemu/target/i386/tcg/decode-new.c.inc
/openbmc/qemu/target/i386/tcg/seg_helper.c
/openbmc/qemu/target/loongarch/tlb_helper.c
/openbmc/qemu/target/m68k/fpu_helper.c
/openbmc/qemu/target/microblaze/op_helper.c
/openbmc/qemu/target/mips/cpu.c
/openbmc/qemu/target/mips/cpu.h
/openbmc/qemu/target/mips/internal.h
/openbmc/qemu/target/mips/kvm.c
/openbmc/qemu/target/mips/sysemu/addr.c
/openbmc/qemu/target/mips/sysemu/meson.build
/openbmc/qemu/target/mips/sysemu/mips-qmp-cmds.c
/openbmc/qemu/target/mips/sysemu/physaddr.c
/openbmc/qemu/target/mips/tcg/sysemu/tlb_helper.c
/openbmc/qemu/target/ppc/mmu-hash32.c
/openbmc/qemu/target/ppc/mmu-hash64.c
/openbmc/qemu/target/ppc/mmu_common.c
/openbmc/qemu/target/ppc/mmu_helper.c
cpu_helper.c
monitor.c
/openbmc/qemu/target/s390x/cpu.c
/openbmc/qemu/target/s390x/cpu_features.c
/openbmc/qemu/target/s390x/cpu_models.c
/openbmc/qemu/target/s390x/tcg/excp_helper.c
/openbmc/qemu/target/s390x/tcg/misc_helper.c
/openbmc/qemu/target/sparc/ldst_helper.c
/openbmc/qemu/target/sparc/mmu_helper.c
/openbmc/qemu/target/tricore/helper.c
/openbmc/qemu/tcg/s390x/tcg-target-con-set.h
/openbmc/qemu/tcg/s390x/tcg-target-con-str.h
/openbmc/qemu/tcg/s390x/tcg-target.c.inc
/openbmc/qemu/tcg/s390x/tcg-target.h
/openbmc/qemu/tcg/tcg.c
/openbmc/qemu/tests/avocado/boot_linux_console.py
/openbmc/qemu/tests/avocado/machine_mips_malta.py
/openbmc/qemu/tests/data/acpi/virt/APIC.topology
/openbmc/qemu/tests/data/acpi/virt/DSDT.topology
/openbmc/qemu/tests/data/acpi/virt/PPTT
/openbmc/qemu/tests/data/acpi/virt/PPTT.acpihmatvirt
/openbmc/qemu/tests/data/acpi/virt/PPTT.topology
/openbmc/qemu/tests/fp/meson.build
/openbmc/qemu/tests/qapi-schema/meson.build
/openbmc/qemu/tests/qemu-iotests/tests/stream-under-throttle
/openbmc/qemu/tests/qtest/ahci-test.c
/openbmc/qemu/tests/qtest/arm-cpu-features.c
/openbmc/qemu/tests/qtest/bios-tables-test.c
/openbmc/qemu/tests/qtest/erst-test.c
/openbmc/qemu/tests/qtest/fuzz/generic_fuzz.c
/openbmc/qemu/tests/qtest/ide-test.c
/openbmc/qemu/tests/qtest/ivshmem-test.c
/openbmc/qemu/tests/qtest/libqmp.c
/openbmc/qemu/tests/qtest/libqos/libqos-pc.h
/openbmc/qemu/tests/qtest/libqos/libqos-spapr.h
/openbmc/qemu/tests/qtest/libqos/libqos.h
/openbmc/qemu/tests/qtest/libqos/virtio-9p.c
/openbmc/qemu/tests/qtest/libqtest.c
/openbmc/qemu/tests/qtest/migration-helpers.h
/openbmc/qemu/tests/qtest/qom-test.c
/openbmc/qemu/tests/qtest/readconfig-test.c
/openbmc/qemu/tests/qtest/rtas-test.c
/openbmc/qemu/tests/qtest/usb-hcd-uhci-test.c
/openbmc/qemu/tests/unit/test-cutils.c
/openbmc/qemu/tests/unit/test-qmp-cmds.c
/openbmc/qemu/tests/vhost-user-bridge.c
/openbmc/qemu/tests/vm/basevm.py
/openbmc/qemu/tools/virtiofsd/fuse_log.c
/openbmc/qemu/tools/virtiofsd/fuse_log.h
/openbmc/qemu/tools/virtiofsd/passthrough_ll.c
/openbmc/qemu/ui/util.c
/openbmc/qemu/util/bufferiszero.c
/openbmc/qemu/util/cutils.c
/openbmc/qemu/util/error-report.c
/openbmc/qemu/util/error.c
/openbmc/qemu/util/log.c
/openbmc/qemu/util/main-loop.c
/openbmc/qemu/util/meson.build
/openbmc/qemu/util/osdep.c
/openbmc/qemu/util/vfio-helpers.c
260b594d05-Oct-2022 Christoph Muellner <christoph.muellner@vrull.eu>

RISC-V: Add Zawrs ISA extension support

This patch adds support for the Zawrs ISA extension.
Given the current (incomplete) implementation of reservation sets
there seems to be no way to provide a f

RISC-V: Add Zawrs ISA extension support

This patch adds support for the Zawrs ISA extension.
Given the current (incomplete) implementation of reservation sets
there seems to be no way to provide a full emulation of the WRS
instruction (wake on reservation set invalidation or timeout or
interrupt). Therefore, we just exit the TB and return to the main loop.

The specification can be found here:
https://github.com/riscv/riscv-zawrs/blob/main/zawrs.adoc

Note, that the Zawrs extension is frozen, but not ratified yet.

Changes since v3:
* Remove "RFC" since the extension is frozen
* Rebase on master and fix integration issues
* Fix entry ordering in extension list

Changes since v2:
* Rebase on master and resolve conflicts
* Adjustments according to a specification change
* Inline REQUIRE_ZAWRS() since it has only one user

Changes since v1:
* Adding zawrs to the ISA string that is passed to the kernel

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221005144948.3421504-1-christoph.muellner@vrull.eu>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

0ff430a507-Dec-2022 Bin Meng <bmeng@tinylab.org>

target/riscv: Clear mstatus.MPRV when leaving M-mode for priv spec 1.12+

Since priv spec v1.12, MRET and SRET now clear mstatus.MPRV when
leaving M-mode.

Signed-off-by: Bin Meng <bmeng@tinylab.org>

target/riscv: Clear mstatus.MPRV when leaving M-mode for priv spec 1.12+

Since priv spec v1.12, MRET and SRET now clear mstatus.MPRV when
leaving M-mode.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221207090037.281452-2-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

2bfec53b07-Dec-2022 Bin Meng <bmeng@tinylab.org>

target/riscv: Simplify helper_sret() a little bit

There are 2 paths in helper_sret() and the same mstatus update codes
are replicated. Extract the common parts to simplify it a little bit.

Signed-o

target/riscv: Simplify helper_sret() a little bit

There are 2 paths in helper_sret() and the same mstatus update codes
are replicated. Extract the common parts to simplify it a little bit.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221207090037.281452-1-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

ec2918b403-Dec-2022 Richard Henderson <richard.henderson@linaro.org>

target/riscv: Set pc_succ_insn for !rvc illegal insn

Failure to set pc_succ_insn may result in a TB covering zero bytes,
which triggers an assert within the code generator.

Cc: qemu-stable@nongnu.o

target/riscv: Set pc_succ_insn for !rvc illegal insn

Failure to set pc_succ_insn may result in a TB covering zero bytes,
which triggers an assert within the code generator.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1224
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221203175744.151365-1-richard.henderson@linaro.org>
[ Changes by AF:
- Add missing run-plugin-test-noc-% line
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

4c48aad105-Dec-2022 Bin Meng <bmeng@tinylab.org>

target/riscv: Fix mret exception cause when no pmp rule is configured

The priv spec v1.12 says:

If no PMP entry matches an M-mode access, the access succeeds. If
no PMP entry matches an S-mode

target/riscv: Fix mret exception cause when no pmp rule is configured

The priv spec v1.12 says:

If no PMP entry matches an M-mode access, the access succeeds. If
no PMP entry matches an S-mode or U-mode access, but at least one
PMP entry is implemented, the access fails. Failed accesses generate
an instruction, load, or store access-fault exception.

At present the exception cause is set to 'illegal instruction' but
should have been 'instruction access fault'.

Fixes: d102f19a2085 ("target/riscv/pmp: Raise exception if no PMP entry is configured")
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221205065303.204095-1-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

bc7dca1324-Nov-2022 Bin Meng <bmeng@tinylab.org>

target/riscv: Add some comments for sstatus CSR in riscv_cpu_dump_state()

sstatus register dump is currently missing in riscv_cpu_dump_state().
As sstatus is a copy of mstatus, which is described in

target/riscv: Add some comments for sstatus CSR in riscv_cpu_dump_state()

sstatus register dump is currently missing in riscv_cpu_dump_state().
As sstatus is a copy of mstatus, which is described in the priv spec,
it seems redundant to print the same information twice.

Add some comments for this to let people know this is intentional.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221125050354.3166023-1-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

eacd03cb23-Nov-2022 Jim Shu <jim.shu@sifive.com>

target/riscv: support cache-related PMU events in virtual mode

let tlb_fill() function also increments PMU counter when it is from
two-stage translation, so QEMU could also monitor these PMU events

target/riscv: support cache-related PMU events in virtual mode

let tlb_fill() function also increments PMU counter when it is from
two-stage translation, so QEMU could also monitor these PMU events when
CPU runs in VS/VU mode (like running guest OS).

Signed-off-by: Jim Shu <jim.shu@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221123090635.6574-1-jim.shu@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

6535a44308-Nov-2022 Anup Patel <apatel@ventanamicro.com>

target/riscv: Typo fix in sstc() predicate

We should use "&&" instead of "&" when checking hcounteren.TM and
henvcfg.STCE bits.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp suppor")
Signed-off

target/riscv: Typo fix in sstc() predicate

We should use "&&" instead of "&" when checking hcounteren.TM and
henvcfg.STCE bits.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp suppor")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221108125703.1463577-2-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

577f028613-Oct-2022 LIU Zhiwei <zhiwei_liu@linux.alibaba.com>

target/riscv: Add itrigger_enabled field to CPURISCVState

Avoid calling riscv_itrigger_enabled() when calculate the tbflags.
As the itrigger enable status can only be changed when write
tdata1, migr

target/riscv: Add itrigger_enabled field to CPURISCVState

Avoid calling riscv_itrigger_enabled() when calculate the tbflags.
As the itrigger enable status can only be changed when write
tdata1, migration load or itrigger fire, update env->itrigger_enabled
at these places.

Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221013062946.7530-5-zhiwei_liu@linux.alibaba.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

9180959813-Oct-2022 LIU Zhiwei <zhiwei_liu@linux.alibaba.com>

target/riscv: Enable native debug itrigger

When QEMU is not in icount mode, execute instruction one by one. The
tdata1 can be read directly.

When QEMU is in icount mode, use a timer to simulate the

target/riscv: Enable native debug itrigger

When QEMU is not in icount mode, execute instruction one by one. The
tdata1 can be read directly.

When QEMU is in icount mode, use a timer to simulate the itrigger. The
tdata1 may be not right because of lazy update of count in tdata1. Thus,
We should pack the adjusted count into tdata1 before read it back.

Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221013062946.7530-4-zhiwei_liu@linux.alibaba.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

show more ...

1...<<21222324252627282930>>...67