target-ppc: add setb instruction
commitdc2ee038daa88222c4e333ffcc81070b8d0656d2
authorVivek Andrew Sha <vivekandrewsha@gmail.com>
Tue, 26 Jul 2016 11:58:35 +0000 (26 17:28 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Sep 2016 23:52:14 +0000 (7 09:52 +1000)
tree34c895ce45383ab9a78caa8a4d4b5cd5dd1e1965
parent082ce33005d81ff45b929e826ac48a5696059efc
target-ppc: add setb instruction

The CR number is provided in the opcode as - BFA (11:13)

Returns:
  -1 if bit 0 of CR field is set
   1 if bit 1 of CR field is set
   0 otherwise.

Signed-off-by: Vivek Andrew Sha <vivekandrewsha@gmail.com>
[ reworded commit, used 32bit ops as crf is 32bits ]
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c