fixedlogical: switch extsw to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:04:38 +0000 (15:04 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:04:38 +0000 (15:04 +0000)
openpower/isa/fixedlogical.mdwn

index ce3709ce98a2557411abb4bf657b6358da513932..1e7a7c4261aa40cfdfabdff717d16be0712e4a61 100644 (file)
@@ -391,9 +391,9 @@ X-Form
 
 Pseudo-code:
 
-    s <- (RS)[32]
-    RA[32:63] <- (RS)[32:63]
-    RA[0:31] <- [s]*32
+    s <- (RS)[XLEN/2]
+    RA[XLEN/2:XLEN-1] <- (RS)[XLEN/2:XLEN-1]
+    RA[0:(XLEN/2)-1] <- [s]*(XLEN/2)
 
 Special Registers Altered: