Skip to content

Commit 30ff3c9

Browse files
Anshuman Khandualctmarinas
authored andcommitted
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]>
1 parent d3a80c5 commit 30ff3c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/kvm/arm64/debug-exceptions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void enable_os_lock(void)
140140

141141
static void enable_monitor_debug_exceptions(void)
142142
{
143-
uint32_t mdscr;
143+
uint64_t mdscr;
144144

145145
asm volatile("msr daifclr, #8");
146146

@@ -223,7 +223,7 @@ void install_hw_bp_ctx(uint8_t addr_bp, uint8_t ctx_bp, uint64_t addr,
223223

224224
static void install_ss(void)
225225
{
226-
uint32_t mdscr;
226+
uint64_t mdscr;
227227

228228
asm volatile("msr daifclr, #8");
229229

0 commit comments

Comments
 (0)