Fixed up the physical address generation for 64 bit page table walker.

This commit is contained in:
Ross Thompson 2021-07-02 15:49:32 -05:00
parent 8e3149517a
commit cf688bd3f6

View File

@ -546,7 +546,7 @@ module pagetablewalker
// Assign outputs to ahblite
// *** Currently truncate address to 32 bits. This must be changed if
// we support larger physical address spaces
assign MMUPAdr = {{(`XLEN-32){1'b0}}, TranslationPAdr[31:0]};
assign MMUPAdr = {{(`XLEN-`PA_BITS){1'b0}}, TranslationPAdr[`PA_BITS-1:0]};
end
endgenerate