From daec7884b0063698ee2125f6dfe4744b3ddcbf5e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 7 Apr 2020 19:27:15 +0100 Subject: [PATCH] note that CR must be offset by 32 --- src/soc/decoder/isa/caller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 8a4da033..deb30fc7 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -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! -- 2.30.2