opentitan.c (10cd282ee44e4bc4a4b9751bccfcc597b4e7f830) | opentitan.c (91a3387dc42b261e95eb402bf7d043b3a043209c) |
---|---|
1/* 2 * QEMU RISC-V Board Compatible with OpenTitan FPGA platform 3 * 4 * Copyright (c) 2020 Western Digital 5 * 6 * Provides a board compatible with the OpenTitan FPGA platform: 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 128 unchanged lines hidden (view full) --- 137 MemoryRegion *sys_mem = get_system_memory(); 138 int i; 139 140 object_property_set_str(OBJECT(&s->cpus), "cpu-type", ms->cpu_type, 141 &error_abort); 142 object_property_set_int(OBJECT(&s->cpus), "num-harts", ms->smp.cpus, 143 &error_abort); 144 object_property_set_int(OBJECT(&s->cpus), "resetvec", 0x8080, &error_abort); | 1/* 2 * QEMU RISC-V Board Compatible with OpenTitan FPGA platform 3 * 4 * Copyright (c) 2020 Western Digital 5 * 6 * Provides a board compatible with the OpenTitan FPGA platform: 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 128 unchanged lines hidden (view full) --- 137 MemoryRegion *sys_mem = get_system_memory(); 138 int i; 139 140 object_property_set_str(OBJECT(&s->cpus), "cpu-type", ms->cpu_type, 141 &error_abort); 142 object_property_set_int(OBJECT(&s->cpus), "num-harts", ms->smp.cpus, 143 &error_abort); 144 object_property_set_int(OBJECT(&s->cpus), "resetvec", 0x8080, &error_abort); |
145 sysbus_realize(SYS_BUS_DEVICE(&s->cpus), &error_abort); | 145 sysbus_realize(SYS_BUS_DEVICE(&s->cpus), &error_fatal); |
146 147 /* Boot ROM */ 148 memory_region_init_rom(&s->rom, OBJECT(dev_soc), "riscv.lowrisc.ibex.rom", 149 memmap[IBEX_DEV_ROM].size, &error_fatal); 150 memory_region_add_subregion(sys_mem, 151 memmap[IBEX_DEV_ROM].base, &s->rom); 152 153 /* Flash memory */ --- 165 unchanged lines hidden --- | 146 147 /* Boot ROM */ 148 memory_region_init_rom(&s->rom, OBJECT(dev_soc), "riscv.lowrisc.ibex.rom", 149 memmap[IBEX_DEV_ROM].size, &error_fatal); 150 memory_region_add_subregion(sys_mem, 151 memmap[IBEX_DEV_ROM].base, &s->rom); 152 153 /* Flash memory */ --- 165 unchanged lines hidden --- |