aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/s390-ccw/jump2ipl.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2021-05-12 19:15:48 +0200
committerThomas Huth <thuth@redhat.com>2021-05-14 12:38:43 +0200
commit052b66e7211af64964e005126eaa3c944b296b0e (patch)
treedad310fc0688009b2259ca72e9426ced70e6c4ef /pc-bios/s390-ccw/jump2ipl.c
parent2ed765fdeed88cb5434148f0d6ef27ece3dc063c (diff)
downloadqemu-052b66e7211af64964e005126eaa3c944b296b0e.zip
qemu-052b66e7211af64964e005126eaa3c944b296b0e.tar.gz
qemu-052b66e7211af64964e005126eaa3c944b296b0e.tar.bz2
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>
Diffstat (limited to 'pc-bios/s390-ccw/jump2ipl.c')
-rw-r--r--pc-bios/s390-ccw/jump2ipl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pc-bios/s390-ccw/jump2ipl.c b/pc-bios/s390-ccw/jump2ipl.c
index 73e4367..78f5f46 100644
--- a/pc-bios/s390-ccw/jump2ipl.c
+++ b/pc-bios/s390-ccw/jump2ipl.c
@@ -64,8 +64,8 @@ void jump_to_IPL_code(uint64_t address)
* We use the load normal reset to keep r15 unchanged. jump_to_IPL_2
* can then use r15 as its stack pointer.
*/
- asm volatile("lghi 1,1\n\t"
- "diag 1,1,0x308\n\t"
+ asm volatile("lghi %%r1,1\n\t"
+ "diag %%r1,%%r1,0x308\n\t"
: : : "1", "memory");
panic("\n! IPL returns !\n");
}