aboutsummaryrefslogtreecommitdiff
path: root/hw/tosa.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 23:47:04 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-04 23:00:40 +0200
commit43824588af2fa77f9586e16ef2f01d1990c6460e (patch)
treeb81b86b0e85995fd730c7e12b9e6ee0b27bb0bff /hw/tosa.c
parentdf90dadb4507afa31fdc85f94d8571e7aa25b80b (diff)
pxa2xx: Use cpu_arm_init() and store ARMCPU
Also use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/tosa.c')
-rw-r--r--hw/tosa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tosa.c b/hw/tosa.c
index 6baa17d6b5..d1ede8dc08 100644
--- a/hw/tosa.c
+++ b/hw/tosa.c
@@ -242,7 +242,7 @@ static void tosa_init(ram_addr_t ram_size,
tosa_binfo.kernel_cmdline = kernel_cmdline;
tosa_binfo.initrd_filename = initrd_filename;
tosa_binfo.board_id = 0x208;
- arm_load_kernel(cpu->env, &tosa_binfo);
+ arm_load_kernel(&cpu->cpu->env, &tosa_binfo);
sl_bootparam_write(SL_PXA_PARAM_BASE);
}