aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2025-06-13 02:36:46 +0000
committerCatalin Marinas <[email protected]>2025-07-03 19:00:37 +0000
commit30ff3c981e48b37a93249a96675b450469ac13a6 (patch)
tree234070e756bda8ca48406c6e7502746c8188bb9c
parentarm64/debug: Drop redundant DBG_MDSCR_* macros (diff)
downloadkernel-30ff3c981e48b37a93249a96675b450469ac13a6.tar.gz
kernel-30ff3c981e48b37a93249a96675b450469ac13a6.zip
KVM: selftests: Change MDSCR_EL1 register holding variables as uint64_t
Change MDSCR_EL1 register holding local variables as uint64_t that reflects its true register width as well. Cc: Oliver Upton <[email protected]> Cc: Joey Gouly <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Marc Zyngier <[email protected]> Reviewed-by: Ada Couprie Diaz <[email protected]> Signed-off-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
-rw-r--r--tools/testing/selftests/kvm/arm64/debug-exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/arm64/debug-exceptions.c b/tools/testing/selftests/kvm/arm64/debug-exceptions.c
index c7fb55c9135b..e34963956fbc 100644
--- a/tools/testing/selftests/kvm/arm64/debug-exceptions.c
+++ b/tools/testing/selftests/kvm/arm64/debug-exceptions.c
@@ -140,7 +140,7 @@ static void enable_os_lock(void)
static void enable_monitor_debug_exceptions(void)
{
- uint32_t mdscr;
+ uint64_t mdscr;
asm volatile("msr daifclr, #8");
@@ -223,7 +223,7 @@ void install_hw_bp_ctx(uint8_t addr_bp, uint8_t ctx_bp, uint64_t addr,
static void install_ss(void)
{
- uint32_t mdscr;
+ uint64_t mdscr;
asm volatile("msr daifclr, #8");