aboutsummaryrefslogtreecommitdiff
path: root/tcl/cpu/arc/hs.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/cpu/arc/hs.tcl')
-rw-r--r--tcl/cpu/arc/hs.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/cpu/arc/hs.tcl b/tcl/cpu/arc/hs.tcl
index f39f2a7..181f993 100644
--- a/tcl/cpu/arc/hs.tcl
+++ b/tcl/cpu/arc/hs.tcl
@@ -48,7 +48,7 @@ proc arc_hs_reset { {target ""} } {
$target arc jtag set-aux-reg 0x904 1
set l2_ctrl [$target arc jtag get-aux-reg 0x903]
set l2_ctrl [$target arc jtag get-aux-reg 0x903]
- while { [expr $l2_ctrl & 0x100] != 0 } {
+ while { [expr {$l2_ctrl & 0x100}] != 0 } {
set l2_ctrl [$target arc jtag get-aux-reg 0x903]
}
}