virtex_ml507.c (940d5b132fab085bd8ec2bcfa5c1dd119785b217) | virtex_ml507.c (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5) |
---|---|
1/* 2 * Model of Xilinx Virtex5 ML507 PPC-440 refdesign. 3 * 4 * Copyright (c) 2010 Edgar E. Iglesias. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 214 unchanged lines hidden (view full) --- 223 qemu_register_reset(main_cpu_reset, cpu); 224 225 memory_region_allocate_system_memory(phys_ram, NULL, "ram", ram_size); 226 memory_region_add_subregion(address_space_mem, ram_base, phys_ram); 227 228 dinfo = drive_get(IF_PFLASH, 0, 0); 229 pflash_cfi01_register(PFLASH_BASEADDR, "virtex.flash", FLASH_SIZE, 230 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, | 1/* 2 * Model of Xilinx Virtex5 ML507 PPC-440 refdesign. 3 * 4 * Copyright (c) 2010 Edgar E. Iglesias. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 214 unchanged lines hidden (view full) --- 223 qemu_register_reset(main_cpu_reset, cpu); 224 225 memory_region_allocate_system_memory(phys_ram, NULL, "ram", ram_size); 226 memory_region_add_subregion(address_space_mem, ram_base, phys_ram); 227 228 dinfo = drive_get(IF_PFLASH, 0, 0); 229 pflash_cfi01_register(PFLASH_BASEADDR, "virtex.flash", FLASH_SIZE, 230 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, |
231 64 * KiB, FLASH_SIZE >> 16, 232 1, 0x89, 0x18, 0x0000, 0x0, 1); | 231 64 * KiB, 1, 0x89, 0x18, 0x0000, 0x0, 1); |
233 234 cpu_irq = (qemu_irq *) &env->irq_inputs[PPC40x_INPUT_INT]; 235 dev = qdev_create(NULL, "xlnx.xps-intc"); 236 qdev_prop_set_uint32(dev, "kind-of-intr", 0); 237 qdev_init_nofail(dev); 238 sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, INTC_BASEADDR); 239 sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, cpu_irq[0]); 240 for (i = 0; i < 32; i++) { --- 69 unchanged lines hidden --- | 232 233 cpu_irq = (qemu_irq *) &env->irq_inputs[PPC40x_INPUT_INT]; 234 dev = qdev_create(NULL, "xlnx.xps-intc"); 235 qdev_prop_set_uint32(dev, "kind-of-intr", 0); 236 qdev_init_nofail(dev); 237 sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, INTC_BASEADDR); 238 sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, cpu_irq[0]); 239 for (i = 0; i < 32; i++) { --- 69 unchanged lines hidden --- |