[PATCH] plugins: add plugin API to get args passed to binary

2024-11-01 Thread demin.han
Why we need args? When plugin outputs log files, only binary path can't distinguish multiple runs if the binary passed with different args. This is bad for CI using plugin. Signed-off-by: demin.han --- include/qemu/qemu-plugin.h | 11 +++ plugins/api.c

[PATCH v3] target/riscv: Fix shift count overflow

2024-02-25 Thread demin.han
The result of (8 - 3 - vlmul) is negative when vlmul >= 6, and results in wrong vill. Signed-off-by: demin.han --- Changes in v2: - Add vlen var Changes in v3: - Fix commit msg typo target/riscv/vector_helper.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tar

[PATCH v2] target/riscv: Fix shift count overflow

2024-02-24 Thread demin.han
The result of (8 - 3 - vlmul) is negtive when vlmul >= 6, and results in wrong vill. Signed-off-by: demin.han --- target/riscv/vector_helper.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 84cec73

[PATCH] target/riscv: Fix shift count overflow

2024-02-24 Thread demin.han
The result of (8 - 3 - vlmul) is negtive when vlmul >= 6, and results in wrong vill. Signed-off-by: demin.han --- target/riscv/vector_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 84cec73