hw/xtensa: sim: use g_string/g_new
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 8 May 2017 18:00:56 +0000 (11:00 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 4 Jun 2017 15:42:55 +0000 (18:42 +0300)
commitbb0b6f39c032c18e3a72c5ebef4e4968a9dcb4d0
treeca7bb80856a302b8848064b1a05628dc801f9a06
parent95e9a242e2a393c7d4e5cc04340e39c3a9420f03
hw/xtensa: sim: use g_string/g_new

Replace malloc/free/sprintf with g_string/g_string_printf/g_string_free.
Replace g_malloc with g_new when allocating the MemoryRegion to get more
type safety.

Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/xtensa/sim.c
This page took 0.024185 seconds and 4 git commands to generate.