mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/ppc: more use of the PPC_*() macros
Also introduce utilities to manipulate bitmasks (originaly from OPAL) which be will be used in the model of the XIVE interrupt controller. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
b168a138a8
commit
a6a444a87a
3 changed files with 40 additions and 28 deletions
|
@ -183,7 +183,7 @@ uint64_t helper_bpermd(uint64_t rs, uint64_t rb)
|
|||
for (i = 0; i < 8; i++) {
|
||||
int index = (rs >> (i*8)) & 0xFF;
|
||||
if (index < 64) {
|
||||
if (rb & (1ull << (63-index))) {
|
||||
if (rb & PPC_BIT(index)) {
|
||||
ra |= 1 << i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue