mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 07:40:34 +00:00
petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU
Needed for microblaze_load_kernel(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
a9480e5d32
commit
3ed607333e
@ -62,6 +62,7 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
|
|||||||
const char *initrd_filename, const char *cpu_model)
|
const char *initrd_filename, const char *cpu_model)
|
||||||
{
|
{
|
||||||
DeviceState *dev;
|
DeviceState *dev;
|
||||||
|
MicroBlazeCPU *cpu;
|
||||||
CPUMBState *env;
|
CPUMBState *env;
|
||||||
DriveInfo *dinfo;
|
DriveInfo *dinfo;
|
||||||
int i;
|
int i;
|
||||||
@ -75,7 +76,8 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
|
|||||||
if (cpu_model == NULL) {
|
if (cpu_model == NULL) {
|
||||||
cpu_model = "microblaze";
|
cpu_model = "microblaze";
|
||||||
}
|
}
|
||||||
env = cpu_init(cpu_model);
|
cpu = cpu_mb_init(cpu_model);
|
||||||
|
env = &cpu->env;
|
||||||
|
|
||||||
/* Attach emulated BRAM through the LMB. */
|
/* Attach emulated BRAM through the LMB. */
|
||||||
memory_region_init_ram(phys_lmb_bram,
|
memory_region_init_ram(phys_lmb_bram,
|
||||||
|
Loading…
Reference in New Issue
Block a user