Skip to content

Commit e11f716

Browse files
executor: arm64: syzos: fix the constraints in gicv3_cpu_init()
Somehow we were using an input constraint instead of an output one in the assembly code performing a read of ICC_SRE_EL1 into a GP register.
1 parent e0aca11 commit e11f716

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

executor/common_kvm_arm64_syzos.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,7 @@ GUEST_CODE static void gicv3_cpu_init(uint32 cpu)
571571
// Enable the GIC system register (ICC_*) access.
572572
uint64 icc_sre_el1 = 0;
573573
asm volatile("mrs %0, " ICC_SRE_EL1
574-
:
575-
: "r"(icc_sre_el1));
574+
: "=r"(icc_sre_el1));
576575
icc_sre_el1 |= ICC_SRE_EL1_SRE;
577576
asm volatile("msr " ICC_SRE_EL1 ", %0"
578577
:

0 commit comments

Comments
 (0)