| /qemu/tests/tcg/s390x/ |
| A D | branch-relative-long.c | 20 const char *code; member 26 .code = brasl_r0, 30 .code = brcl_0xf, 42 size_t test_length = 0x100000000 + (tests[i].code_end - tests[i].code); in main() 58 void (*code)(void) = (void *)(buf + 0x100000000); in main() local 60 memcpy(code, tests[i].code, tests[i].code_end - tests[i].code); in main() 61 code(); in main() 62 memset(code, 0, tests[i].code_end - tests[i].code); in main()
|
| /qemu/contrib/gitdm/ |
| A D | filetypes.txt | 43 filetype code \.c$ # C 44 filetype code \.c.inc$ # C 45 filetype code \.C$ # C++ 46 filetype code \.cpp$ # C++ 47 filetype code \.c\+\+$ # C++ 48 filetype code \.cxx$ # C++ 49 filetype code \.cc$ # C++ 54 filetype code \.sh$ # Shell 55 filetype code \.pl$ # Perl 56 filetype code \.py$ # Python [all …]
|
| /qemu/roms/ |
| A D | edk2-build.config | 31 # grub.efi uses EfiLoaderData for code 33 # shim.efi has broken MemAttr code 46 cpy1 = FV/OVMF_CODE.fd edk2-i386-code.fd 57 cpy1 = FV/OVMF_CODE.fd edk2-i386-secure-code.fd 69 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-code.fd 102 cpy1 = FV/QEMU_EFI.fd edk2-arm-code.fd 104 pad1 = edk2-arm-code.fd 64m 119 cpy1 = FV/QEMU_EFI.fd edk2-aarch64-code.fd 120 pad1 = edk2-aarch64-code.fd 64m 132 pad1 = edk2-riscv-code.fd 32m [all …]
|
| /qemu/pc-bios/ |
| A D | meson.build | 4 'edk2-aarch64-code.fd', 5 'edk2-arm-code.fd', 7 'edk2-riscv-code.fd', 9 'edk2-i386-code.fd', 10 'edk2-i386-secure-code.fd', 12 'edk2-x86_64-code.fd', 13 'edk2-x86_64-secure-code.fd', 14 'edk2-loongarch64-code.fd',
|
| /qemu/tests/qtest/ |
| A D | boot-serial-test.c | 240 const uint8_t *code = NULL; in test_machine() local 249 code = test->kernel; in test_machine() 252 code = test->bios; in test_machine() 256 if (code) { in test_machine() 262 wlen = write(code_fd, code, test->codesize); in test_machine() 274 codeparam, code ? codetmp : "", test->machine, in test_machine() 276 if (code) { in test_machine()
|
| /qemu/hw/s390x/ |
| A D | sclp.c | 36 static inline bool sclp_command_code_valid(uint32_t code) in sclp_command_code_valid() argument 38 switch (code & SCLP_CMD_CODE_MASK) { in sclp_command_code_valid() 53 uint32_t code) in sccb_verify_boundary() argument 58 switch (code & SCLP_CMD_CODE_MASK) { in sccb_verify_boundary() 243 switch (code & SCLP_CMD_CODE_MASK) { in sclp_execute() 258 efc->command_handler(ef, sccb, code); in sclp_execute() 282 if (!sclp_command_code_valid(code)) { in sclp_service_call_protected() 287 sclp_c->execute(sclp, work_sccb, code); in sclp_service_call_protected() 295 int sclp_service_call(S390CPU *cpu, uint64_t sccb, uint32_t code) in sclp_service_call() argument 331 if (!sclp_command_code_valid(code)) { in sclp_service_call() [all …]
|
| A D | s390-virtio-hcall.c | 20 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn) in s390_register_virtio_hypercall() argument 22 assert(code < MAX_DIAG_SUBCODES); in s390_register_virtio_hypercall() 23 assert(!s390_diag500_table[code]); in s390_register_virtio_hypercall() 25 s390_diag500_table[code] = fn; in s390_register_virtio_hypercall()
|
| /qemu/tests/qemu-iotests/tests/ |
| A D | qemu-img-close-errors.out | 7 qemu-img commit exit code: 0 8 qemu-img bitmap --add exit code: 0 12 qemu-img bitmap --merge exit code: 1 20 qemu-img commit exit code: 1 21 qemu-img bitmap --add exit code: 0 22 qemu-img bitmap --merge exit code: 0
|
| /qemu/ |
| A D | qemu-keymap.c | 60 static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data) in walk_map() argument 74 evdev = code - 8; in walk_map() 78 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 93 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 97 knumlock = xkb_state_key_get_one_sym(state, code); in walk_map() 103 kshift = xkb_state_key_get_one_sym(state, code); in walk_map() 109 kaltgr = xkb_state_key_get_one_sym(state, code); in walk_map() 115 kaltgrshift = xkb_state_key_get_one_sym(state, code); in walk_map()
|
| /qemu/scripts/qapi/ |
| A D | common.py | 162 def cgen(code: str, **kwds: object) -> str: 168 raw = code % kwds 175 def mcgen(code: str, **kwds: object) -> str: 176 if code[0] == '\n': 177 code = code[1:] 178 return cgen(code, **kwds)
|
| /qemu/bsd-user/aarch64/ |
| A D | target_arch_cpu.h | 50 uint64_t code, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8; in target_cpu_loop() local 62 code = env->xregs[8]; in target_cpu_loop() 63 if (code == TARGET_FREEBSD_NR_syscall || in target_cpu_loop() 64 code == TARGET_FREEBSD_NR___syscall) { in target_cpu_loop() 65 code = env->xregs[0]; in target_cpu_loop() 84 ret = do_freebsd_syscall(env, code, arg1, arg2, arg3, in target_cpu_loop()
|
| /qemu/docs/devel/ |
| A D | multi-thread-tcg.rst | 40 In the general case of running translated code there should be no 52 Even when there is no code being generated there are a number of 60 As TB linking only occurs when blocks are in the same page this code 62 most common reason to exit the generated code. 70 are only taken when code generation is required or TranslationBlocks 81 translation buffer which contains code running on all cores. Any 88 DESIGN REQUIREMENT: Add locking around all code generation and TB 104 Currently the whole system shares a single code generation buffer 121 - code modification (self modify code, patching code) 130 to the C code. [all …]
|
| A D | control-flow-integrity.rst | 7 new and existing code in QEMU 17 function pointer declared in the source code. 20 the signature of every function and every function pointer used in the code. 55 Incompatible code with CFI 60 for most code, some specific use pattern can break CFI compatibility, and 63 * Just-in-time compiled code: since such code is created at runtime, the jump 64 to the buffer containing JIT code will fail. 80 5. Directly calling signal handlers from the QEMU source code, since the 95 * TCG creates binary blobs at runtime, with the transformed code. 96 * A TB is a blob of binary code, created at runtime and called with an [all …]
|
| A D | tcg.rst | 7 QEMU is a dynamic translator. When it first encounters a piece of code, 63 code address is returned, otherwise the address of the JIT epilogue is 71 The translation code usually implements branching by performing the 119 may change, causing the code at the destination address to change. 127 Self-modifying code and translated code invalidation 130 Self-modifying code is a special challenge in x86 emulation because no 135 not already read-only) every time translated code is generated for a 178 In order to avoid flushing the translated code each time the MMU 189 memory areas instead calls out to C code for device emulation. 193 Profiling JITted code [all …]
|
| A D | maintainers.rst | 29 patches that touch their area of code. 31 The file also describes the status of the area of code to give an idea 50 - Old obsolete code, should use something else. 54 the code comes with no warranty and the project makes no guarantees 63 is welcome to review code on the mailing list getting added to the 76 asked by others to keep an eye on an area of code. They have generally 77 demonstrated to the community, usually via contributions and code 84 series when a new sub-system is being added to the code base. This can
|
| A D | style.rst | 62 .. code-block:: c 77 .. code-block:: c 174 .. code-block:: c 191 .. code-block:: c 210 .. code-block:: c 228 .. code-block:: c 250 .. code-block:: c 279 .. code-block:: c 289 .. code-block:: c 449 SoftMMU TLB code. [all …]
|
| A D | secure-coding-practices.rst | 5 be aware of so that they can develop safe code and audit existing code 68 place when ``unit`` is dereferenced. The code must check that ``val`` is 0 or 74 moments. Device emulation code must not assume that the guest follows the 79 A related issue is that device emulation code must be prepared for unexpected 82 certain device registers. Device emulation code must handle the case where the 94 Live migration code must validate inputs when loading device state so an 101 Guests with multiple vCPUs may modify guest RAM while device emulation code is 102 running. Device emulation code must copy in descriptors and other guest RAM
|
| /qemu/bsd-user/riscv/ |
| A D | target_arch_cpu.h | 46 int32_t signo, code; in target_cpu_loop() local 109 code = TARGET_ILL_ILLOPC; in target_cpu_loop() 113 code = TARGET_TRAP_BRKPT; in target_cpu_loop() 117 code = TARGET_TRAP_BRKPT; in target_cpu_loop() 127 force_sig_fault(signo, code, env->pc); in target_cpu_loop()
|
| /qemu/hw/audio/ |
| A D | virtio-snd.c | 223 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_info() 481 static const char *print_code(uint32_t code) in print_code() argument 487 switch (code) { in print_code() 521 cmd->resp.code = msg_sz == sizeof(stream_id) in virtio_snd_handle_pcm_prepare() 555 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_start_stop() 652 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_release() 664 uint32_t code; in process_cmd() local 681 code = le32_to_cpu(cmd->ctrl.code); in process_cmd() 683 trace_virtio_snd_handle_code(code, print_code(code)); in process_cmd() 685 switch (code) { in process_cmd() [all …]
|
| /qemu/linux-user/ |
| A D | cpu_loop-common.h | 26 void target_exception_dump(CPUArchState *env, const char *fmt, int code); 27 #define EXCP_DUMP(env, fmt, code) \ argument 28 target_exception_dump(env, fmt, code)
|
| /qemu/tcg/tci/ |
| A D | README | 7 TCG (Tiny Code Generator) is a code generator which translates 8 code fragments ("basic blocks") from target code (any of the 9 targets supported by QEMU) to a code representation which 12 QEMU can create native code for some hosts (arm, i386, ia64, ppc, ppc64, 15 By adding a code generator for a virtual machine and using an 23 Like each TCG host frontend, TCI implements the code generator in 41 additional code in configure which must be fixed when new native TCG 114 * Some TCG opcodes are either missing in the code generator and/or 116 possible to see where code must be added.
|
| /qemu/docs/system/arm/ |
| A D | orangepi.rst | 73 .. code-block:: bash 85 .. code-block:: bash 93 .. code-block:: bash 103 .. code-block:: bash 109 .. code-block:: bash 138 .. code-block:: bash 146 .. code-block:: bash 157 .. code-block:: bash 167 .. code-block:: bash 178 .. code-block:: bash [all …]
|
| A D | xlnx-versal-virt.rst | 75 .. code-block:: bash 88 .. code-block:: bash 101 .. code-block:: bash 114 .. code-block:: bash 126 .. code-block:: bash 139 .. code-block:: bash 154 .. code-block:: bash 168 .. code-block:: bash 189 .. code-block:: bash 195 .. code-block:: bash [all …]
|
| /qemu/hw/sparc/ |
| A D | leon3.c | 79 static uint32_t *gen_store_u32(uint32_t *code, hwaddr addr, uint32_t val) in gen_store_u32() argument 81 stl_p(code++, 0x82100000); /* mov %g0, %g1 */ in gen_store_u32() 82 stl_p(code++, 0x84100000); /* mov %g0, %g2 */ in gen_store_u32() 83 stl_p(code++, 0x03000000 + in gen_store_u32() 86 stl_p(code++, 0x82106000 + in gen_store_u32() 89 stl_p(code++, 0x05000000 + in gen_store_u32() 92 stl_p(code++, 0x8410a000 + in gen_store_u32() 95 stl_p(code++, 0xc4204000); /* st %g2, [ %g1 ] */ in gen_store_u32() 97 return code; in gen_store_u32()
|
| /qemu/linux-user/mips/ |
| A D | cpu_loop.c | 42 static void do_tr_or_bp(CPUMIPSState *env, unsigned int code, bool trap) in do_tr_or_bp() argument 46 switch (code) { in do_tr_or_bp() 67 unsigned int code; in cpu_loop() local 194 code = env->error_code; in cpu_loop() 195 if (code >= (1 << 10)) { in cpu_loop() 196 code >>= 10; in cpu_loop() 198 do_tr_or_bp(env, code, false); in cpu_loop()
|