summaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-05-10 12:56:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-05-10 12:56:09 +0000
commitad37ad5b25592d2829989111b8386b8007ea0d83 (patch)
tree44dcb9c5689e3d21a49b8a5125df0f5d13ebccec /cputlb.c
parent7e598de023e4f3f612be7f16acea2ec5dac010ec (diff)
downloadqemu-ad37ad5b25592d2829989111b8386b8007ea0d83.tar.gz
target-arm/cpu.h: Make cpu_init("nonexistent cpu") return NULL
The macro definition of cpu_init meant that if cpu_arm_init() returned NULL this wouldn't result in cpu_init() itself returning NULL. This had the effect that "-cpu foo" for some unknown CPU name 'foo' would cause ARM targets to segfault rather than generating a useful error message. Fix this by making cpu_init a simple inline function. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cputlb.c')
0 files changed, 0 insertions, 0 deletions