[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCHv6 05/23] plat/common: Remove earlycloberr from SYSREG_READ32 for Arm64



From: Wei Chen <wei.chen@xxxxxxx>
As the operand will not be written before the instruction has finished.
So, we don't need the earlycloberr (&) in SYSREG_READ32.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
Signed-off-by: Jia He <justin.he@xxxxxxx>
Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
 plat/common/include/arm/arm64/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plat/common/include/arm/arm64/cpu.h 
b/plat/common/include/arm/arm64/cpu.h
index c009fc8..1495192 100644
--- a/plat/common/include/arm/arm64/cpu.h
+++ b/plat/common/include/arm/arm64/cpu.h
@@ -73,7 +73,7 @@ static inline void _init_cpufeatures(void)
 #define SYSREG_READ(reg) \
 ({     uint64_t val; \
        __asm__ __volatile__("mrs %0, " __STRINGIFY(reg) \
-                       : "=&r" (val)); \
+                       : "=r" (val)); \
        val; \
 })

@@ -84,7 +84,7 @@ static inline void _init_cpufeatures(void)
 #define SYSREG_READ32(reg) \
 ({     uint32_t val; \
        __asm__ __volatile__("mrs %0, " __STRINGIFY(reg) \
-                       : "=&r" (val)); \
+                       : "=r" (val)); \
        val; \
 })

--
2.17.1

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.