From 58a0e4c97f6e8778d3458243ca0c2e7ce5dbced7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 25 Jan 2017 01:24:03 +0000 Subject: [PATCH] Fix 2de3770. --- artiq/firmware/libboard/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard/cache.rs b/artiq/firmware/libboard/cache.rs index c99e01cde..3a37d7327 100644 --- a/artiq/firmware/libboard/cache.rs +++ b/artiq/firmware/libboard/cache.rs @@ -38,7 +38,7 @@ pub fn flush_l2_cache() { unsafe { for i in 0..2 * (csr::CONFIG_L2_SIZE as usize) / 4 { let addr = mem::MAIN_RAM_BASE + i * 4; - asm!("l.lwz r0, 0($1)"::"r"(addr):"r0":"volatile") + asm!("l.lwz r13, 0(${0})"::"r"(addr):"r13":"volatile") } } }