diff options
author | Vivek Andrew Sha <vivekandrewsha@gmail.com> | 2016-07-26 17:28:35 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-09-07 09:52:14 +1000 |
commit | dc2ee038daa88222c4e333ffcc81070b8d0656d2 (patch) | |
tree | 34c895ce45383ab9a78caa8a4d4b5cd5dd1e1965 /qtest.c | |
parent | 082ce33005d81ff45b929e826ac48a5696059efc (diff) |
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>
Diffstat (limited to 'qtest.c')
0 files changed, 0 insertions, 0 deletions