Home
last modified time | relevance | path

Searched +full:flags +full:- +full:mask (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/qemu/hw/pci/
H A Dmsi.c42 * Flag for interrupt controllers to declare broken MSI/MSI-X support.
43 * values: false - broken; true - non-broken.
45 * Setting this flag to false will remove MSI/MSI-X capability from all devices.
47 * It is preferable for controllers to set this to true (non-broken) even if
48 * they do not actually support MSI/MSI-X: guests normally probe the controller
49 * type and do not attempt to enable MSI/MSI-X with interrupt controllers not
58 static inline uint8_t msi_cap_sizeof(uint16_t flags) in msi_cap_sizeof() argument
60 switch (flags & (PCI_MSI_FLAGS_MASKBIT | PCI_MSI_FLAGS_64BIT)) { in msi_cap_sizeof()
85 MSI_DPRINTF("%s:%x " fmt, (dev)->name, (dev)->devfn, ## __VA_ARGS__)
87 static inline unsigned int msi_nr_vectors(uint16_t flags) in msi_nr_vectors() argument
[all …]
/qemu/target/xtensa/
H A Ddbg_helper.c2 * Copyright (c) 2011 - 2019, Max Filippov, Open Source and Linux Lab.
31 #include "exec/helper-proto.h"
32 #include "qemu/host-utils.h"
34 #include "system/address-spaces.h"
39 uint32_t change = v ^ env->sregs[IBREAKENABLE]; in HELPER()
42 for (i = 0; i < env->config->nibreak; ++i) { in HELPER()
45 cpu_breakpoint_insert(cs, env->sregs[IBREAKA + i], in HELPER()
46 BP_CPU, &env->cpu_breakpoint[i]); in HELPER()
48 cpu_breakpoint_remove_by_ref(cs, env->cpu_breakpoint[i]); in HELPER()
49 env->cpu_breakpoint[i] = NULL; in HELPER()
[all …]
/qemu/target/s390x/
H A Dcpu.c26 #include "s390x-internal.h"
31 #include "qapi/qapi-types-machine.h"
33 #include "hw/qdev-properties.h"
34 #include "hw/qdev-properties-system.h"
36 #include "fpu/softfloat-helpers.h"
42 #include "hw/s390x/cpu-topology.h"
48 static bool is_early_exception_psw(uint64_t mask, uint64_t addr) in is_early_exception_psw() argument
50 if (mask & PSW_MASK_RESERVED) { in is_early_exception_psw()
54 switch (mask & (PSW_MASK_32 | PSW_MASK_64)) { in is_early_exception_psw()
67 void s390_cpu_set_psw(CPUS390XState *env, uint64_t mask, uint64_t addr) in s390_cpu_set_psw() argument
[all …]
/qemu/target/ppc/
H A Dfpu_helper.c4 * Copyright (c) 2003-2007 Jocelyn Mayer
21 #include "exec/helper-proto.h"
52 return (env->msr & ((1U << MSR_FE0) | (1U << MSR_FE1))) != 0; in fp_exceptions_enabled()
60 * This is the non-arithmatic conversion that happens e.g. on loads.
89 int shift = clz32(abs_arg) - 8; in helper_todouble()
92 * this result by -1 so that we can swallow the implicit bit below. in helper_todouble()
94 int exp = -126 - shift + 1023 - 1; in helper_todouble()
97 ret += (uint64_t)abs_arg << (52 - 23 + shift); in helper_todouble()
104 * This is the non-arithmatic conversion that happens e.g. on stores.
119 * a single-precision denormal result, extract the proper in helper_tosingle()
[all …]
H A Dmmu_helper.c4 * Copyright (c) 2003-2007 Jocelyn Mayer
25 #include "mmu-hash64.h"
26 #include "mmu-hash32.h"
28 #include "exec/page-protection.h"
32 #include "qemu/error-report.h"
33 #include "qemu/qemu-print.h"
35 #include "mmu-book3s-v3.h"
36 #include "mmu-radix64.h"
37 #include "mmu-booke.h"
38 #include "exec/helper-proto.h"
[all …]
/qemu/tests/qtest/libqos/
H A Dahci.h30 #include "malloc-pc.h"
261 /* FIS flags */
308 /* AHCI Command Header Flags & Masks*/
320 #define ATA_DEVICE_MAGIC 0xA0 /* used in ata1-3 */
353 uint8_t flags; member
358 * Register device-to-host FIS structure.
363 uint8_t flags; member
380 * Register device-to-host FIS structure;
386 uint8_t flags; member
405 * Register host-to-device FIS structure.
[all …]
/qemu/include/exec/
H A Dwatchpoint.h5 * SPDX-License-Identifier: LGPL-2.1-or-later
13 int flags, CPUWatchpoint **watchpoint) in cpu_watchpoint_insert() argument
15 return -ENOSYS; in cpu_watchpoint_insert()
19 vaddr len, int flags) in cpu_watchpoint_remove() argument
21 return -ENOSYS; in cpu_watchpoint_remove()
29 static inline void cpu_watchpoint_remove_all(CPUState *cpu, int mask) in cpu_watchpoint_remove_all() argument
34 int flags, CPUWatchpoint **watchpoint);
36 vaddr len, int flags);
38 void cpu_watchpoint_remove_all(CPUState *cpu, int mask);
/qemu/system/
H A Dwatchpoint.c21 #include "qemu/error-report.h"
29 int flags, CPUWatchpoint **watchpoint) in cpu_watchpoint_insert() argument
35 if (len == 0 || (addr + len - 1) < addr) { in cpu_watchpoint_insert()
38 return -EINVAL; in cpu_watchpoint_insert()
42 wp->vaddr = addr; in cpu_watchpoint_insert()
43 wp->len = len; in cpu_watchpoint_insert()
44 wp->flags = flags; in cpu_watchpoint_insert()
46 /* keep all GDB-injected watchpoints in front */ in cpu_watchpoint_insert()
47 if (flags & BP_GDB) { in cpu_watchpoint_insert()
48 QTAILQ_INSERT_HEAD(&cpu->watchpoints, wp, entry); in cpu_watchpoint_insert()
[all …]
/qemu/target/arm/tcg/
H A Darith_helper.c6 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "exec/helper-proto.h.inc"
23 /* Perform 16-bit signed saturating addition. */
39 /* Perform 8-bit signed saturating addition. */
55 /* Perform 16-bit signed saturating subtraction. */
60 res = a - b; in sub16_sat()
71 /* Perform 8-bit signed saturating subtraction. */
76 res = a - b; in sub8_sat()
109 return a - b; in sub16_usat()
128 return a - b; in sub8_usat()
[all …]
/qemu/disas/
H A Dsparc.c3 * include/opcode/sparc.h, opcodes/sparc-opc.c, opcodes/sparc-dis.c
30 #include "disas/dis-asm.h"
33 the opcodes library in sparc-opc.c. If you change anything here, make
36 /* FIXME-someday: perhaps the ,a's and such should be embedded in the
43 returns non-zero.
44 The values are indices into `sparc_opcode_archs' defined in sparc-opc.c.
45 Don't change this without updating sparc-opc.c. */
62 #define SPARC_OPCODE_ARCH_MAX (SPARC_OPCODE_ARCH_BAD - 1)
68 /* Given a valid sparc_opcode_arch_val, return non-zero if it's v9. */
76 /* Mask of sparc_opcode_arch_val's supported.
[all …]
/qemu/target/microblaze/
H A Dop_helper.c5 * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd.
24 #include "exec/helper-proto.h"
25 #include "qemu/host-utils.h"
26 #include "accel/tcg/cpu-ldst.h"
37 qemu_log_mask(LOG_UNIMP, "Unhandled stream put to stream-id=%d data=%x %s%s%s%s%s\n", in helper_put()
54 qemu_log_mask(LOG_UNIMP, "Unhandled stream get from stream-id=%d %s%s%s%s%s\n", in helper_get()
68 cs->exception_index = index; in helper_raise_exception()
75 env->msr |= MSR_DZ; in check_divz()
77 if ((env->msr & MSR_EE) && in check_divz()
78 env_archcpu(env)->cfg.div_zero_exception) { in check_divz()
[all …]
H A Dcpu.h23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 #include "exec/cpu-defs.h"
26 #include "qemu/cpu-float.h"
27 #include "exec/cpu-interrupt.h"
36 #define EXCP_SYSCALL 3 /* user-only */
40 /* MicroBlaze-specific interrupt pending bits. */
47 /* Register aliases. R0 - R15 */
57 /* MSR flags. */
108 #define FSR_DZ (1<<3) /* Divide-by-zero */
[all …]
/qemu/accel/tcg/
H A Dcputlb.c21 #include "qemu/main-loop.h"
22 #include "qemu/target-info.h"
23 #include "accel/tcg/cpu-ops.h"
26 #include "exec/page-protection.h"
28 #include "accel/tcg/cpu-ldst-common.h"
29 #include "accel/tcg/cpu-mmu-index.h"
31 #include "exec/tb-flush.h"
33 #include "exec/mmu-access-type.h"
34 #include "exec/tlb-common.h"
37 #include "qemu/error-report.h"
[all …]
H A Duser-exec.c4 * Copyright (c) 2003-2005 Fabrice Bellard
20 #include "accel/tcg/cpu-ops.h"
23 #include "exec/tlb-flags.h"
27 #include "accel/tcg/cpu-ldst-common.h"
28 #include "accel/tcg/helper-retaddr.h"
31 #include "user/guest-host.h"
32 #include "qemu/main-loop.h"
33 #include "user/page-protection.h"
34 #include "exec/page-protection.h"
35 #include "exec/helper-proto-common.h"
[all …]
/qemu/tests/qtest/fuzz/
H A Dvirtio_blk_fuzz.c2 * virtio-blk Fuzzing Target
6 * Based on virtio-scsi-fuzz target.
9 * See the COPYING file in the top-level directory.
15 #include "tests/qtest/libqos/virtio-blk.h"
17 #include "tests/qtest/libqos/virtio-pci.h"
18 #include "standard-headers/linux/virtio_ids.h"
19 #include "standard-headers/linux/virtio_pci.h"
20 #include "standard-headers/linux/virtio_blk.h"
30 /* Based on tests/qtest/virtio-blk-test.c. */
36 static QVirtioBlkQueues *qvirtio_blk_init(QVirtioDevice *dev, uint64_t mask) in qvirtio_blk_init() argument
[all …]
/qemu/plugins/
H A Dcore.c10 * See the COPYING file in the top-level directory.
12 * SPDX-License-Identifier: GPL-2.0-or-later
21 #include "exec/tb-flush.h"
22 #include "tcg/tcg-op-common.h"
50 bitmap_copy(cpu->plugin_state->event_mask, in plugin_cpu_update__async()
58 run_on_cpu_data mask = RUN_ON_CPU_HOST_ULONG(*plugin.mask); in plugin_cpu_update__locked() local
60 async_run_on_cpu(cpu, plugin_cpu_update__async, mask); in plugin_cpu_update__locked()
66 struct qemu_plugin_cb *cb = ctx->callbacks[ev]; in plugin_unregister_cb__locked()
73 ctx->callbacks[ev] = NULL; in plugin_unregister_cb__locked()
75 clear_bit(ev, plugin.mask); in plugin_unregister_cb__locked()
[all …]
/qemu/target/arm/
H A Dhyp_gdbstub.c4 * Copyright Mian-M. Hamayun 2013, Virtual Open Systems
8 * See the COPYING file in the top-level directory.
26 * simple un-linked breakpoints (i.e. we don't chain breakpoints
34 * +------+------+-------+-----+----+------+-----+------+-----+---+
36 * +------+------+-------+-----+----+------+-----+------+-----+---+
40 * SSC/HMC/PMC: Security, Higher and Priv access control (Table D-12)
47 * +------+-----------+----------+-----+
49 * +------+-----------+----------+-----+
65 return -ENOBUFS; in insert_hw_breakpoint()
86 for (i = 0; i < hw_breakpoints->len; i++) { in delete_hw_breakpoint()
[all …]
/qemu/linux-headers/asm-s390/
H A Dkvm.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
20 __u32 flags; member
27 * kvm_s390_cmma_log - Used for CMMA migration.
33 * @flags: Control operation mode via KVM_S390_CMMA_* flags
36 * @mask: Used with KVM_S390_SET_CMMA_BITS. Bitmap of bits to actually set
45 __u32 flags; member
48 __u64 mask; member
63 __u64 flags; /* flags */ member
78 /* types for kvm_s390_mem_op->op */
87 /* flags for kvm_s390_mem_op->flags */
[all …]
/qemu/target/rx/
H A Dcpu.c20 #include "qemu/qemu-print.h"
25 #include "exec/page-protection.h"
26 #include "exec/translation-block.h"
30 #include "tcg/debug-assert.h"
31 #include "accel/tcg/cpu-ops.h"
37 cpu->env.pc = value; in rx_cpu_set_pc()
44 return cpu->env.pc; in rx_cpu_get_pc()
50 uint32_t flags = 0; in rx_get_tb_cpu_state() local
52 flags = FIELD_DP32(flags, PSW, PM, env->psw_pm); in rx_get_tb_cpu_state()
53 flags = FIELD_DP32(flags, PSW, U, env->psw_u); in rx_get_tb_cpu_state()
[all …]
/qemu/pc-bios/s390-ccw/
H A Dcio.h9 * your option) any later version. See the COPYING file in the top-level
27 u32 mme:2; /* measurement-mode enable */
32 u8 lpm; /* logical path mask */
33 u8 pnom; /* path not operational mask */
34 u8 lpum; /* last path used mask */
35 u8 pim; /* path installed mask */
36 u16 mbi; /* measurement-block index */
37 u8 pom; /* path operational mask */
38 u8 pam; /* path available mask */
39 u8 chpid[8]; /* CHPID 0-7 (if available) */
[all …]
/qemu/tests/unit/
H A Dtest-io-channel-file.c22 #include "io/channel-file.h"
23 #include "io/channel-util.h"
24 #include "io-channel-helpers.h"
28 #define TEST_FILE "tests/test-io-channel-file.txt"
33 * the FAT-style READONLY attribute and does not look at the ACL at all.
41 static void test_io_channel_file_helper(int flags) in test_io_channel_file_helper() argument
46 mode_t mask; in test_io_channel_file_helper() local
52 flags, TEST_MASK, in test_io_channel_file_helper()
65 mask = umask(0); in test_io_channel_file_helper()
66 umask(mask); in test_io_channel_file_helper()
[all …]
/qemu/hw/acpi/
H A Derst.c9 * SPDX-License-Identifier: GPL-2.0-or-later
14 #include "hw/qdev-core.h"
19 #include "qemu/error-report.h"
21 #include "hw/qdev-properties.h"
23 #include "hw/acpi/acpi-defs.h"
24 #include "hw/acpi/aml-build.h"
25 #include "hw/acpi/bios-linker-loader.h"
26 #include "system/address-spaces.h"
31 /* ACPI 4.0: Table 17-16 Serialization Actions */
50 /* ACPI 4.0: Table 17-17 Command Status Definitions */
[all …]
/qemu/hw/net/
H A Dmcf_fec.c17 #include "hw/qdev-properties.h"
77 /* Map interrupt flags onto IRQ lines. */
96 uint16_t flags; member
178 be16_to_cpus(&bd->flags); in mcf_fec_read_bd()
179 be16_to_cpus(&bd->length); in mcf_fec_read_bd()
180 be32_to_cpus(&bd->data); in mcf_fec_read_bd()
186 tmp.flags = cpu_to_be16(bd->flags); in mcf_fec_write_bd()
187 tmp.length = cpu_to_be16(bd->length); in mcf_fec_write_bd()
188 tmp.data = cpu_to_be32(bd->data); in mcf_fec_write_bd()
196 uint32_t mask; in mcf_fec_update() local
[all …]
/qemu/linux-headers/asm-x86/
H A Dkvm.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
61 __u8 imr; /* interrupt mask register */
94 __u8 mask:1; member
164 __u64 flags; member
213 __u32 flags; member
216 __u8 *bitmap; /* a 1 bit allows the operations in flags, 0 denies */
224 __u32 flags; member
247 __u32 flags; member
311 __u32 flags; member
320 /* When set in flags, include corresponding fields on KVM_SET_VCPU_EVENTS */
[all …]
/qemu/qapi/
H A Dcxl.json1 # -*- Mode: Python -*-
32 # @cxl-inject-general-media-event:
42 # @flags: Event Record Flags. See CXL r3.0 Table 8-42 Common Event
43 # Record Format, Event Record Flags for subfield definitions.
46 # lower bits include some flags. See CXL r3.0 Table 8-43 General
50 # information. See CXL r3.0 Table 8-43 General Media Event
53 # @type: Type of memory event that occurred. See CXL r3.0 Table 8-43
57 # @transaction-type: Type of first transaction that caused the event
58 # to occur. See CXL r3.0 Table 8-43 General Media Event Record,
70 # @component-id: Device specific component identifier for the event.
[all …]

12345678910>>...14