From 43824588af2fa77f9586e16ef2f01d1990c6460e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 3 May 2012 23:47:04 +0200 Subject: pxa2xx: Use cpu_arm_init() and store ARMCPU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/spitz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/spitz.c') diff --git a/hw/spitz.c b/hw/spitz.c index 1d6d2b0..9042d44 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -932,7 +932,7 @@ static void spitz_common_init(ram_addr_t ram_size, spitz_binfo.kernel_cmdline = kernel_cmdline; spitz_binfo.initrd_filename = initrd_filename; spitz_binfo.board_id = arm_id; - arm_load_kernel(cpu->env, &spitz_binfo); + arm_load_kernel(&cpu->cpu->env, &spitz_binfo); sl_bootparam_write(SL_PXA_PARAM_BASE); } -- cgit v1.1