Permalink
Browse files

milkymist: Use cpu_lm32_init() to obtain LM32CPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael Walle <michael@walle.cc>
  • Loading branch information...
1 parent 094e60b commit 759cf63e1f554be3682b92b6b6457e838d069c22 @afaerber afaerber committed May 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 hw/milkymist.c
View
@@ -79,6 +79,7 @@ milkymist_init(ram_addr_t ram_size_not_used,
const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
+ LM32CPU *cpu;
CPULM32State *env;
int kernel_size;
DriveInfo *dinfo;
@@ -105,7 +106,8 @@ milkymist_init(ram_addr_t ram_size_not_used,
if (cpu_model == NULL) {
cpu_model = "lm32-full";
}
- env = cpu_init(cpu_model);
+ cpu = cpu_lm32_init(cpu_model);
+ env = &cpu->env;
reset_info->env = env;
cpu_lm32_set_phys_msb_ignore(env, 1);

0 comments on commit 759cf63

Please sign in to comment.