Merge pull request #276 from gsomlo/gls-rocket-map

cpu/rocket: swap main_mem and io regions
This commit is contained in:
enjoy-digital 2019-10-09 21:25:57 +02:00 committed by GitHub
commit 37531cec81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -56,15 +56,17 @@ class RocketRV64(CPU):
endianness = "little"
gcc_triple = ("riscv64-unknown-elf")
linker_output_format = "elf64-littleriscv"
io_regions = {0x80000000: 0x80000000} # origin, length
io_regions = {0x10000000: 0x70000000} # origin, length
@property
def mem_map(self):
# Rocket reserves the first 256Mbytes for internal use, so we must change default mem_map.
return {
"rom" : 0x10000000,
"sram" : 0x11000000,
"csr" : 0x92000000,
"rom" : 0x10000000,
"sram" : 0x11000000,
"csr" : 0x12000000,
"ethmac" : 0x30000000,
"main_ram" : 0x80000000,
}
@property

@ -1 +1 @@
Subproject commit b17b6984b9b7b0d0c259306ba94187abae7f37f5
Subproject commit d67a7d7a12ff06297226b1862412849c4d50e949