2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the Open Source and Linux Lab nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 #include "qemu/osdep.h"
29 #include "qemu/units.h"
30 #include "qapi/error.h"
32 #include "sysemu/sysemu.h"
33 #include "hw/boards.h"
34 #include "hw/loader.h"
36 #include "exec/memory.h"
37 #include "exec/address-spaces.h"
38 #include "hw/char/serial.h"
40 #include "hw/sysbus.h"
41 #include "hw/block/flash.h"
42 #include "chardev/char.h"
43 #include "sysemu/device_tree.h"
44 #include "qemu/error-report.h"
45 #include "qemu/option.h"
46 #include "bootparam.h"
47 #include "xtensa_memory.h"
49 typedef struct XtfpgaFlashDesc
{
56 typedef struct XtfpgaBoardDesc
{
57 const XtfpgaFlashDesc
*flash
;
62 typedef struct XtfpgaFpgaState
{
68 static void xtfpga_fpga_reset(void *opaque
)
70 XtfpgaFpgaState
*s
= opaque
;
76 static uint64_t xtfpga_fpga_read(void *opaque
, hwaddr addr
,
79 XtfpgaFpgaState
*s
= opaque
;
82 case 0x0: /*build date code*/
85 case 0x4: /*processor clock frequency, Hz*/
88 case 0x8: /*LEDs (off = 0, on = 1)*/
91 case 0xc: /*DIP switches (off = 0, on = 1)*/
97 static void xtfpga_fpga_write(void *opaque
, hwaddr addr
,
98 uint64_t val
, unsigned size
)
100 XtfpgaFpgaState
*s
= opaque
;
103 case 0x8: /*LEDs (off = 0, on = 1)*/
107 case 0x10: /*board reset*/
109 qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET
);
115 static const MemoryRegionOps xtfpga_fpga_ops
= {
116 .read
= xtfpga_fpga_read
,
117 .write
= xtfpga_fpga_write
,
118 .endianness
= DEVICE_NATIVE_ENDIAN
,
121 static XtfpgaFpgaState
*xtfpga_fpga_init(MemoryRegion
*address_space
,
124 XtfpgaFpgaState
*s
= g_malloc(sizeof(XtfpgaFpgaState
));
126 memory_region_init_io(&s
->iomem
, NULL
, &xtfpga_fpga_ops
, s
,
127 "xtfpga.fpga", 0x10000);
128 memory_region_add_subregion(address_space
, base
, &s
->iomem
);
129 xtfpga_fpga_reset(s
);
130 qemu_register_reset(xtfpga_fpga_reset
, s
);
134 static void xtfpga_net_init(MemoryRegion
*address_space
,
138 qemu_irq irq
, NICInfo
*nd
)
144 dev
= qdev_create(NULL
, "open_eth");
145 qdev_set_nic_properties(dev
, nd
);
146 qdev_init_nofail(dev
);
148 s
= SYS_BUS_DEVICE(dev
);
149 sysbus_connect_irq(s
, 0, irq
);
150 memory_region_add_subregion(address_space
, base
,
151 sysbus_mmio_get_region(s
, 0));
152 memory_region_add_subregion(address_space
, descriptors
,
153 sysbus_mmio_get_region(s
, 1));
155 ram
= g_malloc(sizeof(*ram
));
156 memory_region_init_ram_nomigrate(ram
, OBJECT(s
), "open_eth.ram", 16 * KiB
,
158 vmstate_register_ram_global(ram
);
159 memory_region_add_subregion(address_space
, buffers
, ram
);
162 static pflash_t
*xtfpga_flash_init(MemoryRegion
*address_space
,
163 const XtfpgaBoardDesc
*board
,
164 DriveInfo
*dinfo
, int be
)
167 DeviceState
*dev
= qdev_create(NULL
, "cfi.pflash01");
169 qdev_prop_set_drive(dev
, "drive", blk_by_legacy_dinfo(dinfo
),
171 qdev_prop_set_uint32(dev
, "num-blocks",
172 board
->flash
->size
/ board
->flash
->sector_size
);
173 qdev_prop_set_uint64(dev
, "sector-length", board
->flash
->sector_size
);
174 qdev_prop_set_uint8(dev
, "width", 2);
175 qdev_prop_set_bit(dev
, "big-endian", be
);
176 qdev_prop_set_string(dev
, "name", "xtfpga.io.flash");
177 qdev_init_nofail(dev
);
178 s
= SYS_BUS_DEVICE(dev
);
179 memory_region_add_subregion(address_space
, board
->flash
->base
,
180 sysbus_mmio_get_region(s
, 0));
181 return OBJECT_CHECK(pflash_t
, (dev
), "cfi.pflash01");
184 static uint64_t translate_phys_addr(void *opaque
, uint64_t addr
)
186 XtensaCPU
*cpu
= opaque
;
188 return cpu_get_phys_page_debug(CPU(cpu
), addr
);
191 static void xtfpga_reset(void *opaque
)
193 XtensaCPU
*cpu
= opaque
;
198 static uint64_t xtfpga_io_read(void *opaque
, hwaddr addr
,
204 static void xtfpga_io_write(void *opaque
, hwaddr addr
,
205 uint64_t val
, unsigned size
)
209 static const MemoryRegionOps xtfpga_io_ops
= {
210 .read
= xtfpga_io_read
,
211 .write
= xtfpga_io_write
,
212 .endianness
= DEVICE_NATIVE_ENDIAN
,
215 static void xtfpga_init(const XtfpgaBoardDesc
*board
, MachineState
*machine
)
217 #ifdef TARGET_WORDS_BIGENDIAN
222 MemoryRegion
*system_memory
= get_system_memory();
223 XtensaCPU
*cpu
= NULL
;
224 CPUXtensaState
*env
= NULL
;
225 MemoryRegion
*system_io
;
227 pflash_t
*flash
= NULL
;
228 QemuOpts
*machine_opts
= qemu_get_machine_opts();
229 const char *kernel_filename
= qemu_opt_get(machine_opts
, "kernel");
230 const char *kernel_cmdline
= qemu_opt_get(machine_opts
, "append");
231 const char *dtb_filename
= qemu_opt_get(machine_opts
, "dtb");
232 const char *initrd_filename
= qemu_opt_get(machine_opts
, "initrd");
233 const unsigned system_io_size
= 224 * MiB
;
236 for (n
= 0; n
< smp_cpus
; n
++) {
237 cpu
= XTENSA_CPU(cpu_create(machine
->cpu_type
));
240 env
->sregs
[PRID
] = n
;
241 qemu_register_reset(xtfpga_reset
, cpu
);
242 /* Need MMU initialized prior to ELF loading,
243 * so that ELF gets loaded into virtual addresses
249 XtensaMemory sysram
= env
->config
->sysram
;
251 sysram
.location
[0].size
= machine
->ram_size
;
252 xtensa_create_memory_regions(&env
->config
->instrom
, "xtensa.instrom",
254 xtensa_create_memory_regions(&env
->config
->instram
, "xtensa.instram",
256 xtensa_create_memory_regions(&env
->config
->datarom
, "xtensa.datarom",
258 xtensa_create_memory_regions(&env
->config
->dataram
, "xtensa.dataram",
260 xtensa_create_memory_regions(&sysram
, "xtensa.sysram",
264 system_io
= g_malloc(sizeof(*system_io
));
265 memory_region_init_io(system_io
, NULL
, &xtfpga_io_ops
, NULL
, "xtfpga.io",
267 memory_region_add_subregion(system_memory
, board
->io
[0], system_io
);
269 MemoryRegion
*io
= g_malloc(sizeof(*io
));
271 memory_region_init_alias(io
, NULL
, "xtfpga.io.cached",
272 system_io
, 0, system_io_size
);
273 memory_region_add_subregion(system_memory
, board
->io
[1], io
);
275 xtfpga_fpga_init(system_io
, 0x0d020000);
276 if (nd_table
[0].used
) {
277 xtfpga_net_init(system_io
, 0x0d030000, 0x0d030400, 0x0d800000,
278 xtensa_get_extint(env
, 1), nd_table
);
281 serial_mm_init(system_io
, 0x0d050020, 2, xtensa_get_extint(env
, 0),
282 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN
);
284 dinfo
= drive_get(IF_PFLASH
, 0, 0);
286 flash
= xtfpga_flash_init(system_io
, board
, dinfo
, be
);
289 /* Use presence of kernel file name as 'boot from SRAM' switch. */
290 if (kernel_filename
) {
291 uint32_t entry_point
= env
->pc
;
292 size_t bp_size
= 3 * get_tag_size(0); /* first/last and memory tags */
293 uint32_t tagptr
= env
->config
->sysrom
.location
[0].addr
+
296 BpMemInfo memory_location
= {
297 .type
= tswap32(MEMORY_TYPE_CONVENTIONAL
),
298 .start
= tswap32(env
->config
->sysram
.location
[0].addr
),
299 .end
= tswap32(env
->config
->sysram
.location
[0].addr
+
302 uint32_t lowmem_end
= machine
->ram_size
< 0x08000000 ?
303 machine
->ram_size
: 0x08000000;
304 uint32_t cur_lowmem
= QEMU_ALIGN_UP(lowmem_end
/ 2, 4096);
306 lowmem_end
+= env
->config
->sysram
.location
[0].addr
;
307 cur_lowmem
+= env
->config
->sysram
.location
[0].addr
;
309 xtensa_create_memory_regions(&env
->config
->sysrom
, "xtensa.sysrom",
312 if (kernel_cmdline
) {
313 bp_size
+= get_tag_size(strlen(kernel_cmdline
) + 1);
316 bp_size
+= get_tag_size(sizeof(uint32_t));
318 if (initrd_filename
) {
319 bp_size
+= get_tag_size(sizeof(BpMemInfo
));
322 /* Put kernel bootparameters to the end of that SRAM */
323 tagptr
= (tagptr
- bp_size
) & ~0xff;
324 cur_tagptr
= put_tag(tagptr
, BP_TAG_FIRST
, 0, NULL
);
325 cur_tagptr
= put_tag(cur_tagptr
, BP_TAG_MEMORY
,
326 sizeof(memory_location
), &memory_location
);
328 if (kernel_cmdline
) {
329 cur_tagptr
= put_tag(cur_tagptr
, BP_TAG_COMMAND_LINE
,
330 strlen(kernel_cmdline
) + 1, kernel_cmdline
);
335 void *fdt
= load_device_tree(dtb_filename
, &fdt_size
);
336 uint32_t dtb_addr
= tswap32(cur_lowmem
);
339 error_report("could not load DTB '%s'", dtb_filename
);
343 cpu_physical_memory_write(cur_lowmem
, fdt
, fdt_size
);
344 cur_tagptr
= put_tag(cur_tagptr
, BP_TAG_FDT
,
345 sizeof(dtb_addr
), &dtb_addr
);
346 cur_lowmem
= QEMU_ALIGN_UP(cur_lowmem
+ fdt_size
, 4 * KiB
);
350 error_report("could not load DTB '%s': "
351 "FDT support is not configured in QEMU",
356 if (initrd_filename
) {
357 BpMemInfo initrd_location
= { 0 };
358 int initrd_size
= load_ramdisk(initrd_filename
, cur_lowmem
,
359 lowmem_end
- cur_lowmem
);
361 if (initrd_size
< 0) {
362 initrd_size
= load_image_targphys(initrd_filename
,
364 lowmem_end
- cur_lowmem
);
366 if (initrd_size
< 0) {
367 error_report("could not load initrd '%s'", initrd_filename
);
370 initrd_location
.start
= tswap32(cur_lowmem
);
371 initrd_location
.end
= tswap32(cur_lowmem
+ initrd_size
);
372 cur_tagptr
= put_tag(cur_tagptr
, BP_TAG_INITRD
,
373 sizeof(initrd_location
), &initrd_location
);
374 cur_lowmem
= QEMU_ALIGN_UP(cur_lowmem
+ initrd_size
, 4 * KiB
);
376 cur_tagptr
= put_tag(cur_tagptr
, BP_TAG_LAST
, 0, NULL
);
377 env
->regs
[2] = tagptr
;
380 uint64_t elf_lowaddr
;
381 int success
= load_elf(kernel_filename
, translate_phys_addr
, cpu
,
382 &elf_entry
, &elf_lowaddr
, NULL
, be
, EM_XTENSA
, 0, 0);
384 entry_point
= elf_entry
;
388 success
= load_uimage(kernel_filename
, &ep
, NULL
, &is_linux
,
389 translate_phys_addr
, cpu
);
390 if (success
> 0 && is_linux
) {
393 error_report("could not load kernel '%s'",
398 if (entry_point
!= env
->pc
) {
400 #ifdef TARGET_WORDS_BIGENDIAN
401 0x60, 0x00, 0x08, /* j 1f */
402 0x00, /* .literal_position */
403 0x00, 0x00, 0x00, 0x00, /* .literal entry_pc */
404 0x00, 0x00, 0x00, 0x00, /* .literal entry_a2 */
406 0x10, 0xff, 0xfe, /* l32r a0, entry_pc */
407 0x12, 0xff, 0xfe, /* l32r a2, entry_a2 */
408 0x0a, 0x00, 0x00, /* jx a0 */
410 0x06, 0x02, 0x00, /* j 1f */
411 0x00, /* .literal_position */
412 0x00, 0x00, 0x00, 0x00, /* .literal entry_pc */
413 0x00, 0x00, 0x00, 0x00, /* .literal entry_a2 */
415 0x01, 0xfe, 0xff, /* l32r a0, entry_pc */
416 0x21, 0xfe, 0xff, /* l32r a2, entry_a2 */
417 0xa0, 0x00, 0x00, /* jx a0 */
420 uint32_t entry_pc
= tswap32(entry_point
);
421 uint32_t entry_a2
= tswap32(tagptr
);
423 memcpy(boot
+ 4, &entry_pc
, sizeof(entry_pc
));
424 memcpy(boot
+ 8, &entry_a2
, sizeof(entry_a2
));
425 cpu_physical_memory_write(env
->pc
, boot
, sizeof(boot
));
429 MemoryRegion
*flash_mr
= pflash_cfi01_get_memory(flash
);
430 MemoryRegion
*flash_io
= g_malloc(sizeof(*flash_io
));
431 uint32_t size
= env
->config
->sysrom
.location
[0].size
;
433 if (board
->flash
->size
- board
->flash
->boot_base
< size
) {
434 size
= board
->flash
->size
- board
->flash
->boot_base
;
437 memory_region_init_alias(flash_io
, NULL
, "xtfpga.flash",
438 flash_mr
, board
->flash
->boot_base
, size
);
439 memory_region_add_subregion(system_memory
,
440 env
->config
->sysrom
.location
[0].addr
,
443 xtensa_create_memory_regions(&env
->config
->sysrom
, "xtensa.sysrom",
449 static const hwaddr xtfpga_mmu_io
[2] = {
453 static const hwaddr xtfpga_nommu_io
[2] = {
458 static const XtfpgaFlashDesc lx60_flash
= {
461 .sector_size
= 0x10000,
464 static void xtfpga_lx60_init(MachineState
*machine
)
466 static const XtfpgaBoardDesc lx60_board
= {
467 .flash
= &lx60_flash
,
468 .sram_size
= 0x20000,
471 xtfpga_init(&lx60_board
, machine
);
474 static void xtfpga_lx60_nommu_init(MachineState
*machine
)
476 static const XtfpgaBoardDesc lx60_board
= {
477 .flash
= &lx60_flash
,
478 .sram_size
= 0x20000,
479 .io
= xtfpga_nommu_io
,
481 xtfpga_init(&lx60_board
, machine
);
484 static const XtfpgaFlashDesc lx200_flash
= {
487 .sector_size
= 0x20000,
490 static void xtfpga_lx200_init(MachineState
*machine
)
492 static const XtfpgaBoardDesc lx200_board
= {
493 .flash
= &lx200_flash
,
494 .sram_size
= 0x2000000,
497 xtfpga_init(&lx200_board
, machine
);
500 static void xtfpga_lx200_nommu_init(MachineState
*machine
)
502 static const XtfpgaBoardDesc lx200_board
= {
503 .flash
= &lx200_flash
,
504 .sram_size
= 0x2000000,
505 .io
= xtfpga_nommu_io
,
507 xtfpga_init(&lx200_board
, machine
);
510 static const XtfpgaFlashDesc ml605_flash
= {
513 .sector_size
= 0x20000,
516 static void xtfpga_ml605_init(MachineState
*machine
)
518 static const XtfpgaBoardDesc ml605_board
= {
519 .flash
= &ml605_flash
,
520 .sram_size
= 0x2000000,
523 xtfpga_init(&ml605_board
, machine
);
526 static void xtfpga_ml605_nommu_init(MachineState
*machine
)
528 static const XtfpgaBoardDesc ml605_board
= {
529 .flash
= &ml605_flash
,
530 .sram_size
= 0x2000000,
531 .io
= xtfpga_nommu_io
,
533 xtfpga_init(&ml605_board
, machine
);
536 static const XtfpgaFlashDesc kc705_flash
= {
539 .boot_base
= 0x06000000,
540 .sector_size
= 0x20000,
543 static void xtfpga_kc705_init(MachineState
*machine
)
545 static const XtfpgaBoardDesc kc705_board
= {
546 .flash
= &kc705_flash
,
547 .sram_size
= 0x2000000,
550 xtfpga_init(&kc705_board
, machine
);
553 static void xtfpga_kc705_nommu_init(MachineState
*machine
)
555 static const XtfpgaBoardDesc kc705_board
= {
556 .flash
= &kc705_flash
,
557 .sram_size
= 0x2000000,
558 .io
= xtfpga_nommu_io
,
560 xtfpga_init(&kc705_board
, machine
);
563 static void xtfpga_lx60_class_init(ObjectClass
*oc
, void *data
)
565 MachineClass
*mc
= MACHINE_CLASS(oc
);
567 mc
->desc
= "lx60 EVB (" XTENSA_DEFAULT_CPU_MODEL
")";
568 mc
->init
= xtfpga_lx60_init
;
570 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_TYPE
;
573 static const TypeInfo xtfpga_lx60_type
= {
574 .name
= MACHINE_TYPE_NAME("lx60"),
575 .parent
= TYPE_MACHINE
,
576 .class_init
= xtfpga_lx60_class_init
,
579 static void xtfpga_lx60_nommu_class_init(ObjectClass
*oc
, void *data
)
581 MachineClass
*mc
= MACHINE_CLASS(oc
);
583 mc
->desc
= "lx60 noMMU EVB (" XTENSA_DEFAULT_CPU_NOMMU_MODEL
")";
584 mc
->init
= xtfpga_lx60_nommu_init
;
586 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_NOMMU_TYPE
;
589 static const TypeInfo xtfpga_lx60_nommu_type
= {
590 .name
= MACHINE_TYPE_NAME("lx60-nommu"),
591 .parent
= TYPE_MACHINE
,
592 .class_init
= xtfpga_lx60_nommu_class_init
,
595 static void xtfpga_lx200_class_init(ObjectClass
*oc
, void *data
)
597 MachineClass
*mc
= MACHINE_CLASS(oc
);
599 mc
->desc
= "lx200 EVB (" XTENSA_DEFAULT_CPU_MODEL
")";
600 mc
->init
= xtfpga_lx200_init
;
602 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_TYPE
;
605 static const TypeInfo xtfpga_lx200_type
= {
606 .name
= MACHINE_TYPE_NAME("lx200"),
607 .parent
= TYPE_MACHINE
,
608 .class_init
= xtfpga_lx200_class_init
,
611 static void xtfpga_lx200_nommu_class_init(ObjectClass
*oc
, void *data
)
613 MachineClass
*mc
= MACHINE_CLASS(oc
);
615 mc
->desc
= "lx200 noMMU EVB (" XTENSA_DEFAULT_CPU_NOMMU_MODEL
")";
616 mc
->init
= xtfpga_lx200_nommu_init
;
618 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_NOMMU_TYPE
;
621 static const TypeInfo xtfpga_lx200_nommu_type
= {
622 .name
= MACHINE_TYPE_NAME("lx200-nommu"),
623 .parent
= TYPE_MACHINE
,
624 .class_init
= xtfpga_lx200_nommu_class_init
,
627 static void xtfpga_ml605_class_init(ObjectClass
*oc
, void *data
)
629 MachineClass
*mc
= MACHINE_CLASS(oc
);
631 mc
->desc
= "ml605 EVB (" XTENSA_DEFAULT_CPU_MODEL
")";
632 mc
->init
= xtfpga_ml605_init
;
634 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_TYPE
;
637 static const TypeInfo xtfpga_ml605_type
= {
638 .name
= MACHINE_TYPE_NAME("ml605"),
639 .parent
= TYPE_MACHINE
,
640 .class_init
= xtfpga_ml605_class_init
,
643 static void xtfpga_ml605_nommu_class_init(ObjectClass
*oc
, void *data
)
645 MachineClass
*mc
= MACHINE_CLASS(oc
);
647 mc
->desc
= "ml605 noMMU EVB (" XTENSA_DEFAULT_CPU_NOMMU_MODEL
")";
648 mc
->init
= xtfpga_ml605_nommu_init
;
650 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_NOMMU_TYPE
;
653 static const TypeInfo xtfpga_ml605_nommu_type
= {
654 .name
= MACHINE_TYPE_NAME("ml605-nommu"),
655 .parent
= TYPE_MACHINE
,
656 .class_init
= xtfpga_ml605_nommu_class_init
,
659 static void xtfpga_kc705_class_init(ObjectClass
*oc
, void *data
)
661 MachineClass
*mc
= MACHINE_CLASS(oc
);
663 mc
->desc
= "kc705 EVB (" XTENSA_DEFAULT_CPU_MODEL
")";
664 mc
->init
= xtfpga_kc705_init
;
666 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_TYPE
;
669 static const TypeInfo xtfpga_kc705_type
= {
670 .name
= MACHINE_TYPE_NAME("kc705"),
671 .parent
= TYPE_MACHINE
,
672 .class_init
= xtfpga_kc705_class_init
,
675 static void xtfpga_kc705_nommu_class_init(ObjectClass
*oc
, void *data
)
677 MachineClass
*mc
= MACHINE_CLASS(oc
);
679 mc
->desc
= "kc705 noMMU EVB (" XTENSA_DEFAULT_CPU_NOMMU_MODEL
")";
680 mc
->init
= xtfpga_kc705_nommu_init
;
682 mc
->default_cpu_type
= XTENSA_DEFAULT_CPU_NOMMU_TYPE
;
685 static const TypeInfo xtfpga_kc705_nommu_type
= {
686 .name
= MACHINE_TYPE_NAME("kc705-nommu"),
687 .parent
= TYPE_MACHINE
,
688 .class_init
= xtfpga_kc705_nommu_class_init
,
691 static void xtfpga_machines_init(void)
693 type_register_static(&xtfpga_lx60_type
);
694 type_register_static(&xtfpga_lx200_type
);
695 type_register_static(&xtfpga_ml605_type
);
696 type_register_static(&xtfpga_kc705_type
);
697 type_register_static(&xtfpga_lx60_nommu_type
);
698 type_register_static(&xtfpga_lx200_nommu_type
);
699 type_register_static(&xtfpga_ml605_nommu_type
);
700 type_register_static(&xtfpga_kc705_nommu_type
);
703 type_init(xtfpga_machines_init
)