Ignore SFENCE rs1 argument when VM is disabled (#1552)
Using SFENCE with rs1 != x0 relies on reusing the TLB hit path, but it's not possible to hit when VM is disabled, so the logic did the wrong thing. The simple fix is to flush the whole TLB when using SFENCE when VM is disabled. This shouldn't be an important performance case, because SFENCE is nearly only used when VM is enabled (for obvious reasons).
parent
248c9c96
Please register or sign in to comment