[PATCH] target/riscv: Fix checking of whether instruciton at 'pc_next' spans pages

2023-02-20 Thread Shaobo Song
This bug has a noticeable behavior of falling back to the main loop and respawning a redundant translation block including a single instruction when the end address of the compressive instruction is exactly on a page boundary, and slows down running system performance. Signed-off-by: Shaobo Song

[PATCH] target/riscv: Fix checking of whether instruciton at 'pc_next' spans pages

2023-02-20 Thread Shaobo Song
This bug has a noticeable behavior of falling back to the main loop and respawning a redundant translation block including a single instruction when the end address of the compressive instruction is exactly on a page boundary, and slows down running system performance. Signed-off-by: Shaobo Song

Re:[PATCH v7 9/9] disas/riscv.c: add disasm support for Zc*

2022-11-30 Thread Shaobo Song
At 2022-11-29 10:43:43, "Weiwei Li" wrote: >Zcmp/Zcmt instructions will override disasm for c.fld*/c.fsd* >instructions currently > >Signed-off-by: Weiwei Li >Signed-off-by: Junqiang Wang >Acked-by: Alistair Francis >--- > disas/riscv.c | 287 +-

Re:[PATCH v7 9/9] disas/riscv.c: add disasm support for Zc*

2022-11-30 Thread Shaobo Song
At 2022-11-29 10:43:43, "Weiwei Li" wrote: >Zcmp/Zcmt instructions will override disasm for c.fld*/c.fsd* >instructions currently we might make a encode using top 16 bits of flags in struct disassemble_info, to describe enable status of zc-subsets. Then we can pass it to disasm_inst in print_ins

[PATCH] This fixes a bug in POSIX-compliant environments. Since we had allocated a buffer named 'tcg-jit' with read-write access protections we need a int type to combine these access flags and return

2022-06-24 Thread Shaobo Song
Signed-off-by: Shaobo Song --- tcg/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/region.c b/tcg/region.c index 71ea81d671..88d6bb273f 100644 --- a/tcg/region.c +++ b/tcg/region.c @@ -548,7 +548,7 @@ static int alloc_code_gen_buffer_anon(size_t size, int prot

[PATCH] tcg: Fix returned type in alloc_code_gen_buffer_splitwx_memfd()

2022-06-24 Thread Shaobo Song
ion change in tcg_region_init(). Signed-off-by: Shaobo Song --- tcg/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/region.c b/tcg/region.c index 71ea81d671..88d6bb273f 100644 --- a/tcg/region.c +++ b/tcg/region.c @@ -548,7 +548,7 @@ static int alloc_code_gen_b