Skip to content

Commit bcc8a79

Browse files
committed
Change csr visibility in VirtContext
We no longer need the csr field to be public because VirtContext implements RegisterContext for Csr.
1 parent 6df0251 commit bcc8a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/virt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct VirtContext {
1111
/// Basic registers
1212
regs: [usize; 32],
1313
/// Virtual Constrol and Status Registers
14-
pub csr: VirtCsr,
14+
csr: VirtCsr,
1515
/// Hart ID
1616
hart_id: usize,
1717
}

0 commit comments

Comments
 (0)