From 9c90994bd5ca5a0c69090afa9934dcc2ddb6c87f Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 21 May 2024 15:59:17 +0800 Subject: [PATCH] reduce size of XIP region in practice, we're not putting a 128M part out there, but merely saving space for that amount of memory chews up 32k of page tracking for something we will never use. Tune that down to 64M, reducing the overhead to 16k. This also matches the largest available HyperRam / FLASH part that we might put into the XIP memory range. --- utralib/cramium/daric.svd | 2 +- utralib/cramium/soc.svd | 2 +- utralib/src/generated/cramium_soc.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utralib/cramium/daric.svd b/utralib/cramium/daric.svd index 6c9ac0d95..31a86453f 100644 --- a/utralib/cramium/daric.svd +++ b/utralib/cramium/daric.svd @@ -16360,7 +16360,7 @@ soc/candidate/mbox_v0.1.sv]]> XIP 0x70000000 - 0x08000000 + 0x04000000 PL230 diff --git a/utralib/cramium/soc.svd b/utralib/cramium/soc.svd index a3aee5a74..46f310771 100644 --- a/utralib/cramium/soc.svd +++ b/utralib/cramium/soc.svd @@ -687,7 +687,7 @@ register to disable individual events.]]> XIP 0x70000000 - 0x08000000 + 0x04000000 VEXRISCV_DEBUG diff --git a/utralib/src/generated/cramium_soc.rs b/utralib/src/generated/cramium_soc.rs index 6cc895ffa..3faeca13f 100644 --- a/utralib/src/generated/cramium_soc.rs +++ b/utralib/src/generated/cramium_soc.rs @@ -311,7 +311,7 @@ pub const HW_SRAM_MEM_LEN: usize = 2097152; pub const HW_RERAM_MEM: usize = 0x60000000; pub const HW_RERAM_MEM_LEN: usize = 4194304; pub const HW_XIP_MEM: usize = 0x70000000; -pub const HW_XIP_MEM_LEN: usize = 134217728; +pub const HW_XIP_MEM_LEN: usize = 67108864; pub const HW_PL230_MEM: usize = 0x40011000; pub const HW_PL230_MEM_LEN: usize = 4096; pub const HW_MDMA_MEM: usize = 0x40012000;