Revision 1f28fac8 hw/petalogix_s3adsp1800_mmu.c
b/hw/petalogix_s3adsp1800_mmu.c | ||
---|---|---|
42 | 42 |
|
43 | 43 |
#define BINARY_DEVICE_TREE_FILE "petalogix-s3adsp1800.dtb" |
44 | 44 |
|
45 |
static void machine_cpu_reset(CPUState *env) |
|
46 |
{ |
|
47 |
/* FIXME: move to machine specfic cpu reset */ |
|
48 |
env->pvr.regs[10] = 0x0c000000; /* spartan 3a dsp family. */ |
|
49 |
} |
|
50 |
|
|
45 | 51 |
static void |
46 | 52 |
petalogix_s3adsp1800_init(ram_addr_t ram_size, |
47 | 53 |
const char *boot_device, |
... | ... | |
53 | 59 |
CPUState *env; |
54 | 60 |
DriveInfo *dinfo; |
55 | 61 |
int i; |
62 |
/* FIXME: remove harcoded magic numbers */ |
|
56 | 63 |
target_phys_addr_t ddr_base = 0x90000000; |
57 | 64 |
MemoryRegion *phys_lmb_bram = g_new(MemoryRegion, 1); |
58 | 65 |
MemoryRegion *phys_ram = g_new(MemoryRegion, 1); |
... | ... | |
65 | 72 |
} |
66 | 73 |
env = cpu_init(cpu_model); |
67 | 74 |
|
68 |
/* FIXME: move to machine specfic cpu reset */ |
|
69 |
env->pvr.regs[10] = 0x0c000000; /* spartan 3a dsp family. */ |
|
70 |
|
|
71 | 75 |
/* Attach emulated BRAM through the LMB. */ |
72 | 76 |
memory_region_init_ram(phys_lmb_bram, |
73 | 77 |
"petalogix_s3adsp1800.lmb_bram", LMB_BRAM_SIZE); |
... | ... | |
97 | 101 |
xilinx_ethlite_create(&nd_table[0], 0x81000000, irq[1], 0, 0); |
98 | 102 |
|
99 | 103 |
microblaze_load_kernel(env, ddr_base, ram_size, |
100 |
BINARY_DEVICE_TREE_FILE, NULL);
|
|
104 |
BINARY_DEVICE_TREE_FILE, machine_cpu_reset);
|
|
101 | 105 |
} |
102 | 106 |
|
103 | 107 |
static QEMUMachine petalogix_s3adsp1800_machine = { |
Also available in: Unified diff