diff options
author | Michael Clark | 2018-03-19 22:18:49 +0100 |
---|---|---|
committer | Peter Maydell | 2018-03-20 12:45:55 +0100 |
commit | d1fd31f82219c306aed7c35c370852d2f8d331a8 (patch) | |
tree | fe2b7b648a855157ccecfba52c6f8ba74d2bcbd1 /scripts/update-linux-headers.sh | |
parent | Merge remote-tracking branch 'remotes/ericb/tags/pull-qapi-2018-03-12-v4' int... (diff) | |
download | qemu-d1fd31f82219c306aed7c35c370852d2f8d331a8.tar.gz qemu-d1fd31f82219c306aed7c35c370852d2f8d331a8.tar.xz qemu-d1fd31f82219c306aed7c35c370852d2f8d331a8.zip |
RISC-V: Fix riscv_isa_string memory size bug
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 <palmer@sifive.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Clark <mjc@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMM: Use qemu_tolower() rather than tolower()]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/update-linux-headers.sh')
0 files changed, 0 insertions, 0 deletions