Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports #3266

Merged
merged 8 commits into from
Feb 23, 2023
Merged

Backports #3266

merged 8 commits into from
Feb 23, 2023

Conversation

jerryz123
Copy link
Contributor

Backport changes into master. #3261, #3256, #3246,

sequencer and others added 8 commits February 22, 2023 11:32
It is not rs2, it is imm
Related to #3255
This removes a redundant port
As rnum is encoded in rs2 as imm now,
we can get it just from rs2
This was introduced by "(185cac8) Add hypervisor extension (#2841)"

This is a dead code, as no circuit is producing and consuming
this bit.

This was discovered when migrating Core.scala to chisel3, where
strict checking was applied for IO and firrtl found this is
not connected.

In the context of hypervisor extension, V bit, or _virtualization
mode_, indicates whether the hart is currently executing in a
guest.

For TLBReq, the V bit is needed as it affects the PTW thus TLB
behavior on whether to do _Two-Stage Address Translation_.

However, the bit is not needed for TLBException. The exceptions
(pf, gf, ae, ma) have no V=1/V=0 variants. Also, there is no point
to add V bit for gf (guest page fault).

The io.resp.gf added below in the original patch also does
not connect io.resp.gf.v. If this V bit should be added
for this specific exception, it should be connected.

I assume this was added accidentally, as the original
"extends CoreBundle()(p)" modification seems irrelevant.
@sequencer sequencer enabled auto-merge (rebase) February 23, 2023 05:20
@sequencer sequencer merged commit 6b9fd53 into master Feb 23, 2023
@sequencer sequencer deleted the backports branch February 23, 2023 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants