@@ -14,86 +14,86 @@ impl Medeleg {
1414 pub fn bits ( & self ) -> usize {
1515 self . bits
1616 }
17-
18- /// Instruction address misaligned delegate
17+
18+ /// Instruction Address Misaligned Delegate
1919 #[ inline]
2020 pub fn instruction_misaligned ( & self ) -> bool {
2121 self . bits . get_bit ( 0 )
2222 }
2323
24- /// Instruction access fault delegate
24+ /// Instruction Access Fault Delegate
2525 #[ inline]
2626 pub fn instruction_fault ( & self ) -> bool {
2727 self . bits . get_bit ( 1 )
2828 }
2929
30- /// Illegal instruction delegate
30+ /// Illegal Instruction Delegate
3131 #[ inline]
3232 pub fn illegal_instruction ( & self ) -> bool {
3333 self . bits . get_bit ( 2 )
3434 }
3535
36- /// Breakpoint delegate
36+ /// Breakpoint Delegate
3737 #[ inline]
3838 pub fn breakpoint ( & self ) -> bool {
3939 self . bits . get_bit ( 3 )
4040 }
4141
42- /// Load address misaligned delegate
42+ /// Load Address Misaligned Delegate
4343 #[ inline]
4444 pub fn load_misaligned ( & self ) -> bool {
4545 self . bits . get_bit ( 4 )
4646 }
4747
48- /// Load access fault delegate
48+ /// Load Access Fault Delegate
4949 #[ inline]
5050 pub fn load_fault ( & self ) -> bool {
5151 self . bits . get_bit ( 5 )
5252 }
5353
54- /// Store/AMO address misaligned delegate
54+ /// Store/AMO Address Misaligned Delegate
5555 #[ inline]
5656 pub fn store_misaligned ( & self ) -> bool {
5757 self . bits . get_bit ( 6 )
5858 }
5959
60- /// Store/AMO access fault delegate
60+ /// Store/AMO Access Fault Delegate
6161 #[ inline]
6262 pub fn store_fault ( & self ) -> bool {
6363 self . bits . get_bit ( 7 )
6464 }
6565
66- /// Environment call from U-mode delegate
66+ /// Environment Call from U-mode Delegate
6767 #[ inline]
6868 pub fn user_env_call ( & self ) -> bool {
6969 self . bits . get_bit ( 8 )
7070 }
7171
72- /// Environment call from S-mode delegate
72+ /// Environment Call from S-mode Delegate
7373 #[ inline]
7474 pub fn supervisor_env_call ( & self ) -> bool {
7575 self . bits . get_bit ( 9 )
7676 }
7777
78- /// Environment call from M-mode delegate
78+ /// Environment Call from M-mode Delegate
7979 #[ inline]
8080 pub fn machine_env_call ( & self ) -> bool {
8181 self . bits . get_bit ( 11 )
8282 }
8383
84- /// Instruction page fault delegate
84+ /// Instruction Page Fault Delegate
8585 #[ inline]
8686 pub fn instruction_page_fault ( & self ) -> bool {
8787 self . bits . get_bit ( 12 )
8888 }
8989
90- /// Load page fault delegate
90+ /// Load Page Fault Delegate
9191 #[ inline]
9292 pub fn load_page_fault ( & self ) -> bool {
9393 self . bits . get_bit ( 13 )
9494 }
9595
96- /// Store/AMO page fault delegate
96+ /// Store/AMO Page Fault Delegate
9797 #[ inline]
9898 pub fn store_page_fault ( & self ) -> bool {
9999 self . bits . get_bit ( 15 )
@@ -105,44 +105,44 @@ set!(0x302, __set_medeleg);
105105clear ! ( 0x302 , __clear_medeleg) ;
106106
107107set_clear_csr ! (
108- /// Instruction address misaligned delegate
108+ /// Instruction Address Misaligned Delegate
109109 , set_instruction_misaligned, clear_instruction_misaligned, 1 << 0 ) ;
110110set_clear_csr ! (
111- /// Instruction access fault delegate
111+ /// Instruction Access Fault Delegate
112112 , set_instruction_fault, clear_instruction_fault, 1 << 1 ) ;
113113set_clear_csr ! (
114- /// Illegal instruction delegate
114+ /// Illegal Instruction Delegate
115115 , set_illegal_instruction, clear_illegal_instruction, 1 << 2 ) ;
116116set_clear_csr ! (
117- /// Breakpoint delegate
117+ /// Breakpoint Delegate
118118 , set_breakpoint, clear_breakpoint, 1 << 3 ) ;
119119set_clear_csr ! (
120- /// Load address misaligned delegate
120+ /// Load Address Misaligned Delegate
121121 , set_load_misaligned, clear_load_misaligned, 1 << 4 ) ;
122122set_clear_csr ! (
123- /// Load access fault delegate
123+ /// Load Access Fault Delegate
124124 , set_load_fault, clear_load_fault, 1 << 5 ) ;
125125set_clear_csr ! (
126- /// Store/AMO address misaligned delegate
126+ /// Store/AMO Address Misaligned Delegate
127127 , set_store_misaligned, clear_store_misaligned, 1 << 6 ) ;
128128set_clear_csr ! (
129- /// Store/AMO access fault
129+ /// Store/AMO Access fault
130130 , set_store_fault, clear_store_fault, 1 << 7 ) ;
131131set_clear_csr ! (
132- /// Environment call from U-mode delegate
132+ /// Environment Call from U-mode Delegate
133133 , set_user_env_call, clear_user_env_call, 1 << 8 ) ;
134134set_clear_csr ! (
135- /// Environment call from S-mode delegate
135+ /// Environment Call from S-mode Delegate
136136 , set_supervisor_env_call, clear_supervisor_env_call, 1 << 9 ) ;
137137set_clear_csr ! (
138- /// Environment call from M-mode delegate
138+ /// Environment Call from M-mode Delegate
139139 , set_machine_env_call, clear_machine_env_call, 1 << 11 ) ;
140140set_clear_csr ! (
141- /// Instruction page fault delegate
141+ /// Instruction Page Fault Delegate
142142 , set_instruction_page_fault, clear_instruction_page_fault, 1 << 12 ) ;
143143set_clear_csr ! (
144- /// Load page fault delegate
144+ /// Load Page Fault Delegate
145145 , set_load_page_fault, clear_load_page_fault, 1 << 13 ) ;
146146set_clear_csr ! (
147- /// Store/AMO page fault delegate
147+ /// Store/AMO Page Fault Delegate
148148 , set_store_page_fault, clear_store_page_fault, 1 << 15 ) ;
0 commit comments