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:
Thomas Huth 2021-05-12 19:15:48 +02:00
parent 2ed765fdee
commit 052b66e721
4 changed files with 8 additions and 8 deletions

View file

@ -31,7 +31,7 @@ static inline void *u32toptr(uint32_t n)
static inline void yield(void)
{
asm volatile ("diag 0,0,0x44"
asm volatile ("diag %%r0,%%r0,0x44"
: :
: "memory", "cc");
}