mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
acpi: extend aml_shiftright() to accept target argument
it allows to express ShiftRight(A,B,C) syntax Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
This commit is contained in:
parent
f411199de7
commit
c360639aee
3 changed files with 4 additions and 4 deletions
|
@ -667,7 +667,7 @@ static Aml *build_prt(void)
|
|||
|
||||
/* slot = pin >> 2 */
|
||||
aml_append(while_ctx,
|
||||
aml_store(aml_shiftright(pin, aml_int(2)), slot));
|
||||
aml_store(aml_shiftright(pin, aml_int(2), NULL), slot));
|
||||
/* lnk_idx = (slot + pin) & 3 */
|
||||
aml_append(while_ctx,
|
||||
aml_store(aml_and(aml_add(pin, slot, NULL), aml_int(3)), lnk_idx));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue