From ae244082edd0d3e4f0b1d366859d87401ea381dc Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 7 Sep 2020 16:12:56 +0800 Subject: [PATCH] more cpu options --- libboard_zynq/src/mpcore.rs | 2 +- libcortex_a9/src/mmu.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libboard_zynq/src/mpcore.rs b/libboard_zynq/src/mpcore.rs index 10d3eac..e7f39bb 100644 --- a/libboard_zynq/src/mpcore.rs +++ b/libboard_zynq/src/mpcore.rs @@ -154,7 +154,7 @@ register_bit!(scu_control, enable, 0); impl ScuControl { pub fn start(&mut self) { - self.modify(|_, w| w.enable(true)); + self.modify(|_, w| w.enable(true).scu_speculative_linefill_enable(true)); } } diff --git a/libcortex_a9/src/mmu.rs b/libcortex_a9/src/mmu.rs index 8780066..4c72e48 100644 --- a/libcortex_a9/src/mmu.rs +++ b/libcortex_a9/src/mmu.rs @@ -158,7 +158,7 @@ impl L1Table { global: true, shareable: true, access: AccessPermissions::FullAccess, - tex: 0b101, + tex: 0b0, domain: 0b1111, exec: true, cacheable: true, @@ -213,7 +213,7 @@ impl L1Table { access: AccessPermissions::FullAccess, tex: 0, domain: 0, - exec: true, + exec: false, cacheable: false, bufferable: true, });