From: Luke Kenneth Casson Leighton Date: Thu, 2 Apr 2020 14:31:17 +0000 (+0100) Subject: add missing info X-Git-Tag: convert-csv-opcode-to-binary~2996 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef068c5d7ad75fbdc1fa0b553f46435567ed077f;p=libreriscv.git add missing info --- diff --git a/openpower/isa/fixedtrap.mdwn b/openpower/isa/fixedtrap.mdwn index ea94cfaa1..d758e337e 100644 --- a/openpower/isa/fixedtrap.mdwn +++ b/openpower/isa/fixedtrap.mdwn @@ -1,17 +1,24 @@ # Trap Word Immediate -twi TO,RA,SI +D-Form + +* twi TO,RA,SI a <- EXTS((RA)[32:63]) if (a < EXTS(SI)) & TO[0] then TRAP if (a > EXTS(SI)) & TO[1] then TRAP if (a = EXTS(SI)) & TO[2] then TRAP - if (a u EXTS(SI)) & TO 4 then TRAP + if (a u EXTS(SI)) & TO[4] then TRAP + +Special Registers Altered: + None # Trap Word -tw TO,RA,RB +X-Form + +* tw TO,RA,RB a <- EXTS((RA)[32:63]) b <- EXTS((RB)[32:63]) @@ -21,9 +28,14 @@ tw TO,RA,RB if (a u b) & TO[4] then TRAP +Special Registers Altered: + None + +D-Form + # Trap Doubleword Immediate -tdi TO,RA,SI +* tdi TO,RA,SI a <- (RA) b <- EXTS(SI) @@ -33,9 +45,14 @@ tdi TO,RA,SI if (a u b) & TO[4] then TRAP +Special Registers Altered: + None + # Trap Doubleword -td TO,RA,RB +X-Form + +* td TO,RA,RB a <- (RA) b <- (RB) @@ -45,11 +62,19 @@ td TO,RA,RB if (a u b) & TO[4] then TRAP +Special Registers Altered: + None + # Integer Select -isel RT,RA,RB,BC +A-Form + +* isel RT,RA,RB,BC if RA=0 then a <-0 else a <- (RA) if CR[BC+32]=1 then RT <- a else RT <- (RB) +Special Registers Altered: + None +