[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/11] pc-bios/s390-ccw: Use proper register names fo
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PULL 02/11] pc-bios/s390-ccw: Use proper register names for Clang |
Date: |
Fri, 18 Jan 2019 13:19:16 +0100 |
From: Thomas Huth <address@hidden>
When compiling the s390-ccw firmware with Clang 7.0.1, I get the
following errors:
pc-bios/s390-ccw/start.S:62:19: error: invalid use of length addressing
stctg 0,0,0(15)
^
pc-bios/s390-ccw/start.S:63:12: error: invalid use of length addressing
oi 6(15), 0x2
^
pc-bios/s390-ccw/start.S:64:19: error: invalid use of length addressing
lctlg 0,0,0(15)
^
pc-bios/s390-ccw/start.S:76:19: error: invalid use of length addressing
stctg 0,0,0(15)
^
pc-bios/s390-ccw/start.S:77:12: error: invalid use of length addressing
ni 6(15), 0xfd
^
pc-bios/s390-ccw/start.S:78:19: error: invalid use of length addressing
lctlg 0,0,0(15)
^
pc-bios/s390-ccw/start.S:79:12: error: invalid operand for instruction
br 14
^
Let's use proper register names like in the rest of this file to fix it.
Signed-off-by: Thomas Huth <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Christian Borntraeger <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
pc-bios/s390-ccw/start.S | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pc-bios/s390-ccw/start.S b/pc-bios/s390-ccw/start.S
index eb8d024dbb..5c22cb0849 100644
--- a/pc-bios/s390-ccw/start.S
+++ b/pc-bios/s390-ccw/start.S
@@ -59,9 +59,9 @@ disabled_wait:
.globl consume_sclp_int
consume_sclp_int:
/* enable service interrupts in cr0 */
- stctg 0,0,0(15)
- oi 6(15), 0x2
- lctlg 0,0,0(15)
+ stctg %c0,%c0,0(%r15)
+ oi 6(%r15),0x2
+ lctlg %c0,%c0,0(%r15)
/* prepare external call handler */
larl %r1, external_new_code
stg %r1, 0x1b8
@@ -73,10 +73,10 @@ consume_sclp_int:
external_new_code:
/* disable service interrupts in cr0 */
- stctg 0,0,0(15)
- ni 6(15), 0xfd
- lctlg 0,0,0(15)
- br 14
+ stctg %c0,%c0,0(%r15)
+ ni 6(%r15),0xfd
+ lctlg %c0,%c0,0(%r15)
+ br %r14
.align 8
disabled_wait_psw:
--
2.17.2
- [Qemu-devel] [PULL 00/11] s390x updates, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 01/11] s390: avoid potential null dereference in s390_pcihost_unplug(), Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 04/11] configure: Only build the s390-ccw bios if the compiler supports -march=z900, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 03/11] s390x: Return specification exception for unimplemented diag 308 subcodes, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 02/11] pc-bios/s390-ccw: Use proper register names for Clang,
Cornelia Huck <=
- [Qemu-devel] [PULL 05/11] s390x/pci: Send correct event on hotplug, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 06/11] s390x/pci: Set the iommu region size mpcifc request, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 07/11] s390x/pci: Use hotplug_dev instead of looking up the host bridge, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 08/11] s390x/pci: Move some hotplug checks to the pre_plug handler, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 09/11] s390x/pci: Always delete and free the release_timer, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 11/11] s390x/pci: add common function measurement block, Cornelia Huck, 2019/01/18
- [Qemu-devel] [PULL 10/11] s390x/pci: Ignore the unplug call if we already have a release_timer, Cornelia Huck, 2019/01/18
- Re: [Qemu-devel] [PULL 00/11] s390x updates, Peter Maydell, 2019/01/18