mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
pc-bios/s390-ccw: Fix inline assembly for older versions of Clang
Clang versions before v11.0 insist on having the %rX or %cX register names instead of just a number. Since our Travis-CI is currently still using Clang v6.0, we have to fix this to avoid failing jobs. Message-Id: <20210512171550.476130-2-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
2ed765fdee
commit
052b66e721
4 changed files with 8 additions and 8 deletions
|
@ -54,7 +54,7 @@ static long kvm_hypercall(unsigned long nr, unsigned long param1,
|
|||
register ulong r_param3 asm("4") = param3;
|
||||
register long retval asm("2");
|
||||
|
||||
asm volatile ("diag 2,4,0x500"
|
||||
asm volatile ("diag %%r2,%%r4,0x500"
|
||||
: "=d" (retval)
|
||||
: "d" (r_nr), "0" (r_param1), "r"(r_param2), "d"(r_param3)
|
||||
: "memory", "cc");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue