Trivial branch pull request 20210607
-----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmC+a+sSHGxhdXJlbnRA dml2aWVyLmV1AAoJEPMMOL0/L748SP0QAKogW9E/SFTKuHVAK+hgLP5UFT6oU4/a 4/124nwf4iBXiwKpE5+M11EYdEpKJ6plohimq70TXUqGRMtDw/XSZNYwSHYVBZRi FB7haXwqeV9eioZZMvdSzo33CJXWzMdBWEohVLEStGMB7SZDOyRPG+E5tAUKt8zQ kn+nSWRq6GziyDV6OXpDey+1x7lRGpI7MqvJPAzsa59EiYwAyd5UFICX96DV69YN qA1+RKvBuI4zO7iqoCj1NR9tdQJnEY7f3TGFCG/JnR9Oveg0QRpnYPU3xe3Hrg6h BR5YScmQTGdDdDpeShECfwcUPYwpLH+OWGuo4QKRx2Dyv2/kIUjHxs+tHjY9XRXA FwCHM1zoKQPN4yf6XBdNHt4sDZZuGwc2aX58qtiJS3MMyzAuLd3ul7Jdt87et4zk BP4JWM2vkF6Mv3ethlpcSHSyLbKcs5h3iPl1w1oqjkM1tZKIdE0L8bsEJ7B6/E7z qXFdS4SdrG3RPkOJZyoPn6IH3t+5EAk9FULLmhzdsqSwNZTfRLkrGLXhTBDStnZH TElRLvHIZSiTgEftSJpxW0si+aIQtGpRF5F5lwjVMMZbRpttelXKTrfio5Zcy3op /uEJOJRB2FdDEvFaquoCEHg1sb2N1PTKb4MOPsu2lKBMi2X+POpFfnlK6skyhhA/ NtPKb5zcHvdu =9AIJ -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-for-6.1-pull-request' into staging Trivial branch pull request 20210607 # gpg: Signature made Mon 07 Jun 2021 19:56:43 BST # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/trivial-branch-for-6.1-pull-request: vhost-vdpa: Remove redundant declaration of address_space_memory scripts/oss-fuzz: Fix typo in documentation target/mips: Fix 'Uncoditional' typo target/hppa: Remove unused 'memory.h' header hw/display/macfb: Classify the "nubus-macfb" as display device target/nios2: fix page-fit instruction count docs: fix broken reference linux-user/syscall: Constify bitmask_transtbl fcntl/mmap flags_tlb[] misc: Correct relative include path i386/kvm: The value passed to strerror should be positive target/riscv: Do not include 'pmp.h' in user emulation Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
33ba8b0adc
@ -450,6 +450,7 @@ static void macfb_nubus_class_init(ObjectClass *klass, void *data)
|
||||
dc->desc = "Nubus Macintosh framebuffer";
|
||||
dc->reset = macfb_nubus_reset;
|
||||
dc->vmsd = &vmstate_macfb;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
device_class_set_props(dc, macfb_nubus_properties);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "qemu/host-utils.h"
|
||||
#include "qemu/log.h"
|
||||
#include "hw/gpio/aspeed_gpio.h"
|
||||
#include "include/hw/misc/aspeed_scu.h"
|
||||
#include "hw/misc/aspeed_scu.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/visitor.h"
|
||||
#include "hw/irq.h"
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef HW_I386_ACPI_COMMON_H
|
||||
#define HW_I386_ACPI_COMMON_H
|
||||
#include "include/hw/acpi/acpi_dev_interface.h"
|
||||
|
||||
#include "include/hw/acpi/bios-linker-loader.h"
|
||||
#include "include/hw/i386/x86.h"
|
||||
#include "hw/acpi/acpi_dev_interface.h"
|
||||
#include "hw/acpi/bios-linker-loader.h"
|
||||
#include "hw/i386/x86.h"
|
||||
|
||||
/* Default IOAPIC ID */
|
||||
#define ACPI_BUILD_IOAPIC_ID 0x0
|
||||
|
@ -145,7 +145,7 @@ static void kvm_apic_put(CPUState *cs, run_on_cpu_data data)
|
||||
|
||||
ret = kvm_vcpu_ioctl(CPU(s->cpu), KVM_SET_LAPIC, &kapic);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_SET_LAPIC failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_SET_LAPIC failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ static void kvm_update_clock(KVMClockState *s)
|
||||
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_GET_CLOCK, &data);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_GET_CLOCK failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_GET_CLOCK failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
s->clock = data.clock;
|
||||
@ -189,7 +189,7 @@ static void kvmclock_vm_state_change(void *opaque, bool running,
|
||||
data.clock = s->clock;
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_SET_CLOCK, &data);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_SET_CLOCK failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_SET_CLOCK failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ static void kvm_pit_get(PITCommonState *pit)
|
||||
if (kvm_has_pit_state2()) {
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_GET_PIT2, &kpit);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_GET_PIT2 failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_GET_PIT2 failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
pit->channels[0].irq_disabled = kpit.flags & KVM_PIT_FLAGS_HPET_LEGACY;
|
||||
@ -115,7 +115,7 @@ static void kvm_pit_get(PITCommonState *pit)
|
||||
*/
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_GET_PIT, &kpit);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_GET_PIT failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_GET_PIT failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@ -180,7 +180,7 @@ static void kvm_pit_put(PITCommonState *pit)
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "%s failed: %s\n",
|
||||
kvm_has_pit_state2() ? "KVM_SET_PIT2" : "KVM_SET_PIT",
|
||||
strerror(ret));
|
||||
strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@ -272,7 +272,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp)
|
||||
}
|
||||
if (ret < 0) {
|
||||
error_setg(errp, "Create kernel PIC irqchip failed: %s",
|
||||
strerror(ret));
|
||||
strerror(-ret));
|
||||
return;
|
||||
}
|
||||
switch (s->lost_tick_policy) {
|
||||
@ -286,7 +286,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp)
|
||||
if (ret < 0) {
|
||||
error_setg(errp,
|
||||
"Can't disable in-kernel PIT reinjection: %s",
|
||||
strerror(ret));
|
||||
strerror(-ret));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ static void kvm_pic_get(PICCommonState *s)
|
||||
chip.chip_id = s->master ? KVM_IRQCHIP_PIC_MASTER : KVM_IRQCHIP_PIC_SLAVE;
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_GET_IRQCHIP, &chip);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ static void kvm_pic_put(PICCommonState *s)
|
||||
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_SET_IRQCHIP, &chip);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ static void kvm_ioapic_get(IOAPICCommonState *s)
|
||||
chip.chip_id = KVM_IRQCHIP_IOAPIC;
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_GET_IRQCHIP, &chip);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s)
|
||||
|
||||
ret = kvm_vm_ioctl(kvm_state, KVM_SET_IRQCHIP, &chip);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(ret));
|
||||
fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(-ret));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "include/hw/intc/ppc-uic.h"
|
||||
#include "hw/intc/ppc-uic.h"
|
||||
#include "hw/irq.h"
|
||||
#include "cpu.h"
|
||||
#include "hw/ppc/ppc.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "hw/virtio/vhost-backend.h"
|
||||
#include "hw/virtio/virtio-net.h"
|
||||
#include "hw/virtio/vhost-vdpa.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "cpu.h"
|
||||
#include "trace.h"
|
||||
|
@ -21,5 +21,4 @@ typedef struct vhost_vdpa {
|
||||
struct vhost_dev *dev;
|
||||
} VhostVDPA;
|
||||
|
||||
extern AddressSpace address_space_memory;
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "block/block.h"
|
||||
#include "qapi/qapi-types-misc.h"
|
||||
#include "qemu/readline.h"
|
||||
#include "include/exec/hwaddr.h"
|
||||
#include "exec/hwaddr.h"
|
||||
|
||||
typedef struct MonitorHMP MonitorHMP;
|
||||
typedef struct MonitorOptions MonitorOptions;
|
||||
|
@ -365,7 +365,7 @@ _syscall5(int, sys_statx, int, dirfd, const char *, pathname, int, flags,
|
||||
_syscall2(int, membarrier, int, cmd, int, flags)
|
||||
#endif
|
||||
|
||||
static bitmask_transtbl fcntl_flags_tbl[] = {
|
||||
static const bitmask_transtbl fcntl_flags_tbl[] = {
|
||||
{ TARGET_O_ACCMODE, TARGET_O_WRONLY, O_ACCMODE, O_WRONLY, },
|
||||
{ TARGET_O_ACCMODE, TARGET_O_RDWR, O_ACCMODE, O_RDWR, },
|
||||
{ TARGET_O_CREAT, TARGET_O_CREAT, O_CREAT, O_CREAT, },
|
||||
@ -6062,7 +6062,7 @@ static const StructEntry struct_termios_def = {
|
||||
.print = print_termios,
|
||||
};
|
||||
|
||||
static bitmask_transtbl mmap_flags_tbl[] = {
|
||||
static const bitmask_transtbl mmap_flags_tbl[] = {
|
||||
{ TARGET_MAP_SHARED, TARGET_MAP_SHARED, MAP_SHARED, MAP_SHARED },
|
||||
{ TARGET_MAP_PRIVATE, TARGET_MAP_PRIVATE, MAP_PRIVATE, MAP_PRIVATE },
|
||||
{ TARGET_MAP_FIXED, TARGET_MAP_FIXED, MAP_FIXED, MAP_FIXED },
|
||||
|
@ -14,7 +14,7 @@ QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \
|
||||
/path/to/crash 2> qtest_log_output
|
||||
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py qtest_log_output > qtest_trace
|
||||
./i386-softmmu/qemu-fuzz-i386 -machine q35,accel=qtest \
|
||||
-qtest stdin < qtest_trace
|
||||
-qtest stdio < qtest_trace
|
||||
|
||||
### Details ###
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "cpu-qom.h"
|
||||
#include "exec/cpu-defs.h"
|
||||
#include "exec/memory.h"
|
||||
|
||||
/* PA-RISC 1.x processors have a strong memory model. */
|
||||
/* ??? While we do not yet implement PA-RISC 2.0, those processors have
|
||||
|
@ -12238,7 +12238,7 @@ static void gen_compute_compact_branch(DisasContext *ctx, uint32_t opc,
|
||||
}
|
||||
|
||||
if (bcond_compute == 0) {
|
||||
/* Uncoditional compact branch */
|
||||
/* Unconditional compact branch */
|
||||
switch (opc) {
|
||||
case OPC_JIALC:
|
||||
tcg_gen_movi_tl(cpu_gpr[31], ctx->base.pc_next + 4 + m16_lowbit);
|
||||
@ -19092,7 +19092,7 @@ static void gen_compute_imm_branch(DisasContext *ctx, uint32_t opc,
|
||||
ctx->base.is_jmp = DISAS_NORETURN;
|
||||
|
||||
if (cond == TCG_COND_ALWAYS) {
|
||||
/* Uncoditional compact branch */
|
||||
/* Unconditional compact branch */
|
||||
gen_goto_tb(ctx, 0, ctx->btarget);
|
||||
} else {
|
||||
/* Conditional compact branch */
|
||||
@ -19201,7 +19201,7 @@ static void gen_compute_compact_branch_nm(DisasContext *ctx, uint32_t opc,
|
||||
}
|
||||
|
||||
if (bcond_compute == 0) {
|
||||
/* Uncoditional compact branch */
|
||||
/* Unconditional compact branch */
|
||||
switch (opc) {
|
||||
case OPC_BC:
|
||||
gen_goto_tb(ctx, 0, ctx->btarget);
|
||||
|
@ -829,7 +829,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns)
|
||||
/* Set up instruction counts */
|
||||
num_insns = 0;
|
||||
if (max_insns > 1) {
|
||||
int page_insns = (TARGET_PAGE_SIZE - (tb->pc & TARGET_PAGE_MASK)) / 4;
|
||||
int page_insns = (TARGET_PAGE_SIZE - (tb->pc & ~TARGET_PAGE_MASK)) / 4;
|
||||
if (max_insns > page_insns) {
|
||||
max_insns = page_insns;
|
||||
}
|
||||
|
@ -97,7 +97,9 @@ enum {
|
||||
|
||||
typedef struct CPURISCVState CPURISCVState;
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
#include "pmp.h"
|
||||
#endif
|
||||
|
||||
#define RV_VLEN_MAX 256
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user