Re: [PATCH v3] target/riscv: Implement dynamic establishment of custom decoder

2024-03-14 Thread Philippe Mathieu-Daudé
On 14/3/24 07:24, Huang Tao wrote: Hi, On 2024/3/13 18:47, Philippe Mathieu-Daudé wrote: +{ +    GPtrArray *dynamic_decoders; +    dynamic_decoders = g_ptr_array_sized_new(decoder_table_size); +    for (size_t i = 0; i < decoder_table_size; ++i) { +    if (decoder_table[i].guard_func && +

Re: [PATCH v3] target/riscv: Implement dynamic establishment of custom decoder

2024-03-13 Thread Huang Tao
Hi, On 2024/3/13 18:47, Philippe Mathieu-Daudé wrote: +{ +    GPtrArray *dynamic_decoders; +    dynamic_decoders = g_ptr_array_sized_new(decoder_table_size); +    for (size_t i = 0; i < decoder_table_size; ++i) { +    if (decoder_table[i].guard_func && +    decoder_table[i].guard_f

Re: [PATCH v3] target/riscv: Implement dynamic establishment of custom decoder

2024-03-13 Thread Richard Henderson
On 3/12/24 23:57, Huang Tao wrote: In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up according to the extensions. This approach has several benefits: 1. Provides support for heterogeneous cpu architectures. A

Re: [PATCH v3] target/riscv: Implement dynamic establishment of custom decoder

2024-03-13 Thread Philippe Mathieu-Daudé
Hi, On 13/3/24 10:57, Huang Tao wrote: In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up according to the extensions. This approach has several benefits: 1. Provides support for heterogeneous cpu architectur

[PATCH v3] target/riscv: Implement dynamic establishment of custom decoder

2024-03-13 Thread Huang Tao
In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up according to the extensions. This approach has several benefits: 1. Provides support for heterogeneous cpu architectures. As we add decoder in RISCVCPU, each