File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ pub(crate) fn execute_supervisor(hsm: &QemuHsm, supervisor: Supervisor) {
91
91
92
92
ctx. do_transfer_trap ( T :: Exception ( E :: IllegalInstruction ) ) ;
93
93
}
94
- // TODO 可以修复非原子的非对称访存
94
+ // TODO 可以修复非原子的非对齐访存
95
95
t => panic ! ( "unsupported trap: {t:?}" ) ,
96
96
}
97
97
}
@@ -211,7 +211,7 @@ unsafe extern "C" fn m_to_s(ctx: &mut Context) {
211
211
sd sp, 0(a0)
212
212
mv sp, a0
213
213
" ,
214
- // 利用 tx 恢复 csr
214
+ // 利用 ctx 恢复 csr
215
215
// S ctx.x[2](sp) => mscratch
216
216
// S ctx.mstatus => mstatus
217
217
// S ctx.mepc => mepc
@@ -277,7 +277,7 @@ unsafe extern "C" fn s_to_m() {
277
277
.set n, n+1
278
278
.endr
279
279
" ,
280
- // 利用 tx 保存 csr
280
+ // 利用 ctx 保存 csr
281
281
// mscratch => S ctx.x[2](sp)
282
282
// mstatus => S ctx.mstatus
283
283
// mepc => S ctx.mepc
@@ -293,7 +293,7 @@ unsafe extern "C" fn s_to_m() {
293
293
"
294
294
ld sp, 0(sp)
295
295
" ,
296
- // 恢复 s[0..12 ]
296
+ // 恢复 x[1..31 ]
297
297
"
298
298
.set n, 1
299
299
.rept 31
You can’t perform that action at this time.
0 commit comments