From 2205294134d69dd3582f3f693cad5fa6077fd61f Mon Sep 17 00:00:00 2001 From: Avimitin Date: Thu, 21 Nov 2024 19:18:58 +0800 Subject: [PATCH] fixup! fix sram Signed-off-by: Avimitin --- difftest/dpi_t1rocketemu/src/bus.rs | 2 +- tests/t1.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/difftest/dpi_t1rocketemu/src/bus.rs b/difftest/dpi_t1rocketemu/src/bus.rs index e7e60bd88..2c1b07cd7 100644 --- a/difftest/dpi_t1rocketemu/src/bus.rs +++ b/difftest/dpi_t1rocketemu/src/bus.rs @@ -36,7 +36,7 @@ impl ShadowBus { pub fn new() -> Self { const DDR_SIZE: usize = 0x80000000; const SCALAR_SIZE: usize = 0x20000000; - const SRAM_SIZE: usize = 0x40000000; + const SRAM_SIZE: usize = 0x32000000; Self { devices: [ diff --git a/tests/t1.ld b/tests/t1.ld index 4ab04c2cb..266189630 100644 --- a/tests/t1.ld +++ b/tests/t1.ld @@ -5,7 +5,7 @@ MEMORY { SCALAR (RWX) : ORIGIN = 0x20000000, LENGTH = 512M /* put first to set it as default */ MMIO (RW) : ORIGIN = 0x00000000, LENGTH = 512M DDR (RW) : ORIGIN = 0x40000000, LENGTH = 2048M - SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 1024M /* TODO: read from config */ + SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 800M /* TODO: read from config */ } SECTIONS {