note that CR must be offset by 32
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Apr 2020 18:27:15 +0000 (19:27 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Apr 2020 18:27:15 +0000 (19:27 +0100)
src/soc/decoder/isa/caller.py

index 8a4da033d3affb12942d5864ea01e0ed58661fa7..deb30fc73fa57b3bf6537a36077f01316331becc 100644 (file)
@@ -148,7 +148,7 @@ class ISACaller:
         # 3.2.3 p46 p232 VRSAVE (actually SPR #256)
 
         # create CR then allow portions of it to be "selectable" (below)
-        self.cr = SelectableInt(0, 32)
+        self.cr = SelectableInt(0, 32) # TODO, must be bits range 32-63 not 0-31
 
         # "undefined", just set to variable-bit-width int (use exts "max")
         self.undefined = SelectableInt(0, 256) # TODO, not hard-code 256!