Skip to content

Commit

Permalink
Correct HMR base address in memory map.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Dec 5, 2023
1 parent 08b004a commit d5eb867
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hw/bootrom/cheshire_bootrom.sv
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module cheshire_bootrom #(
053: data_o = 32'h0397f322 /* 0x00d4 */;
054: data_o = 32'h83930100 /* 0x00d8 */;
055: data_o = 32'ha383f2a3 /* 0x00dc */;
056: data_o = 32'hc31704c3 /* 0x00e0 */;
056: data_o = 32'hb31704c3 /* 0x00e0 */;
057: data_o = 32'h03130100 /* 0x00e4 */;
058: data_o = 32'h2303f1e3 /* 0x00e8 */;
059: data_o = 32'hd3b32003 /* 0x00ec */;
Expand Down
2 changes: 1 addition & 1 deletion hw/cheshire_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ package cheshire_pkg;
localparam doub_bt AmSlink = 'h0300_6000;
localparam doub_bt AmBusErr = 'h0300_8000;
localparam doub_bt AmTagger = 'h0300_A000;
localparam doub_bt AmHmrUnit = 'h0300_C000;
localparam doub_bt AmHmrUnit = 'h0300_B000;
localparam doub_bt AmSpm = 'h1000_0000; // Cached region at bottom, uncached on top
localparam doub_bt AmClic = 'h0800_0000;

Expand Down
1 change: 1 addition & 0 deletions sw/include/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extern void *__base_gpio;
extern void *__base_slink;
extern void *__base_vga;
extern void *__base_clint;
extern void *__base_hmr;
extern void *__base_plic;
extern void *__base_dma;
extern void *__base_axirt;
Expand Down
2 changes: 1 addition & 1 deletion sw/link/common.ldh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SECTIONS {
__base_gpio = 0x03005000;
__base_slink = 0x03006000;
__base_vga = 0x03007000;
__base_hmr = 0x0300C000;
__base_hmr = 0x0300B000;
__base_plic = 0x04000000;
__base_spm = ORIGIN(spm);
__base_dram = ORIGIN(dram);
Expand Down

0 comments on commit d5eb867

Please sign in to comment.