Revision 3ed60733
b/hw/petalogix_s3adsp1800_mmu.c | ||
---|---|---|
62 | 62 |
const char *initrd_filename, const char *cpu_model) |
63 | 63 |
{ |
64 | 64 |
DeviceState *dev; |
65 |
MicroBlazeCPU *cpu; |
|
65 | 66 |
CPUMBState *env; |
66 | 67 |
DriveInfo *dinfo; |
67 | 68 |
int i; |
... | ... | |
75 | 76 |
if (cpu_model == NULL) { |
76 | 77 |
cpu_model = "microblaze"; |
77 | 78 |
} |
78 |
env = cpu_init(cpu_model); |
|
79 |
cpu = cpu_mb_init(cpu_model); |
|
80 |
env = &cpu->env; |
|
79 | 81 |
|
80 | 82 |
/* Attach emulated BRAM through the LMB. */ |
81 | 83 |
memory_region_init_ram(phys_lmb_bram, |
Also available in: Unified diff