Re: [Qemu-devel] [PATCH v4 26/26] RISC-V: Fix riscv_isa_string memory size bug

2018-03-20 Thread Philippe Mathieu-Daudé
Le mar. 20 mars 2018 12:52, Peter Maydell a écrit : > On 19 March 2018 at 21:18, Michael Clark wrote: > > This version uses a constant size memory buffer sized for > > the maximum possible ISA string length. It also uses g_new > > instead of g_new0, uses more efficient logic to append > > extens

Re: [Qemu-devel] [PATCH v4 26/26] RISC-V: Fix riscv_isa_string memory size bug

2018-03-20 Thread Peter Maydell
On 19 March 2018 at 21:18, Michael Clark wrote: > This version uses a constant size memory buffer sized for > the maximum possible ISA string length. It also uses g_new > instead of g_new0, uses more efficient logic to append > extensions and adds manual zero termination of the string. > > Cc: Pal

[Qemu-devel] [PATCH v4 26/26] RISC-V: Fix riscv_isa_string memory size bug

2018-03-19 Thread Michael Clark
This version uses a constant size memory buffer sized for the maximum possible ISA string length. It also uses g_new instead of g_new0, uses more efficient logic to append extensions and adds manual zero termination of the string. Cc: Palmer Dabbelt Cc: Peter Maydell Signed-off-by: Michael Clark