Skip to content

Commit a7ea39d

Browse files
committed
fixed typo in comments
1 parent ec6d0fb commit a7ea39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def __init__(self, ram, init_regs=None, logger=None, trace_traps=False):
377377
self.csrs[0xF12] = 0x00000001 # marchid (RO)
378378
self.csrs[0xF13] = 0x20250400 # mimpid (RO)
379379

380-
# read-only CSRs: writres cause a trap
380+
# read-only CSRs: writes cause a trap
381381
self.CSR_RO = { 0xF11, 0xF12, 0xF13, 0xF14 }
382382
# mvendorid, marchid, mimpid, mhartid
383383
# (misa should be here, but tests expect it to be writable without trapping)
@@ -411,7 +411,7 @@ def __init__(self, ram, init_regs=None, logger=None, trace_traps=False):
411411
self.REG_NAME_NUM['s0'] = 8
412412
self.REG_NAME_NUM['fp'] = 8
413413

414-
# name - addr CSR maps
414+
# name - address CSR maps
415415
self.CSR_NAME_ADDR = {}
416416
self.CSR_ADDR_NAME = {}
417417
csr_names = {

0 commit comments

Comments
 (0)