if size is not None:
self.add_memory_region(name, address, size)
- def register_rom(self, interface, rom_size=0x10000):
+ def register_rom(self, interface, rom_size=0xa000):
self.add_wb_slave(mem_decoder(self.mem_map["rom"]), interface)
self.add_memory_region("rom", self.cpu_reset_address, rom_size)
clang = ""
elif cpu_type == "or1k":
triple = "or1k-linux"
- cpuflags = "-fPIC -mhard-mul -mhard-div"
+ cpuflags = "-mhard-mul -mhard-div"
clang = "1"
else:
raise ValueError("Unsupported CPU type: "+cpu_type)
INCLUDE generated/output_format.ld
ENTRY(_start)
-__DYNAMIC = 0;
-
INCLUDE generated/regions.ld
SECTIONS
_etext = .;
} > rom
- .got :
- {
- _GLOBAL_OFFSET_TABLE_ = .;
- *(.got)
- } > rom
-
- .got.plt :
- {
- *(.got.plt)
- } > rom
-
.rodata :
{
. = ALIGN(4);