mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 16:55:35 +00:00
8583c8f1f6
Especially when dealing with out-of-line gvec helpers, it is often helpful to specify some vector pointers as constant. E.g. when we have two inputs and one output, marking the two inputs as consts pointers helps to avoid bugs. Const pointers can be specified via "cptr", however behave in TCG just like ordinary pointers. We can specify helpers like: DEF_HELPER_FLAGS_4(gvec_vbperm, TCG_CALL_NO_RWG, void, ptr, cptr, cptr, i32) void HELPER(gvec_vbperm)(void *v1, const void *v2, const void *v3, uint32_t desc) And make sure that here, only v1 will be written (as long as const is not casted away, of course). Backports commit 8c6edfdd90522caa4fc429144d393aba5b99f584 from qemu |
||
---|---|---|
.. | ||
crypto | ||
exec | ||
fpu | ||
hw | ||
qapi | ||
qemu | ||
qom | ||
sysemu | ||
config.h | ||
elf.h | ||
glib_compat.h | ||
qemu-common.h |