We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4713313 commit 29a7d51Copy full SHA for 29a7d51
riscvmodel/model.py
@@ -8,7 +8,8 @@
8
class State(object):
9
def __init__(self, variant: Variant):
10
self.variant = variant
11
- self.intreg = RegisterFile(variant.intregs, 32, {0: 0x0})
+ intregs = 32 if variant.baseint == "I" else 16
12
+ self.intreg = RegisterFile(intregs, 32, {0: 0x0})
13
self.pc = Register(32)
14
self.pc_update = Register(32)
15
self.memory = Memory()
0 commit comments