diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-14 02:39:57 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-11 00:23:04 +0200 |
commit | 3aaa8dfae955d7bec462cc4e2fce185ef6d41b5a (patch) | |
tree | 0cdd65f87cc18ed8d8f1a7476a6348b848588dc2 /hw/arm_boot.c | |
parent | 17c2f0bf37182d46d66998bf037b2cac520d2183 (diff) |
arm_boot: Pass ARMCPU to arm_load_kernel()
In particular this simplifies the &s->mpu->cpu->env expression again.
first_cpu and ->next_cpu are expected to be QOM'ified later.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Igor Mitsyanko <i.mitsyanko@samsung.com> (for exynos)
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm_boot.c')
-rw-r--r-- | hw/arm_boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 8eabfb204f..d0e643ba11 100644 --- a/hw/arm_boot.c +++ b/hw/arm_boot.c @@ -303,9 +303,9 @@ static void do_cpu_reset(void *opaque) } } -void arm_load_kernel(CPUARMState *env, struct arm_boot_info *info) +void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info) { - ARMCPU *cpu = arm_env_get_cpu(env); + CPUARMState *env = &cpu->env; int kernel_size; int initrd_size; int n; |