|
@@ -30,23 +30,22 @@ pub mod utval;
|
|
|
pub mod fcsr;
|
|
|
|
|
|
// User Counter/Timers
|
|
|
+
|
|
|
pub mod cycle;
|
|
|
+pub mod cycleh;
|
|
|
mod hpmcounterx;
|
|
|
-pub mod instret;
|
|
|
-pub mod time;
|
|
|
-
|
|
|
pub use self::hpmcounterx::*;
|
|
|
-
|
|
|
-pub mod cycleh;
|
|
|
+pub mod instret;
|
|
|
pub mod instreth;
|
|
|
+pub mod time;
|
|
|
pub mod timeh;
|
|
|
|
|
|
// Supervisor Trap Setup
|
|
|
// TODO: sedeleg, sideleg
|
|
|
-pub mod scounteren;
|
|
|
pub mod sie;
|
|
|
pub mod sstatus;
|
|
|
pub mod stvec;
|
|
|
+pub mod scounteren;
|
|
|
|
|
|
// Supervisor Trap Handling
|
|
|
pub mod scause;
|
|
@@ -65,12 +64,13 @@ pub mod mimpid;
|
|
|
pub mod mvendorid;
|
|
|
|
|
|
// Machine Trap Setup
|
|
|
+pub mod medeleg;
|
|
|
+pub mod mideleg;
|
|
|
+pub mod mie;
|
|
|
pub mod misa;
|
|
|
pub mod mstatus;
|
|
|
-// TODO: medeleg, mideleg
|
|
|
-pub mod mcounteren;
|
|
|
-pub mod mie;
|
|
|
pub mod mtvec;
|
|
|
+pub mod mcounteren;
|
|
|
|
|
|
// Machine Trap Handling
|
|
|
pub mod mcause;
|
|
@@ -81,26 +81,21 @@ pub mod mtval;
|
|
|
|
|
|
// Machine Protection and Translation
|
|
|
mod pmpcfgx;
|
|
|
-
|
|
|
pub use self::pmpcfgx::*;
|
|
|
-
|
|
|
mod pmpaddrx;
|
|
|
-
|
|
|
pub use self::pmpaddrx::*;
|
|
|
|
|
|
// Machine Counter/Timers
|
|
|
pub mod mcycle;
|
|
|
+pub mod mcycleh;
|
|
|
mod mhpmcounterx;
|
|
|
-pub mod minstret;
|
|
|
-
|
|
|
pub use self::mhpmcounterx::*;
|
|
|
-
|
|
|
-pub mod mcycleh;
|
|
|
+pub mod minstret;
|
|
|
pub mod minstreth;
|
|
|
|
|
|
+
|
|
|
// Machine Counter Setup
|
|
|
mod mhpmeventx;
|
|
|
-
|
|
|
pub use self::mhpmeventx::*;
|
|
|
|
|
|
// TODO: Debug/Trace Registers (shared with Debug Mode)
|