fixedlogical: switch extsw to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:04:38 +0000 (15:04 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 13:18:24 +0000 (14:18 +0100)
openpower/isa/fixedlogical.mdwn

index 2838acfefd258ef75f34d0a1f2fef1237b908796..3118ad7d5e92f3d74ef6e1ae312ae622a94cfe46 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: