From 9388a9f28a6d62f95e4145d342edd6bca452f74a Mon Sep 17 00:00:00 2001 From: Thomas Fleming Date: Tue, 30 Mar 2021 22:49:47 -0400 Subject: [PATCH] Disable 'always-on' virtual memory --- wally-pipelined/src/mmu/tlb.sv | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wally-pipelined/src/mmu/tlb.sv b/wally-pipelined/src/mmu/tlb.sv index d510eb2c9..4fb1b6fe5 100644 --- a/wally-pipelined/src/mmu/tlb.sv +++ b/wally-pipelined/src/mmu/tlb.sv @@ -85,7 +85,6 @@ module tlb #(parameter ENTRY_BITS = 3) ( logic SvMode; logic Translate; - /* generate if (`XLEN == 32) begin assign SvMode = SATP_REGW[31]; // *** change to an enum somehow? @@ -93,10 +92,9 @@ module tlb #(parameter ENTRY_BITS = 3) ( assign SvMode = SATP_REGW[63]; // currently just a boolean whether translation enabled end endgenerate - */ // *** Currently fake virtual memory being on for testing purposes // *** DO NOT ENABLE UNLESS TESTING - assign SvMode = 1; + // assign SvMode = 1; assign Translate = SvMode & (PrivilegeModeW != `M_MODE);