arm: fix malloc type mismatch
commit7e3ef27c7c1ccbac589ad0a67c40b5df57e2af71
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 May 2018 13:50:52 +0000 (31 14:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 31 May 2018 13:50:52 +0000 (31 14:50 +0100)
tree819449d0915fdb71cafda5e2ec4b7fa05cec3569
parent60b8fe49cca0cca360adcf9e58fbe5d1612df36d
arm: fix malloc type mismatch

cpregs_keys is an uint32_t* so the allocation should use uint32_t.
g_new is even better because it is type-safe.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/gdbstub.c