ppc/ppc405: Rework ppc_40x_timers_init() to use a PowerPCCPU
commitb1273a5e13b7245e93f777c3eaa1c1477157b3de
authorCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (4 07:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (4 07:55 +0100)
tree900b9aedc9f8344d3f9173b6c71f618d24cc9f34
parentcbd8f17d16c890e6d9316627e2d4def6f965988d
ppc/ppc405: Rework ppc_40x_timers_init() to use a PowerPCCPU

This is a small cleanup to ease reading. It includes the removal of a
check done on the returned value of g_malloc0(), which can not fail.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20211222064025.1541490-6-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220103063441.3424853-7-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/ppc.c